I bought this board Lqfp32 mini nano and cannot get serial communication between nodemcu and this board... Did someone has this problem? I have voltage divider btwen tx pin of mini nano and Rx pin on nodemcu side.
Can you post the missing part of your question ?
There is no missing part.... I connected Lqfp32 board to nodemcu rx/tx pins to get serial communication but cannot get it
Google.
I already googled but did not find it
Reading this link can give You useful ideas: How to get the best out of this forum - Projects / General Guidance - Arduino Forum
What is strange i wrote code which sends message from one board to other and after message is received board respond with message which never arrives to first board... Like TX from 2nd board is not working... But then i switched scenario and 2nd board is sending message to first board, message is received and response never arrives to 2nd board.... I tested tx/rx on both boards and it worked normally
Do you think the code and a schematic of how you've wired things together might help someone help you?
a7
If you have knowledge and had problem I talk about you can help
Connected Rx to TX and TX to Rx on boards
This is Nodemcu code:
Serial.begin(9600); // USB serial for debugging
Serial1.begin(9600); // Serial1 for communication with Mini Nano
delay(1000);
Serial.println("NodeMCU ready.");
}
void loop() {
// Send message to Nano
Serial1.println("HEY NODE IS HERE");
Serial.println("Message sent to Nano: HEY NODE IS HERE");
delay(1000); // Wait for response
// Check for response from Nano
if (Serial1.available()) {
String messageFromNano = Serial1.readStringUntil('\n');
Serial.println("Message from Nano: " + messageFromNano);
}
delay(2000);
}
And Code for mini nano
void setup() {
Serial.begin(9600); // Use Serial for communication with NodeMCU
delay(1000);
// Print a message to confirm setup completion
Serial.println("Nano ready.");
}
void loop() {
// Check for message from NodeMCU
if (Serial.available()) {
String messageFromNodeMCU = Serial.readStringUntil('\n');
// Print the received message for debugging
Serial.println("Message from NodeMCU: " + messageFromNodeMCU);
// Send response back to NodeMCU
Serial.println("HEY MINI IS HERE");
// Print a message to confirm the response was sent
Serial.println("Response sent to NodeMCU: HEY MINI IS HERE");
}
delay(1000);
}
On serial monitor of Nodemcu i got:
1:40:37.403 -> Message sent to Nano: HEY NODE IS HERE
11:40:40.368 -> Message sent to Nano: HEY NODE IS HERE
11:40:43.368 -> Message sent to Nano: HEY NODE IS HERE
11:40:46.402 -> Message sent to Nano: HEY NODE IS HERE
11:40:49.368 -> Message sent to Nano: HEY NODE IS HERE
And output on Serial monitor of Mini nani:
Message sent to Nano: HEY NODE IS HERE
11:40:34.398 -> Message sent to Nano: HEY NODE IS HERE
11:40:37.403 -> Message sent to Nano: HEY NODE IS HERE
11:40:40.368 -> Message sent to Nano: HEY NODE IS HERE
11:40:43.368 -> Message sent to Nano: HEY NODE IS HERE
11:40:46.402 -> Message sent to Nano: HEY NODE IS HERE
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.