Offline
Newbie
Karma: 0
Posts: 13
|
 |
« on: July 22, 2012, 04:36:51 am » |
How can i connect another device with a RS232, 9600 Baud, to Hardware serial port of Arduino UNO?. i used hyper terminal and the device i want to use with arduino works fine, but i cannot read any thing from it using Arduino? The device has a female serial port connector, so far i just connected common ground and hooked up TX of device with pin 2 or Arduino uno (using softwareserial example sketch) but no luck. then i also tried connecting TX of device with RX of Arduino UNO. Please help me fix this problem!!!
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25501
Solder is electric glue
|
 |
« Reply #1 on: July 22, 2012, 04:39:17 am » |
You need a RS232 to TTL level converter. You can use a crap design or you can do it right with a chip like a MAX202.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Edison Member
Karma: 44
Posts: 2217
What a host of balls she had seen: gaity, the brass buttons...
|
 |
« Reply #2 on: July 22, 2012, 05:18:45 am » |
MAX202
That should be "MAX232" I believe. (or HIN232, ADM232, etc)
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19066
I don't think you connected the grounds, Dave.
|
 |
« Reply #3 on: July 22, 2012, 06:20:44 am » |
OP: DO NOT CROSS POST the same question in three different parts of the forum. It wastes time.
The duplicates have been deleted.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25501
Solder is electric glue
|
 |
« Reply #4 on: July 22, 2012, 07:27:17 am » |
That should be "MAX232" I believe. No the MAX202 is a perfectly good chip, I use it all the time.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #5 on: July 22, 2012, 08:19:21 am » |
ok thats fine, as far as i know, the max232 is like a voltage converter that helps establish common logic levels? in that case how do i hook up max232 with arduino? i know the chip has rin and rout and tin and tout pins and which direction should it be when connecting it to the arduino? and should i use arduinos hardware RX/TX? many thanks
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Edison Member
Karma: 44
Posts: 2217
What a host of balls she had seen: gaity, the brass buttons...
|
 |
« Reply #6 on: July 22, 2012, 08:45:10 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #7 on: July 22, 2012, 09:16:17 am » |
Is the handshaking necessary? I will try this out any ways, thanks
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Edison Member
Karma: 44
Posts: 2217
What a host of balls she had seen: gaity, the brass buttons...
|
 |
« Reply #8 on: July 22, 2012, 09:55:27 am » |
No, it's optional.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25501
Solder is electric glue
|
 |
« Reply #9 on: July 22, 2012, 11:21:29 am » |
Is the handshaking necessary? No, it's optional. Well it is optional at the arduino end but it might be needed at the other end, what ever that is.
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Full Member
Karma: 0
Posts: 105
|
 |
« Reply #10 on: July 22, 2012, 01:14:08 pm » |
You can use a crap design or you can do it right with a chip like a MAX202. By crap design, do you mean something like this? http://www.sparkfun.com/products/133 I hope not, because I just ordered two!
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #11 on: July 23, 2012, 01:54:38 am » |
Quick question, once i connect the MAX232 chip (available to me) to arduino, do i have to disconnect the USB cable which i use to upload the sketch to the board? i would use it to also view the serial data i read from the other device [the other device is an RFID receiver http://www.ebay.com/itm/RF8315R-Active-RFID-Receiver-Module-/300033606407 ]. Thanks
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #12 on: July 23, 2012, 06:05:19 am » |
i now built a max232 circuit, now i am receiving something but its just some unwanted character, and not what i am expecting. The baud rate is fine 9600 on every thing (rfid device and uno). My rfid has 2 transmitters and the receiver outputs codes of the transmitters via serial port and should be something like sh001 or sh007 but i am getting only one character for both which is "!". I rebuilt the max232 circuit and now i am getting the same problem but the character is different its "à". I am really annoyed by this small problem to which i have no solution... please help
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19066
I don't think you connected the grounds, Dave.
|
 |
« Reply #13 on: July 23, 2012, 06:27:50 am » |
Do you have an oscilloscope?
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #14 on: July 23, 2012, 01:47:45 pm » |
Unfortunately not, the thing is serial data is being received at correct time I know this because the RFID receiver upon catching the RFID transmitter, transmits that transmitters serial code out on the serial port every second, and those weird characters come every second. What I am confused about is that is it possible that the onboard arduino UNO serial to USB chip is interfering with data being received from the max232 chip that is sitting between the RFID receiver and the arduino UNO.
|
|
|
|
|
Logged
|
|
|
|
|
|