Oh hello.I have a project of reading sensor datas from moisture sensor to NodeMCU.But there is only one analog pin on this board,I’ve tried to connect tx pin on UNO to rx pin on NodeMCU directly and used function Serial.write
as well as Serial.read
,but it didn’t work .The wifi also disconnected at the same time.I’ve also tried EasyTransfer but there were errors when compiled the project on NodeMCU(can’t find avr/io.h
).
Can anybody tell me how to handle multi-sensor datas with NodeMCU,I’ve been quite confused about it and this problem is really urgent.Thank you.
@Somnus Hello. First off, this is not really a Blynk specific issue, so you will need to do lots of Google research on connecting Arduinos to ESPs in this Master/Slave type config for resource sharing
Aside from other issues like interfering with programming… you need to use both RX & TX on both devices, Serial is not 1 wire
EasyTransfer using Serial or I2C is still your best bet, but you need to make the ESP the “master” with I2C. Make sure you are using the latest library form the proper source. I have successfully used this one…
https://community.blynk.cc/t/turning-old-arduinos-into-perfectly-usable-iot-devices/23456/2
1 Like