I am going to share the design and code for the Arduboy Dock. This dock is basically a real life version of my Updater https://github.com/eried/ArduboyUploader/releases/ mixed with my repository http://arduboy.ried.cl/
The 3d models are here:
- Raspberry Pi Zero W
- Rubber feets http://www.ebay.com/itm/U-50-PCS-Self-Adhesive-Rubber-Feet-Clear-Semicircle-Bumpers-Door-Buffer-Pad-/252284449974?var=551118267305&hash=item3abd5334b6:m:mwEIafVJyIycz_kFlOcHuMQ
- Male micro USB http://www.ebay.com/itm/10Pcs-Micro-USB-Type-B-Male-5Pin-SMT-Socket-Jack-Connectors-Port-PCB-Board-/321990999393?epid=622511728&hash=item4af828bd61:g:AOgAAOSw7FRWZm-l
- Capacitor 220uF http://www.ebay.com/itm/5PCS-16V-220UF-D-case-227C-10-SMD-Tantalum-Capacitors-7-3mm-4-3mm-/391354402991?hash=item5b1e8a48af:g:3uEAAOSwZG9WhkBP
- 0.5 ohm resistor http://www.ebay.com/itm/10pcs-1W-1-W-Metal-Film-resistor-1-0-1-0-15-0-5-0-82-1-2-4-3-4-3-4-7-5-1-OHM-/322189651708?var=&hash=item4b03ffeefc:m:mwVnhtUsQDiAg4B015Ub6jw
Following the pinouts given here: http://neverstopbuilding.com/wiring-micro-usb-pinout and
here: https://cdn.shopify.com/s/files/1/0270/0585/files/PiZeroConnections_large.jpg?14913446398312428817 and also here: http://www.sunrom.com/media/content/811/micro-usb-pinout.jpg the idea is to connect:
- D+ and D- from the pads on the bottom side of the Raspberry OR the USB traces on the upper host usb (they are the same) to D+ and D- in the male connector (exposed in the dock).
- VCC directly from the USB PWR of the RPi to the VCC of the male connector, passing thru the resistor.
- Any GND to the male connector.
- The capacitor, oriented correctly, between VCC and GND.
The end result should look like this:
I removed the secondary USB because the Pi Zero only has 1 USB, but you may keep it and open the slot in the case for fitting it:
- Solder wires to the MICRO USB MALE connector, leave pad 4 without any wire. Check the diagram earlier in this post
- Set up the raspberry and get it working. You can try with the command:
cat /dev/serial/by-id/--------first entry item of that path here---------
to check if the arduboy is connected. First create a simple sketch that sends something via serial every second and connect the arduboy with a normal micro usb host wire (male to male)
- Solder the other components and use the backside pads of the Raspberry for the USB. Use the holes in the pcb to get the wires from one side to the other, there is not a lot of space in the case for go around
- Turn the raspberry on with an external charger or battery pack, do not use the computer usb port. (I burned my USB3 because bad connection… I was able to fix it back http://www.eevblog.com/forum/repair/help-to-identify-component/ but it is not something I recommend to do) check if you can get the Arduboy to send serial text, disconnect and retry a couple of times
- Cover the wires with kapton tape, or some thin insulator. Do not leave the wires or parts floating in the breeze.
- Assemble the dock. Scrape a little bit the bottom boundaries of the top part (the fit is tight but if it is too tight it may break the bottom part of the dock). Glue the MALE USB MICRO with a drop of epoxy. Set the arduboy while the glue is not completelly dry to get a perfect fit.
Print it, no supports required
Solder the wires and epoxy the male USB to the top part.
Work in progress (no real functionality yet, besides uploading hex and some other stuff but I am just trying and testing stuff so the code might be ugly
# Install Jessie light and then configure wifi: https://pirobotblog.wordpress.com/2016/12/25/setting-up-jessie-light-25-11-2016/ # Update and upgrade sudo apt-get update sudo apt-get upgrade ___________________________ sudo apt-get install avrdude mono-complete git ___________________________ # GIT actions # Delete repo rm -rf # Clone repo git clone https://github.com/eried/ArduboyCollection.git repo # Update local repo cd repo git reset --hard HEAD git clean -xffd git pull
First test here: https://github.com/eried/ArduboyUploaderDock
Copy the files to /home/pi/arduboy/ ___________________________ # Add to the startup sudo nano /etc/rc.local # Replace: exit 0 # with: mono /home/pi/arduboy/uploader.exe & exit 0
- Full repo browse (dynamic listing from the dock). Game name, category, images, description
- Mirroring game to HDMI
- Clock and alarm stand
- EEPROM save/load capability (automatic save if possible)
- Weather information, news ticker
- Surfing the internet thru the Arduboy?, notifications, etc?