I’m currently working on a project where I need to send data from a MAX78000FTHR microcontroller to a NodeMCU (ESP8266) using the UART protocol. I’ve set up both devices and would like to establish a reliable communication channel between them.
Connections:
- MAX78000FTHR TX (Transmitter) → NodeMCU RX (Receiver)
- MAX78000FTHR RX (Receiver) → NodeMCU TX (Transmitter)
- Common Ground: Connect the ground (GND) pins of both devices together.
NodeMCU Code:
Here’s the code for the NodeMCU to receive the data:
void setup() {
Serial.begin(9600); // Initialize UART at 9600 baud rate
Serial.println("Ready to receive data...");
}
void loop() {
if (Serial.available()) {
int incomingData = Serial.read(); // Read the incoming data
Serial.print("Received: ");
Serial.println(incomingData); // Print the received data
}
}
I need the sender code for the MAX78000FTHR microcontroller along with the necessary connections to send data to a NodeMCU via UART protocol.
I attempted to establish UART communication between the MAX78000FTHR microcontroller and a NodeMCU by wiring the TX and RX pins correctly. I expected the data sent from the MAX78000FTHR to be received and printed by the NodeMCU. However, the NodeMCU is not displaying the expected data, indicating a possible issue in the max78000fthr code or connections.`
You need to sign in to view this answers
Leave feedback about this