0
Offline
Newbie
Karma: 0
Posts: 21
Arduino rocks
|
 |
« on: July 13, 2011, 03:47:48 pm » |
Is it possible to connect directly to the Arduino, without using USB? I would like to connect it to a traditional COM-port instead. I have an Ardiuno Duemilanove... Any ideas?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25497
Solder is electric glue
|
 |
« Reply #1 on: July 13, 2011, 03:51:00 pm » |
Yes you need to use an RS232 to TTL level converter chip. I use the MAX202 but there are lots of them. You then connect the chip to pins 0 & 1.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 21
Arduino rocks
|
 |
« Reply #2 on: July 13, 2011, 03:55:24 pm » |
Do you have some schematics for it?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25497
Solder is electric glue
|
 |
« Reply #3 on: July 13, 2011, 03:57:04 pm » |
It is in the data sheet of what ever converter chip you decide to use.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #4 on: July 13, 2011, 03:57:09 pm » |
Yes you need to use an RS232 to TTL level converter chip. I use the MAX202 but there are lots of them. You then connect the chip to pins 0 & 1.
You will lose the automatic reset feature used to upload sketches from the Arduino IDE unless you also convert the RS-232 DTR signal to a ttl level and then through a series wired .1ufd cap to the arduino reset pin. Unless you are willing to just use the manual reset switch when uploading sketches, but you will have to learn the timing of the reset switch. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25497
Solder is electric glue
|
 |
« Reply #5 on: July 13, 2011, 04:00:14 pm » |
For an example of using this chip along with the auto reset see the schematic in this project http://www.thebox.myzen.co.uk/Hardware/CNC_Conversion.html
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 21
Arduino rocks
|
 |
« Reply #6 on: July 13, 2011, 04:10:15 pm » |
I have now ordered som MAX202's... I don't need the auto-reset functionality, as the chip isn't going to be reprogrammed. What I do need however, is a simple wiring diagram to connect it. I'm quite sure I understand the diiagram from the CNC-thingy (which was ultra cool, by the way) - but could somone draw it up, with just the basic send/recive-functionality?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 21
Arduino rocks
|
 |
« Reply #7 on: July 13, 2011, 04:43:11 pm » |
Will this do? Or, do I need something connected to pin 6 and 15 (on the MAX202), despite not using the reset? 
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 313
Posts: 35502
Seattle, WA USA
|
 |
« Reply #8 on: July 13, 2011, 04:43:35 pm » |
You are not, of course, required to use pins 0 and 1 (the hardware serial port). You can use NewSoftSerial and any two other pins.
Unless you have a Mega, with 4 hardware serial ports...
|
|
|
|
|
Logged
|
|
|
|
|
Sussex UK / CT USA
Offline
Edison Member
Karma: 0
Posts: 1026
Forums forever
|
 |
« Reply #9 on: July 13, 2011, 04:49:54 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 21
Arduino rocks
|
 |
« Reply #10 on: July 13, 2011, 04:59:40 pm » |
But, other than the fact that I could use other digital ports, would the above work? Would II be able to send and receive commands from my arduino?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25497
Solder is electric glue
|
 |
« Reply #11 on: July 13, 2011, 05:09:27 pm » |
Yes but you have included the reset on pin 9
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 21
Arduino rocks
|
 |
« Reply #12 on: July 13, 2011, 05:14:05 pm » |
So, I can leave out the connection between pin 9 (on the Max202) and pin 1 ?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25497
Solder is electric glue
|
 |
« Reply #13 on: July 14, 2011, 06:37:57 am » |
Yes if you don't want the auto reset.
|
|
|
|
|
Logged
|
|
|
|
|
Sussex UK / CT USA
Offline
Edison Member
Karma: 0
Posts: 1026
Forums forever
|
 |
« Reply #14 on: July 15, 2011, 04:24:30 am » |
But, other than the fact that I could use other digital ports Which "above"? (Rhetorical). The page I gave tells you how to send and receive commands. You have to be able to program the connected device, unless it is already set up to hold up its end of the "conversation", though.
|
|
|
|
|
Logged
|
|
|
|
|
|