I had made a project to recieve data from mq135 sensor which is connected to arduino uno , i connected the uno board with nodemcu for serial communication b/w them . And i got the outputs in the serial monitor , now i dontknow how to read those values from tx pin in blynk app
What role does the Arduino Uno play in this setup?
It would be far simpler to throw the Uno away and connect the mq135 directly to your NodeMCU
Pete.
I have already connected the soil moisture sensor to the analog pin of NodeMCU,since the NodeMCU has only one analog pin, i can’t connect the mq135 sensor to it, so I’ve used the Arduino Uno board.
ANYONE KINDLY HELP ME ASAP.
Thavanesh_s.
You better use ESP32 !
The ESP32 has a total of 18 analog input pins
I currently don’t have the ESP32
I’ve purchased the NodeMCU esp 8266. If I had known this already I would buy ESP32.
so I need to proceed with ESP8266 now.
ANYONE KINDLY HELP ME ASAP.
Thavanesh
How to read the “Tx pin data of nodemcu”, so you mean “How to read the Rx pin data of nodemcu”
yeah bro
This is a clue without Blynk, but you have to manage the received data, it’s not easy , give it a try :
//Arduino Uno
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print("Data to be sent\n");
delay(1000);
}
//NodeMCU
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available()) {
String data = Serial.readString();
Serial.print("Data Received: ");
Serial.println(data);
}
delay(1000);
}
actually i just received the data from the arduino uno board and I can view it in the serial monitor . Now the thing is that I need to view it in the blynk.
Thavanesh