Hello!
I do not know English well and write via google translator. Thank you in advance!
I need to connect arduino to rfid reader. The reader has an output rs232
there are only three wires that are connected to 2, 3, 5 pins.
I bought TTL rs232 for arduino.
connected rs232 to arduino:
GND - GND;
VCC - 5v;
RXD - pin10;
TXD - pin11;
There is a special program for rfid rmder.
When you connect the computer and the reader everything works.
connected arduino and reader in this way:
nothing works
Then I connected the arduino to my computer. Data reading works, sending does not work.
Code:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void loop() {
if(mySerial.available() > 0) {
Serial.println(mySerial.read());
}
if(Serial.available() > 0) {
mySerial.write(Serial.read()); //or print()
}
}
The read function works, the write function does not work.
P.S I wanted to send 3 photos only one