Tuicemens

Pages: [1]

Author Topic: CM15A+Pi Zero W mod  (Read 1373 times)

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3698
  • Making Home Automation Fun!
    • Tuicemen.com
CM15A+Pi Zero W mod
« on: April 27, 2018, 07:53:30 PM »

Pi Zero W Mod Getting ready
This came today and I had to run around looking for micro USB Adaptors simular to this:
https://www.ebay.ca/itm/Micro-USB-Male-to-USB-Female-OTG-Adapter-Converter-For-LG-G4-G5-Samsung-S6-S7-S8/332533914121?hash=item4d6c90da09:m:mTFbcauLtL3WCZ02WOazvFg
Items needed for this mod besides the Pi Zero W are:
1- 1 Micro-USB-Male-to-USB-Female-OTG-Adapter
2- 1 USB cable to attach the CM15 you can use the one that comes with but you will most likely wish it to be short. I found 6" ones on ebay as well as at my local PC supply shop.
3- 1 hdmi mini adaptor or a cable with one end which plugs into your display at the other a mini hdmi
4- if you go with the adaptor you'll need a HDMI cable long enough to reach your display.
5- A micro USB power supply Your best to get this with your Pi to be sure it is the correct amps and volts (5V 2.5 amps is best)
6- (optional) 1 small heat sink which may be puchased at the same time as the Pi.
 use the above.
7- a mini SD card of more then 8 gigs ( I picked up a 32 gig one)
8- wireless (USB)mouse & keyboard for inital setup of OS and Wi-fi
9- A tool to make holes for the HDMI,USB ports and SD card (dremel tool)
10- (optional) hot melt glue gun to help hold board in place
11- Small philips head screw driver to open cm15a case.
12- wire snips to cut wires from battery compartment
13- exacto knife to clean up eccess plastic burs in and arround cuts.
14- it is possible to power the Pi from the header pins so if you wish to go this route you'll need a soldering gun
« Last Edit: May 11, 2018, 01:59:50 PM by Tuicemen »
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3698
  • Making Home Automation Fun!
    • Tuicemen.com
Re: CM15A+Pi Zero W mod
« Reply #1 on: April 29, 2018, 10:25:36 AM »

