Hi im new here.
I am using a 4-channel I2C-safe bi-directional logic level shifter to connect my Arduino Nano Every to the ESP8266. This level shifter is necessary because the Arduino operates at 5V logic levels, while the ESP8266 operates at 3.3V. The level shifter safely steps down the 5V signals from the Arduino to 3.3V signals that the ESP8266 can handle, and vice versa, ensuring that both devices can communicate without damaging the ESP8266's lower-voltage inputs.
Despite the correct setup, I encountered issues with the devices not communicating. I've rechecked all the connections and made sure the baud rates on both devices match, but the communication issue persists.
For the Arduino Nano Every, I've uploaded a simple sketch that sends a greeting message to the ESP8266 every two seconds.
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud rate
}
void loop() {
Serial.println("Hello ESP8266"); // Send data to ESP8266
delay(2000); // Wait for 2 seconds
}
On the ESP8266 side, I've loaded a sketch that listens for incoming serial data and prints any received messages to its serial monitor.
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud rate
}
void loop() {
if (Serial.available()) { // Check if data is available to read
String data = Serial.readString(); // Read the incoming data
Serial.println("Received: " + data); // Display the received data
}
}
Maybe someone can help me with my problem. I looked everywhere but could not find a solution.