3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino USB

Arduino USB
«
  • MY USB.JPG
  • USB to RS232 Serial DB9.JPG

LOG: Made a correction/modification Step 3 and added a picture step 5.

So many Arduino users have RBBBs(Really Bare Bones Board (Arduino))  or Anarduinos or Boarduinos that could use a USB interface to program and power them but don’t want to spend $15-20 for a USB BUB or FTDI cable. This Lazy Old Geek is one of them.

 Theory: Most Arduino clones are programmed with a PC using a USB port. Theoretically, they could be programmed with an RS232 port but it is really hard to find a PC with RS232. Some Arduino clones come with a USB converter but most do not. Most require a TTL serial connection. TTL stands for Transistor-transistor-logic which basically means 0-5Vdc logic. So these Arduinos require a USB to TTL converter. One of the more common is the USB-BUB by Modern Devices:

http://shop.moderndevice.com/products/usb-bub

I own one and like it but they’re costly.

 So I saw these (see picture) USB to RS232 Serial DB9 Adapter cables on ebay for less than $2 so I bought one. Since I had three weeks to wait for it, I thought about and realized that it probably wouldn’t work as true RS232 has plus and minus 3-15 Vdc signals. The Arduino requires TTL levels which are 0 and 5 Vdc. Nevertheless, I’d already bought it so I took it apart. It apparently had a PL2303 chip in it and I saw no level converters. Anyway, I don’t have any kind of RS232 device to check it with but don’t see how it could ever work with a true RS232. But the other thing is; I couldn’t get it to work with an Arduino. If anyone has gotten one of these to work, please let me know how.

 Next I saw this article about converting a camera adapter to work with an Arduino.

http://www.uchobby.com/index.php/2009/10/04/diy-usb-to-serial-cable-for-3/

You might be able to get these adapters cheaper than the one I used. Following the guidelines it should work fine.

 
Remove these adsRemove these ads by Signing Up
 

Step 1My Arduino USB

My Arduino USB
«
  • PL2303_1.JPG
  • FemaleHDR.JPG
  • MaleHDR.JPG
  • WireWrap.JPG

I bought this PL2303 adapter on ebay.com.

USB2.0 to RS232 TTL Converter Module PL2303 +4pcs cable

But they can also be bought directly from Virtual Village

http://virtualvillage.com/Items/003602-036?&caSKU=003602-036&caTitle=USB2.0%20to%20RS232%20TTL%20Converter%20Module%20PL2303%20%2b4pcs%20cable

for $2.99 plus $0.99 postage and handling. I’ve had good luck with Virtual Village.

Likes:
Well made board, works with TTL.
Fused
LEDs for power, TX and Rx

Dislikes:
No schematic, operating instructions
Uses a standard USB connector instead of a mini.

Other parts needed:
2- 6 pin female headers
Wire

Optional parts for auto reset:
1 capacitor 0.1uFd (104)
1 male header pin
Wire wrap wire or magnetic wire.

Total cost should be less than $5.

« Previous StepDownload PDFView All StepsNext Step »
16 comments
May 22, 2012. 8:15 AMofftherails2010 says:
Hello & good day to you Lazy Old Geek (love the nickname, lol x 2!!!)

Befor i start with my question, A 'MAJOR' Thanks for making and sharing this instructable with us all, its an amazing piece of very-well-laid-out instructions that even an electronics learner like me can follow!!

Have already rated it 5 stars - Many thanks !!!

 Ive also acquired the same PL2303HX usb TTL converter from HERE (very very low price so i ordered 3 just in case i mess this up!)

Anyhoo, ive installed the driver for it and my windows 7 pro has accepted it perfectly but my system wont instal the RBBB which i bought 3 kits of direct from Modern Device but cant get it installed on my pc because i have no driver for it.

This is what ive tried so far:

- Driver from the Arduino.cc website (the driver that came with Arduino IDE)
- FTDI Drivers ? (i read somewhere that these were needed but not sure now?)
- Google searched my brains-out for an RBBB Driver but still unable to find one after 2 weeks of searching ?

None of this worked (by manually selecting the driver to be updated by device-manager - update device properties etc)

Please please please could you say where you found the driver for your RBBB Arduino clone recognised ?!!!?

i have 3 of these RBBB's all working and soldered together and the pilot light comes on as it should in the instructions of soldering these boards together but i do not have 'Arduino Uno' in my com ports in device manager, just an 'unknown device' (which is no doubt my 1st RBBB clone!)

I really want to do this instructable as its the most-in-depth article online - EVER !!!!

