Go Down

Topic: Sketch Uploading: USB to TTL Serial Converter (Read 7162 times) previous topic - next topic

jimbo8098

Mar 15, 2012, 12:36 am Last Edit: Mar 15, 2012, 09:45 am by jimbo8098 Reason: 1
Hi Guys,

Bought an arduino pro mini the other day and it arrived today. I intended to stick wires in , not realising it didnt have USB conversion in place. So now I'm stuck :S .

I would love to buy the cables pre made but I live in the UK and the price for the cable is £26 after P&P and VAT. The breadboard on sparksfun is similar since I'm not in the US it is a whopping £10 just to get the cable shipped!

So I'm left to make it myself. Now over here , I had a look on ebay for the arduino converters and , unsurprisingly , they are not there. So looked for USB to TTL connectors , hoping to find something on that , woohoo , found something! Mainly Asian manufacturers but a few UK distributors.

Before I buy one though (I'm looking at something like this http://www.ebay.co.uk/itm/USB-2-0-TTL-UART-6PIN-CP2102-Module-Serial-Connector-Converter-Adaptor-Cable-/290681214240?pt=UK_Computing_CablesConnectors_RL&hash=item43adf35520) I notice there are only 5 pins.

So my question is:

With these 5 pins , How do I connect those to the 6 on the arduino? Presumably one is duplicated?

As in:

http://www.uchobby.com/wp-content/uploads/2009/10/CA42_mod.jpg
found on http://www.uchobby.com/index.php/2009/10/04/diy-usb-to-serial-cable-for-3/

Can't follow that guide to the word since the cable he is talking about isn't in any UK ebay shops. But I DO notice the cable has 5 outputs to the connection to the arduino.

I do see on the pin diagram on the ebay product , some of the outs match up with holes on the arduino where the 6 pin connector would go.

Thanks in Advance :)

Jim

EDIT: I meant £10 for the shipping alone , daylight robbery I tell you! But I can get an interface like we are talking about here shipped to the UK free?

retrolefty

The pins probably don't match up directly to your pro mini, but the below serial converter module is very inexpensive and easy to modify to even be able to activate the auto-reset function if you wish. Note the bottom right hand picture, it shows solder pads for the typical serial control signals. Just wire a small .1mfd from the DTR pad to the base of the pin labled RST. Then cut the trace on the PCB that is going to that same RST pin. Now all you have to do is wire the ground, TXD, RCD, RST to the approprate connections to your pro mini board and you should be good to go. You can even power your pro mini via this USB module by wiring the +5vdc pin to your board.

http://www.ebay.com/itm/370532286388?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649

Lefty

jimbo8098

Awesome :)

What do you mean by .1mfd? I have no idea hehe.

I'm not sure which one is the bottom right on your screen since I'm using a tiny 1024x768 screen but I assume you mean this one:

http://i.ebayimg.com/00/$%28KGrHqV,%21h8E2JUonrT8BNzMFb4KW%21%7E%7E_1.JPG

I've attached what I can guess , Usually standards for live/gnd in UK is red and black respectively. Is that maintained in US circuitry?

Is Vcc the live wire here mabey?

Jim



CrossRoads

#4
Mar 15, 2012, 09:42 pm Last Edit: Mar 15, 2012, 09:45 pm by CrossRoads Reason: 1
Need to connect up power too. programmed 5V to Promini VCC

0.1uFd cap (also referred to as 100 nF)
I think Promini already has a cap between its DTR pin and reset pin.
Check the promini schematic on the Arduino Harware page.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

jimbo8098

Thanks CrossRoads :)

I thought thats what lefty meant by 0.1uFd , it was the d that threw me XD

So I give 5V to the Vcc Pin.

Heres the schematics for the arduino pro mini:

http://arduino.cc/en/uploads/Main/Arduino-Pro-Mini-schematic.pdf

There is a cap on the DTR pin , 0.1nF

I also see in the schematics the black is a GND and the green is DTR.

Where does the RST one go to? I take it this one is the DTR?

CrossRoads

Prolific RST (now rewired as DTR) goes to Promini DTR pin (labeled GRN and connected to left side of C2)
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

jimbo8098

Ok , cool , so its like this then? (attached)

Just trying to make it simpler for other noobs like me :)

Jim

jimbo8098

#8
Mar 16, 2012, 12:32 pm Last Edit: Mar 16, 2012, 12:36 pm by jimbo8098 Reason: 1
Wow , that pic uploaded pretty nastily...

Reuploaded.

Jim

EDIT: that went well...

Uploaded to imageshack , working there:

http://img12.imageshack.us/img12/663/arduino2.jpg

CrossRoads

Yes.
Pic might go better if cropped/resized to finish up around 800x600.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

jimbo8098

Awesome! :)

Thanks for your help guys :D

Now we play the waiting game for the adaptor to arrive... fingers are crossed heh

Jim

jimbo8098

#11
Mar 28, 2012, 02:32 pm Last Edit: Apr 02, 2012, 09:45 am by jimbo8098 Reason: 1
I finally came! Happy Days!

Shall try the method outlined here tonight...

EDIT: Whoopsy daisy , I meant It came lol

jimbo8098

Ok so I kinda got it going. Snipped the trace on the board then soldered up a pseudo header very badly and , when I chonnected it up , the light on the arduino came on solid , the green one flashing , a good sign methinks! however , the connection is so bad I cant do anything lol.

I have ordered a breadboard and header pins lol

jimbo8098

#13
Mar 30, 2012, 09:53 am Last Edit: Mar 30, 2012, 09:56 am by jimbo8098 Reason: 1
Spent some time tidying up my novice soldering and got the arduino to come on! IT'S ALIVE! I tried to upload the blink test and got out of sync error. The red light was on but there was a green one that seemed to have a loose connection , most likely on my board, but when i move the arduino on my homemade headers (made of an untwisted spring lol) , it will come on and off as I move it. I got it to stay in place and the green light was flashing quickly. I tried to transfer the sketch then but I dont think it worked. Either way , I stuck a green led accross port 13 and gnd and it flashed in some cases so can I assume it is working and to ignore the out of sync or is it just a feature of the board to send a clock signal over 13 , kind of like the other green flasing led next to the reset button?

EDIT: I did also notice in device manager , the yellow exclamation mark was showing , the one when it couldn't find any drivers for the device. Could that be it maybe?

jimbo8098

Managed to get it "working" on the breadboard using some header pins. Now the red light always shows but the green one doesn't. The arduino is solid on the terminals so it can't be a dodgy connection. I've not bricked it have I? I managed to get it to do the blink test as I was saying so I don't think it is dead but I still get the "out of sync" error. Is this the real life or is it just fantasy?

Go Up