Arduino UNO R3 and ESP8266 node mcu connection keeps having a problem with the communication. What to do?

Hello, I am working on a project to enable communication between an Arduino UNO R3 and an ESP8266 NodeMCU. I plan to integrate an RFID reader to scan RFID tags. The ESP8266 NodeMCU will then communicate with a website (https://mywebsite.com/validate_rfid ) to verify if the scanned RFID tag is registered. The result, either 'validated' or 'not validated,' will be displayed on the monitor. Additionally, I aim to use a GSM module to send an SMS message from the Arduino UNO R3 based on the validation result. Can anyone assist me with visualizing the project, creating a layout, providing code snippets, and other relevant details?

how will communicate between the UNO R3 and ESP8266? serial, I2C, RS485, ?
probably simpler to drop the Uno and use a ESP32 (with onboard WiFi, Bluetooth Classic and BLE) for the complete project

Hello Horace,
We plan to establish a wireless connection via Wi-Fi, where we will send GET requests from the ESP8266 NodeMCU to our website to check the RFID tag. The NodeMCU will then relay the validation result to the Arduino UNO for sending an SMS. We are using the serial monitor for communication to retrieve data.

if the RFID reader is connected to the ESP8266 why not connect the Modem for sending a SMS?
it looks like the UNO is just making things more complicated

1 Like

this is the concept design of our project, the RFID reader is connected to the UNO, same with the GSM module. There is also the GPS module but we want to focus first on establishing connection and validation before incorporating location tracking.

if you are still in the concept and design stage of the project I would use a more modern and powerful microcontroller than the UNO
in the past there was usually no choice - I have used external wireless, CANbus, Bluetooth, Ethernet, etc modules on industrial projects

in particular having to program two microcontrollers and the resultant communications can make the overall task complexity an order of magnitude greater

2 Likes

Our initial plan was to utilize the ESP-01S module. However, we consistently encountered a packet header timeout issue whenever executing our code. Despite attempting tutorials on how to configure the ESP-01S module, we were unable to resolve the issue. Do you happen to have schematic pinouts for the ESP-01S module, as well as a basic code snippet that we could utilize?

what were you attempting to do? run a website on the ESP-01S?

for schematic etc see ESP8266_01_pin_magic

1 Like

Thank you for the link, We were attempting to connect our UNO to the website using the ESP-01S module.

not a trivial task - see Using-ESP-01-and-Arduino-UNO

things to note

  1. the UNO has one hardware serial port used for loading code and the serial monitor
    lookss like you require three more serial ports, e.g. GSM, GPS and ESP-01S - look at limitations of software-serial and AltSoftSerial - you could use a Mega which has four hardware serial ports
  2. the UNO/Mega usrs 5V logic the ESP-01S 3.3V logic - you need to potential divider on the UNO/Mega Tx to ESP-01S Rx line

still think a ESP32 would make your life much simpler

1 Like

that is sooo helpful to us thank you very much horace, we will keep in mind those things to take note of, it was a really helpful advice. Will be back if we encounter another problem

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.