Pages: [1] 2   Go Down
Author Topic: Serial Problem  (Read 946 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Brattain Member
*****
Karma: 602
Posts: 33362
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
MAX202

That should be "MAX232" I believe.  (or HIN232, ADM232, etc)
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25756
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33362
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
That should be "MAX232" I believe.
No the MAX202 is a perfectly good chip, I use it all the time.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://hacking.majenko.co.uk/rs-232-shield
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is the handshaking necessary? I will try this out any ways, thanks
Logged

UK
Offline Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No, it's optional.
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33362
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is the handshaking necessary?

Quote
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 Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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 Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Brattain Member
*****
Karma: 290
Posts: 25756
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you have an oscilloscope?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1] 2   Go Up
Jump to: