I've spent the past 2 hours trying to get my ESP8266 working and I'm just stuck; I'm working on a project where I need to log data from a gas sensor and a DHT sensor to a Firebase rtdb using ESP8266 btut my issue is I can’t get the ESP8266 to respond at all
Wiring:
- ESP8266 GND → Common ground
- ESP8266 3V3 → Arduino 3.3V
- ESP8266 RX → Voltage divider (2 x 1kΩ resistors: one from Arduino TX (pin 11) to RX, the other from RX to GND)
- ESP8266 TX → Arduino pin 11
& I’m using this code to test w/ SoftwareSerial:
#include <SoftwareSerial.h>
#define ESP_RX 10
#define ESP_TX 11
SoftwareSerial espSerial(ESP_RX, ESP_TX);
void setup() {
Serial.begin(9600);
espSerial.begin(9600); // ESP-01 default baud rate
Serial.println("Testing Arduino and ESP-01 communication...");
}
void loop() {
if (espSerial.available()) {
char c = espSerial.read();
Serial.write(c);
}
if (Serial.available()) {
char c = Serial.read();
espSerial.write(c);
}
}
when I open the serial monitor, it just prints the initial line and then nothing no response from the ESP8266 at all
I tried swapping TX/RX, tried different baud rates, still nothing.
I have to finish this by TOMORROW and I rly need help. Is my wiring wrong? Is the Arduino’s 3.3V not giving enough current? Should I use a separate 3.3V power source? I’m using an Arduino Uno and an ESP-8266. (image attached)
Thanks in advance ![]()
