Is anyone can give me an idea how to connect this shield to my Arduino, I need the Arduino to be able to read data that comes into the Max232 at 9600,n,8,1 please help me with the wiring to the corre3ct pins, and a sample code.
Thank you, actually I don't think that a diagram is necessary, it looks simple, the board has 4 outputs RX TX VCC GND so I figured that I need to connect the TX to RX and RX to TX, then VCC to 5V of arduino and GND to the GND of arduino, so far it looks standard as any other communication device.
But because I'm still very new to arduino I still need a help to get the code needed to read the input that comes into the max232 and to be able to store it as a variable, could anyone refer me or send me a sample of a code that reads the RX at 9600,N,6,1
I have the ATmega328 that have a USB port but doesn't have a RS232 port, I need to get a signal from an electronic scale that has a standard RS232 output, so I taught that the way to get the signal is to connect the scale with a cable to a RS232 device such as Max232 that works with Arduino, but maybe I'm wrong, maybe there is a way to wire the RS232 cable directly to Arduino without an external device, if you know please tell me.
so I taught that the way to get the signal is to connect the scale with a cable to a RS232 device such as Max232 that works with Arduino, but maybe I'm wrong, maybe there is a way to wire the RS232 cable directly to Arduino without an external device, if you know please tell me.
You were taught correctly and that module would seem to work just fine. If you want a mating connector for that module you could buy from here: http://www.seeedstudio.com/depot/electronic-brick-fully-buckled-4-wire-cable-5-pcs-pack-p-486.html?cPath=178_179&zenid=9f6118c193cee9f8b7337d4df91a2eca and cut off the unused end, solder wire pins to insert into your arduino. But if you don't want to buy a package of five, it looks to be not too hard to solder wires directly onto the back of that connector. There are just four connections required, ground, +5vdc, signal out tx would wire to a arduino input pin and signal in rec would wire to a arduino output pin. You would probably want to utilize a software serial library to be able to use any free I/O pins you want to and not to interfere with the USB serial pins using pins 0 and 1. The following library is highly recommended and used by many: NewSoftSerial | Arduiniana
I followed your advice, and I soldered the wires directly onto the back of that connector, and plugged the wires to arduino, RX TX 5V and GND, it works now, the arduino gets the signal and I can read it on my PC trough the serial monitor.
Anything that comes to the MAX232 is displayed on the serial monitor even when no special program is loaded on arduino, that's probably because the pins 0 and 1 are rlated to the USB port, so the first step is done successfully.
Now I should try the library that you suggested, and use another pins for the IO, let see how I will succeed with that, I will ask for additional help if I'll need.