Re: USB Over Current :( Diavolino Trouble Shooting

Home Evil Mad Scientist Forums Microcontrollers USB Over Current :( Diavolino Trouble Shooting Re: USB Over Current :( Diavolino Trouble Shooting


So, just having had the experience of dealing with two third-party USB to TTL boards and a Diavolino in combination, maybe I can contribute something here.  First, I may be reading you wrong, but you may be thinking about this in the wrong way.  That a pin is ground certainly doesn’t mean you should apply voltage to it directly.  In fact, in this case, you probably — perhaps depending on how you built your Diavolino — want to think of it as a case of the adapter providing power to the Diavolino.  Did you build it to pull power from the TTL adapter?

So, what I mean by that is that they should be connected ground to ground and +5v to +5v.  RTS is used to trigger the auto-reset of the Diavolino, so I suspect that it should connect to the RST pin on your adapter.  RX and TX are trickier, since I’m really not sure if there’s a standard for labeling them that prevents people from getting it backwards; that is, I don’t know if RX always means “I receive signals here” or it may sometimes mean “connect the remote receiver here” (making it actually TX…)  Anyway, I’d try connecting RX on the adapter to TX on the Diavolino and vice versa.  If this doesn’t work, swap wires on one end, connecting TX to TX and so on, just to make sure.

Because ground and CTS are basically the same line, there’s not really a need to hook both of them up.  I’ve been using a five pin arrangement that just skips attaching anything to the ground wire of the Diavolino and grounds CTS instead.  This works for me, though perhaps there’s some reason it would be better to just use the ground pin.  Certainly, don’t directly supply voltage to them. :)

So, briefly, what I’m suggesting (and what works so far for me) is this:

RST->RTS (I think, though my adapter isn’t as vague about it.  I actually connect DSR there)
RX->TX (or maybe RX if this doesn’t work)
TX->RX (or maybe TX…)
CTS->GND (or you can leave it open if the next pin is grounded)
GND->GND (…or you can just use CTS above.)

Now, a few warnings.  Don’t apply voltage backwards.  I did this once, and it heats up the ATmega in the Diavolino pretty well.  Luckily no damage, but be very careful.  Also, if you’ve managed to get your TTL adapter to produce a burning smell, I’d test it before trying to get it properly hooked up.  At least do a loopback test.  This involves disconnecting everything from the adapter, connecting its RX and TX pins together, and plugging it in.  If you have a standard old terminal program, you can open it up, telling it to use the adapter’s port for communication.  Now try to type something in.  If you can see what you’re typing, there’s a reasonable chance that the data is flowing through the adapter, out of the TX pin, into the RX pin, and making it back intact.  This is good news.

Of course, it doesn’t guarantee that the thing will work.  Of my TTL adapters, one of them refuses to properly toggle the auto-reset, nor have I been able to get it to program the board properly even when I hit reset manually, and the other works fine.  Both do loopback connections just fine, and so are functional in some sense of the word.  Anyway, hope some of this will help.