Many thanks once again for the push in the right direction and once again MAJOR thanks for publishing this truly amazing, well thought-out & extremely inspiring piece of ingenuity !!!
May 23, 2012. 11:29 AMofftherails2010 says:
Hey many thanks for the cable lacing tip as well, i totally forgot to say thanks for that one !!!

Yup, you guessed it, ive only just started messing around with arduino's and have soldered 2 of them so far, but everytime i try to upload the simple 'Blink' sketch from the arduino IDE i get this message in red:

                  avrdude: stk500_getsync(): not in sync: resp=0x00

also apart from the red LED on the PL2303 being -on- constantly, there is another LED on the PCB, a Yellow LED but this doesn't switch on until i unplug my RBBB and there's no activity or change in the LED's as the IDE software tries to upload ? Would you know whats causing the sketches to fail ?

 I have been using instructions from HERE to upload, the manual reset way but after i stumbled upon your instructable i thought i'd rather have the software reset instead as its much less messing about with trying to find out how many seconds to hold down the reset tactile switch on my RBBB !!! plus i dont mind trying to solder a capacitor to the DTR pin on the PL2302 as i have two of these USB PCB's but they are so cheap it wont really matter if i screw it up !

So as soon as i can just figure out why i cant get a simple Blink sketch to upload, then i'll be soldering the PL2303 PCB as per your great instructable !

I really just want to see the sketch upload just for peace of mind that everything works as its supposed to (as standard, lol) and then modify the PL2303 after !

Please would you be able to say if you had the problem above?
ive trawled through the arduino forums and modern-device forums and still dont have an answer for this - its driving me crazy as ive 2 RBBB's fully soldered and awaiting sketches but still having this problem !!!

Please help if you can !

Many thanks in advance again LOG !
May 24, 2012. 11:21 AMofftherails2010 says:
Hello & Good day to you L.O.G !!

Thank you very much for the extra support into the start to my arduino adventures !!

After re-reading your 'ible a few more times i had decided that things would just go much more smoothly if i just sent sketches to the RBBB via the DTR Automatic software reset method....

I also noticed that the PL2303 that i have is slightly different to the one in your 'ible and so hunted for the exact same version you have 'tinkered-with' lol, and have four of them on thier way, alot more expensive than the one i have, (pictures below) but im guessing that the pricipal of what we are trying to do is basically the same, it cost £2.78 & the one i bought cost £1.61 - both from ebay, but a darn sight cheaper than the FTDI or BUB/BUBII PCB's !

i  bought 4 of these PL2303 PCB'c for the price of one BUB II !!!

Sorry, back to the matter at hand, i soldered a 0.1uF Cap to Pin 2 of the DTR_N Pin of the chip on the PL2303 and soldered the other leg of the cap straight to a pin header and hot-glue-melted it into place so that was the most fiddly soldering ive ever done - ive usually steered away from any kind of SMD work/rework but this thankfully turned out ok!

Now before i connect it all up, i'm a little fuzzy on 'Step 4' - because i want to try to copy your great work 'to the letter' in the hope of eliminating any possible problems in regards to uploading sketches with the software reset !

Ive included a pic of my PL2303 ( also does the ATMEGA 328 Chip & ATMEGA 168 have any difference to the pinouts ??? because the RBBB instructions are still only showing the ATMEGA168)

1.
I take it that the DTR pin from the PL2303 goes to the reset pin on the RBBB ? am i to assume correct ? Sorry for the silly question but ive read some right-horror stories on the arduino forums about frying the atmega chips and i only have two of these and would just like to be sure ?!!?

2.
The only pin-outs i have on my PL2303 are:
DTR     (Newly created thanks to you!!!)
3v3      (3.5v {measured with DMM})
VCC    (5v)
TXD
RXD
GND

so do i just connect it up as your instructions say, as: (for software reset?)
Adapter         Arduino
DTR                DTR (is this the reset pin on the RBBB ???)
NC                  Rx
Gnd                Tx
Rx                   5V
Tx                    NC
5V                   Gnd

Once again many thanks for the awesome help, i'm truly grateful for the time you have taken already to help me out!!!
May 24, 2012. 4:38 PMofftherails2010 says:
!!!   ***   ***   *** LAZY OLD GEEK   ***   ***   ***   !!!

Your a GENIUS !!!

Thanks so much, i have a 'Blinking RBBB'  !!!!

If it wasn't for your great instructable i would have still been sitting here scratching the hell outta my head going crazy tring to figure out why i couldn't send sketches to my RBBB !!!

Ive got 2 RBBB's soldered together and another 2 needing to be soldered but i'll load 'Blink' onto all of them just to know that my soldering was done a-o-k !

