So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By manny009
#63445 Hi Everyone.

Im new to this forum and to the ESP8266 module so I am hoping someone on here can help me out.

The project I am working on consists of an RFID Module (Innovation Technologies ID20) and the ESP8266-01 Wi-Fi Module.
My end goal is to be able to log RFID tags in a database once they have been scanned.

I am having some trouble reading the incoming data form the RFID reader through the ESP module. IE Reading the ESP8266 UART

Yes - I can flash the ESP module in the Arduino IDE
No - I am not using AT commands as I am writing a program and flashing it directly onto the ESP module Without a microcontroller (Arduino)

The baud rate of the reader is 9600
The baud rate of the ESP module has been set to 9600 via my code
and I am using the Arduino IDE to program it on Windows 10

Would be grateful if someone could point me in the right direction and let me know why/how my ESP module cannot read the data.






Code to read RFID data coming into the ESP8266 serial port

char val = 0; // variable to store the data from the serial port

void setup()
{Serial.begin(9600);} // connect to the serial port

void loop () // read the serial port
{if(Serial.available() > 0)
{val = Serial.read();
}
}

Circuit Diagram
You do not have the required permissions to view the files attached to this post.