Pages: 1 [2]   Go Down
Author Topic: Arduino with MAX232 not transferring data properly  (Read 5408 times)
0 Members and 1 Guest are viewing this topic.
Sevilla - Spain
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

mmmm ..
Logged


Sevilla - Spain
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Look at this post. It work for me.

http://www.sherkhan.net/blogs/frikadas/?p=259
Logged


0
Offline Offline
Full Member
***
Karma: 0
Posts: 205
Don't Panic
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not sure if you've covered this, but you need to ground pin 5 of the DB9 connector. You also need to ground one end (and only one end) of the cable shield.

Most MAX232's charge pumps will run at 3.3 volts, but you'll only get about +/-6v.
Logged

iDuino - MaxSerial - [url=http://spi

Sevilla - Spain
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes. GND pin in db9 is connected to GND on arduino.
Logged


0
Offline Offline
Full Member
***
Karma: 0
Posts: 205
Don't Panic
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What is the charge-pump voltage? It appears on pin 2 and 6 for positive and negative respectively.

During transmit and idle?
Logged

iDuino - MaxSerial - [url=http://spi

Sevilla - Spain
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

+8.80/-8.20 transiming and idle.
Logged


Orlando, Florida, USA
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just did a little project where I used the Sparkfun RS232 to TTL converter. [sorry I am not allowed to post links... go to Sparkfun.com and search for "RS232 Shifter SMD"]

This only converts the Rx and Tx but it worked fine for me on my Sony Receiver and another RS232 device I have.

I am a firm believer in the KISS (Keep It Simple Stupid) principle and unless you need all the handshake signals this is the way to go..

 smiley


Logged

USA
Offline Offline
Sr. Member
****
Karma: 0
Posts: 452
Freeduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@Jan G, I don't agree that Sparkfun RS232 Shifter SMD is the way to go.  For half the price you can get a REAL RS-232 to TTL converter done using MAX232 or MAX3232 chips.  
Logged

Orlando, Florida, USA
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

nkcelectronics,

just saying the level converter I used worked for me.....  smiley
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 205
Don't Panic
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
just saying the level converter I used worked for me
And max232 like solutions should work for just about everyone. MAX232s require much less black-magic, like vampiring the negative voltage from the TX line.

But that's neither here nor there. If you have a handful of transistors, resistors, a diode, and a cap laying around, can replicate a transistor-based level shifter. Just follow Sparkfun's schematic. You can use pretty much any small signal transistors, I like 2N3904s and 2N3906s as the NPN/PNP respectively, but it shouldn't matter here. The unlabeled resistors should likely be either 10K or 1K.

The Arduino serial schematic contains a similar level converter, but it proved unreliable enough that both NKC and myself make MAX232 based 'duinos instead.
Logged

iDuino - MaxSerial - [url=http://spi

Pages: 1 [2]   Go Up
Jump to: