Go Down

Topic: Arduino with MAX232 not transferring data properly (Read 5858 times) previous topic - next topic

sherkhan

Blog: http://www.sherkhan.net/blogs/frikadas

sherkhan

Look at this post. It work for me.

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

spiffed

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.
iDuino - MaxSerial - [url=http://spi

sherkhan

Yes. GND pin in db9 is connected to GND on arduino.
Blog: http://www.sherkhan.net/blogs/frikadas

spiffed

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

During transmit and idle?
iDuino - MaxSerial - [url=http://spi

sherkhan

Blog: http://www.sherkhan.net/blogs/frikadas

Jan G

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..

:)



nkcelectronics

@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.  

Jan G

nkcelectronics,

just saying the level converter I used worked for me.....  :)

spiffed

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.
iDuino - MaxSerial - [url=http://spi

Go Up