gustavolsilvano2
Newbie level 4
Hello there!
I want to connect my Arduino to a MIFARE reader wich has his datasheet attached (**broken link removed**)
The reader has a ST232C IC wich is used to communicate using RS232. The problem is that Arduino uses TTL. I read -9.11 V on the output of the reader. When I put a MIFARE card near it goes to -8.0 V.
If that what I did is use an amp-op to reduce (and invert) the voltage level to 5 V.
With that I receive some was some strings. They are constants but far from what I wanted to receive (attached).
Here is the code:
So, is there something wrong about what I'm doing?
View attachment Datasheet Leitor MIFARE.pdf
I want to connect my Arduino to a MIFARE reader wich has his datasheet attached (**broken link removed**)
The reader has a ST232C IC wich is used to communicate using RS232. The problem is that Arduino uses TTL. I read -9.11 V on the output of the reader. When I put a MIFARE card near it goes to -8.0 V.
If that what I did is use an amp-op to reduce (and invert) the voltage level to 5 V.
With that I receive some was some strings. They are constants but far from what I wanted to receive (attached).
Here is the code:
Code:
void setup() {
Serial.begin(19200, SERIAL_8N1);
}
void loop() {
while(Serial.available() == 0);
char val = Serial.read();
Serial.println(val);
}
So, is there something wrong about what I'm doing?
View attachment Datasheet Leitor MIFARE.pdf