loaded a TeleLCO board
[web/altusmetrum] / FAQs / telemini_v3_usb.mdwn
1 # Can I configure and/or update the firmware on a TeleMini v3.0 board over USB?
2
3 Conceptually, it's easy.  In practice, it's really fiddly, because what you 
4 have to play with are 3 small holes in the board on 0.050 inch centers.
5  
6 Leaving the micro USB connector off is one of the ways we made TeleMini
7 fit in an 18mm tube.  But the main system on chip has USB available
8 still, so when he laid out the board, Keith brought the required pins
9 out, thinking it might be helpful in debugging or something, and our
10 software should know what to do if it sees a TeleMini show up on USB.
11  
12 On one edge of the board, there are 6 holes in a
13 row, one of which has a square pad, though you really have to squint at
14 it to see which pad that is.  It's the third pad in from one end, and
15 has 2 round holes on one side and 3 on the other.  The side with two is
16 what you care about... they are the USB plus and minus data lines.  3
17 connections will do it, GND / D+ / D-.
18  
19 To actually connect to these holes, the quickest hack is probably to
20 take some existing USB A to mini or micro B cable, cut the B connector
21 off, then carefully strip the outer jacket, strip the conductors, twist
22 and tin their stranded leads, and just stick them into the appropriate
23 holes.  Note that the usual color code for such cables is black for
24 ground, red for 5V (avoid like the plague getting that near our
25 boards!), green and white for the data lines.  On the cables we buy for
26 TeleDongle, et al, green is D+ and white is D-, but sadly not everyone
27 seems to get that right who sells cheap cables.  I've never seen anyone
28 mess up the red and black wires.  Fortunately, if you get the data lines
29 reversed, it won't hurt anything, it just won't work. 
30  
31 It's going to be a bit of a challenge to keep everything making contact
32 long enough to talk to the board.  You might consider finding some
33 50-mil pitch header pins to solder the wires to so you have a single
34 thing you're putting in and out of the holes.  Or maybe some micro
35 grabbers on each wire?  If you come up with some great solution, please
36 let us know so we can share the information.
37  
38 In any case, once you have the USB port wired up, with a battery and
39 power switch hooked up to the board it should show up as a USB device on
40 your computer and you should be able to use altosui to configure it and
41 update the firmware just like any of our other products.