Wiring an ESP-01S to an Arduino Nano

Hi, I'm working on a final project which uses an Arduino nano, pulse heart rate sensor, OLED LCD, RTC, and ESP-01 wifi module. In this project I created a design for a heart rate measuring tool which will be connected to the ESP-01 wifi module to transfer data out of the tool to the application. In sending data using a realtime Firebase database. However, I have a problem, because the WiFi module continues to fail to connect so that data transfer cannot be carried out to the database. Below I have attached the schematic for the circuit as well as the Arduino IDE program. Please help with suggestions and input for my project. Thank you in advance🙏🏻

Failed to connect tool to Firebase, following attachment failed program in sending data.

Show the diagram to your mother and see what she makes of it.
Please read this

particularly the stuff about posting code.

The screenshot suggests you're trying to program the Nano as if it's an ESP8266.

IN the setup you have, you select Arduino Nano as the board to program. Connect the USB cable to the Nano. Select the right COM port in the Arduino IDE. Upload your code.

The Nano will then 'talk to' the ESP01 module through the Serial connection.

If you use the normal UART (TX and RX pins on the Nano) for the ESP, you may have to disconnect the ESP module when programming the Nano. You will also not be able to use Serial.print for debugging since everything will be sent to the ESP module. It's better to use a second UART (SoftwareSerial etc.) for the ESP. Do not connect the ESP to TX and RX of the Nano, but to the pins you use for the additional software Serial.

Your circuit diagram is unreadable and it appears several connections are missing/not made. Please correct this before proceeding.

Also consider testing the system in little bits and pieces. Start with just the Nano and the ESP module to see if you can get the ESP to connect to WiFi and your database system. If that works, start adding the sensors, one by one, testing and resolving any problems before adding the next component.

Good luck; you have quite some distance to cover yet, so be patient.

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