My Drumal tool and glue gun are at my off grid place (I hope)  ::) :`)
I plan to make a trip up shortly.
In the mean time I believe I found the best place to mount this.
it will keep all connections to the bottom of the CM15A Case  the memory card slot will be on the opposite side of the case from the antenna.
Use a small piece of cardboard to make a templet.
Where I decided to mount requires the battery compartment lower space to be utilized.
If you can find a cable for your Cm15 which has a male micro end instead of the regular male USB end you may be able to mount inside the case leaving the battery compartment intact.
If you can go this route you'll only need to cut two slots in the case one for the CM15a USB cable and one for the power wire.
Unfortunately you'd need to open the cm15 to access the PI if you needed to get at the SD card.
In any case I recommend you set up the Pi with the OS and HA software prior to doing the mod.
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3698
  • Making Home Automation Fun!
    • Tuicemen.com
Re: CM15A+Pi Zero W mod
« Reply #2 on: April 29, 2018, 01:33:52 PM »

If you got a Zero W with the header and have a older Cm15 with daughter boards you'll have to mount your PI with the SD card towards the antenna I believe. either that or remove the header pins. Hopefully the newer Cm15 boards will allow mounting with the SD to the side opposite the antenna. I opened the case an marked where on the Cm15A to cut and remove the lower part of the Battery compartment seen in the attached.
Also remove the wires leading from the battery compartment and the metal springs inside the compartment.
The Zero W will rest on the edges (1 & 2) 
With the drumel tool the battery compartment needs to be removed between red mark 4 and 3 the plastic pin 3 also needs to be removed.
Next slot needs to be made in 5 post which is level with edges 1 & 2 this needs to be wide enough for the Zero to slide into as well even with the outer edges of the case.
It might be easier to use a soldering iron for this as to not go threw the outer edge of the case. You may need to cut the slot in 6 if your Pi needs to be mounted the other way.
« Last Edit: April 29, 2018, 01:37:27 PM by Tuicemen »
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3698
  • Making Home Automation Fun!
    • Tuicemen.com
Re: CM15A+Pi Zero W mod
« Reply #3 on: May 01, 2018, 12:13:09 PM »

Once you have the battery compartment cut out be sure the SD card is out of the Pi.
Note: I cut a extra bit out to allow access to the header pins.
1: Slide the Pi into place and make sure the edge with the SD card slot fits tight to the edge of the case. With it tight to the case you can mark the holes for the HDI and micro USB slots.
2: Remove the Pi and cut those holes in the CM15 case.
this may require you to slide the Pi back in to be sure the openings look right and that edge of the pi sits tight to that edge as well as the edge that the SD card slot is on.
3: with the PI tight to both edges of the case mark the spot to cut the SD slot.
4: remove the Pi Again and cut the SD card slot opening make this a bit big so you can remove the card if you have to. check this by sliding in the card and removing it.
5: use adaptors or the cords and plug every thing into the PI while holding it in place.
this will help detrmine if you need to remove any burs from the Holes you made.
Use an exacto knive to remove any found.
6:With the Pi in place and every thing plugged in you can hot melt glue the Pi  in place.
Note: Only glue at the mounting holes of the pi board unless your real confident thats were its final resting place will be.
« Last Edit: May 01, 2018, 03:13:27 PM by Tuicemen »
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3698
  • Making Home Automation Fun!
    • Tuicemen.com
Re: CM15A+Pi Zero W mod
« Reply #4 on: May 02, 2018, 09:27:32 AM »

Once your all setup you can fire up a browser and open the URL the HA program you installed on the Pi.
If you've not installed one I recommend Home Genie as I found it to be very simple to install and the interface looks good.
the setup is as simple as cutting and pasting 4 lines in your terminal once logged on
see:
http://forums.tuicemen.net/index.php?topic=1292.0

You'll also want to set your Pi so it has a static IP If not done so yet follow the instructions here:
https://www.modmypi.com/blog/how-to-give-your-raspberry-pi-a-static-ip-address-update
« Last Edit: June 21, 2018, 10:30:52 AM by Tuicemen »
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3698
  • Making Home Automation Fun!
    • Tuicemen.com
Re: CM15A+Pi Zero W mod
« Reply #5 on: June 21, 2018, 10:42:51 AM »

I found and ordered a 5 volt 2 amp wall wart from China.
This is inexpensive enough to attempt a second Phase of the mod which is to include placing the 5 volt Power supply in The cm15A as well. Although you may be able get the 5 volts from the CM15A directly my measurements indicate only 4.5 volts and less then 1 amp so I'm not confident this will be enough to power the Zero W.
Initial measurements suggest the wall wart will fit inside a newer Cm15 with out having to mod the wall wart.
A older unit may require some extra work.
 I'll try to get started on this once the power supply arrives.
Since this is in operation ahndling my HA it may not be till fall before I get some free time to do it.
I don't wish to lose my HA setup while working on this so I'll need to switch back to a CM15 connected to Windows.
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3698
  • Making Home Automation Fun!
    • Tuicemen.com
Re: CM15A+Pi Zero W mod
« Reply #6 on: July 19, 2018, 11:54:53 AM »

My power supply  is still some where in route. ??? ::) :`)
However I've been reading up a bit on the zeros power requirements and notice it will run on 3 volts.
Just how much of a hit things take running on that voltage is hard to say.
I can get 4.8 volts off one of the RF daughter boards on a older CM15 using these, so I may attempt that in my next mod step.
I also read how not having a heat sink on a Pi's CPU can slow things down as it heats up so I added one but have yet to notice any real improvement.
the heat sink I used was the one that comes with the Pi 3B+ Cana kit and it works in side the older CM15As without touching any of the daughter boards.
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3698
  • Making Home Automation Fun!
    • Tuicemen.com
Re: CM15A+Pi Zero W mod v2
« Reply #7 on: September 12, 2018, 05:41:25 PM »

Eliminating the external USB connection & freeing a USB port.
While looking at options for another SBC to utilize I also wished to clean things up by removing the USB cable which connects the PI to the CM15A and having that hardwired inside. This is an easy to  do solder job as the Zerro has some USB test pads available to solder to.
These same pads are used for many USB daughter boards which add up to 4 full sized USB Ports.
https://blog.hackster.io/adding-usb-ports-to-the-raspberry-pi-zero-c9a50dc40af4
I've yet to do this mod but placing links here till I get to it.
this one shows how to solder an extension USB cable to the Zero and shows the pins in with a bit more detail.
https://www.instructables.com/id/Raspberry-Pi-Zero-OTG-Hack-Add-a-Fullsize-Connecto/
Originally this is what I had thought to do so I had an extra USB port but I planed to go a bit further soldering the other ends directly to the CM15A board.
You'll most likely want to use a flat ribbon cable like those used for PC hard drives.
I have a few of these laying around  so I plan to use a piece of one utilizing four wires as they can easily be pulled apart. (Chr)

Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!
Pages: [1]
 

succession-resounding