Many thanks for the smd praise, its extremely appreciated, i'd been avoiding learning electronics for the past 15 years but now that we have toys like arduino's around i just had to start learning & ive only started this year so it really does me proud to hear such a comment from a professional electronics expert !

Here's What i Used:
*** THIS awesome instructable !!! ***
* This PL2303 TTL to RS232 USB Converter (Very Cheap!)
* Driver From This instructable !!! (STEP 2)
* Windows 7 64bit
* Arduino IDE (From arduino.cc)
* 1 x 0.1uF Capacitor (100nF, mine was rated @ 50v)
* a little heatshrink (for Capacitor leg)
* Small Glue Gun (Again, nice & cheap {takes 7mm Glue Sticks}!!!)
* NO COFFEE or REDBULL for the day lol (im addicted to Energy Drinks so have REALLY shaky-hands!!!)

Settings Under Device Manager-PORTS-Prolific COMM port Properties:
i read somewhere on one of the arduino.cc forums that it would be a good idea to set the baud-rate (bits per second) to 57600 so this was the only setting here i tampered with, from what i read, it was so that the sketch upload doesnt 'time-out' if/when uploading big sketches, but since i'm still a learner this wouldn't affect me much just yet but i thought it be good practise to knoe where this setting was for when the time came to fully utilise it, lol

Settings Under Arduino IDE:
under tools - board - selected 'Arduino Uno'
under tools - serial port - selected 'COMM 4' (on my PC this was the only COMM Port !)
under tools - programmer - selected AVR ISP II (This was the 'default' setting !)

Physical Connections From USB Adapter to RBBB:
PL2303 Adapter:                       RBBB:
           RX------------------------------RX
           TX-------------------------------TX
           3v3------------------------------5v
           GND----------------------------GND
           DTR-----------------------------RST PIN

Followed you 'ible to the letter but when i tried doing the Function Test (STEP 2) and wrote some text in the Top-Box of the window that appeared (Shit+CTRL+M) and hit <Enter> --- the text didnt drop down into the lower text box which got me worried, but i thought 'what the heck, its trial & error time again', lol, so i opened up the Blink sketch, verified it, then hit upload......   .......   ...... took some time and voila !!! Worked like a charm !!!

Once again - A mighty-MAJOR thanks L.O.G - an extremely great 'ible worthy of legendary-status !!!

& also thanks for persevering with my newbie questions and for being so patient - i now stand on a triumphant field of victory thanks to you !!!

"All Hail L.O.G" (lol) !!!

;-)
May 25, 2012. 7:56 PMofftherails2010 says:
!!! DUDE !!!

LOG - Your a Saviour !!!

Seriously, many thanks once again, ive done the same Cap-soldering hack on my 2nd PL2303 and thats also working like a charm !

i used a 2-part plastic-weld glue to secure the DTR pin (i use this glue alot, lol) but have recently picked up a batch of clear potting resin that im going to encase the whole USB Module into (only because i accidently shorted a USB module in the past as it was lying on a wire-link i had forgot to send to the trash! ), just got to make sure not to fill the holes of the usb port and have it sticking out of the mould a little so it will still connect into a female USB Port!

Yeah i share your advice, instructables arduino guides are much easier to digest than arduino.cc, if only they followed-suit, lol, & ive been studying Adafruit.com for a few weeks now and its full of great stuff too!

Quick silly question though, lol, can i connect multiple RBBB's to a single PL2303, or the more likely story, would every RBBB need its own PL2303 - hence having a different COMM port assignment ??!!!??

Thanks again LOG - Your Legendary !
May 26, 2012. 2:23 PMofftherails2010 says:
Thats what i thought, good to know from the beginning i'll need a separate PL2303 per RBBB !

Once again, many thanks for the truly AWESOME instructable LOG !!!

Keep up the Great-Work !!!

;-)
May 23, 2012. 11:43 AMofftherails2010 says:
sorry forgot to mention that the arduino IDE is seeing the PL2303 as COM 4 so there isnt a problem with the PC and the driver is installed for the PL2303 PCB !
Jun 16, 2011. 2:29 AMwestfw says:
You probably couldn't get your first USB/Serial converter to work because it was providing (somehow) INVERTED TTL serial traffic. Inverted TTL will drive most devices that expect to talk to real rs232 devices, but not to devices like Arudino that want to talk non-inverted TTL...

An extra level of inversion might fix it.
Feb 12, 2012. 3:07 PMPete Kirkham says:
I have used them with an extra TTL inverter.
Jan 27, 2012. 9:01 PMHenry_Best says:
How about using heat-shrink and a hair dryer?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
47
Followers
33
Author:msuzuki777
Lazy Old Geek