I'm trying to get data via serial connection from my router by arduino's UART.
I'm getting incomming data, but it's garbage only!
My router has 3,7 V on UART so i decied to use MAX3232 to convert to 5V TTL levels.
After i checked port by reading router's boot log by terminal program (9600,8n1) on desktop PC with physical rs-232 COM port. Everything is readed fine!
i have duino nano v3 and other devices with serial interfaces which works with my duino on same pins.
At least, some weeks ago i have tryed this scheme at first time and transmition to duino was OK !
But now i can't repeat that success. Same hardware, same sketch. What is wrong ???
My router has 3,7 V on UART so i decied to use MAX3232 to convert to 5V TTL levels.
After i checked port by reading router's boot log by terminal program (9600,8n1) on desktop PC with physical rs-232 COM port. Everything is readed fine!
Yes, i noticed what 12V RS-232 COM port works with 5V (i've checked that by tester) Serial. That's a little strange, but 5V duino's pin must recive for sure! But he didn't. Any idea what else can i check ??
The point you may be missing is that the max232 inverts a TTL signal into an rs232 signal. AKA, using the max232 chip is probably what is causing the problem by inverting the signal. Router probably outputs a TTL signal and the arduino uses TTL input (the pc probably requires the inverted rs232).
tonich:
without max3232 Arduino can't get signal at 3,7 V.
Just connect the router tx to the arduino rx, and connect the the router and arduino grounds together. The arduino probably can read a voltage down to 2.2v or maybe 1.2v on its rx pin.