Go Down

Topic: Transmitting analogue inputs from Nano to ESP8266 for use on blynk  (Read 137 times) previous topic - next topic

OllieT

Hi everyone,

First post on here, basically I'm trying to complete my home energy monitor and am getting stuck on one last bit, I have all of my code for sensor data coming into pins A1 "Current transformer 1", A2 "Current transformer 2" & A3 "mains voltage" on an arduino Nano.

I have connected it to an ESP8266 via the TX1 & RX0 pins and I have managed to connect the ESP8266 to Blynk via wi-fi, what I now need to do is forward the analogue pins from the nano to the ESP8266 so I can pick them up in Blynk (im guessing as virtual pins as apposed to Digital pins or the single analogue pin)

I have tried looking at multiple youtube videos and looking on the forums but I can't see how its done in a way I can understand.

Any help would be greatly appreciated!

cattledog

Quote
I have connected it to an ESP8266 via the TX1 & RX0 pins and I have managed to connect the ESP8266 to Blynk via wi-fi, what I now need to do is forward the analogue pins from the nano to the ESP8266 so I can pick them up in Blynk (im guessing as virtual pins as apposed to Digital pins or the single analogue pin)
Is the ESP a bare module, or a complete unit like a Node MCU or Wemos? Is it programmed with the Arduino core?

What do you mean by "forward the analog pins"? You will send the values read on the nano to the ESP for Blynk. This is simple serial communication between the nano and the esp. There is a very good Serial Basics Tutorial on how to format the data and how to read it.

What pins of the nano are connected to the ESP. Are you planning to use the Serial monitor on the nano? If so, you will have to use software serial for sending to the esp. Are you using a voltage divider on the Arduino TX/ ESP RX to handle the 5v/3.3v difference?


OllieT

It is a NodeMCU 1.0 (ESP-12E module) I have uploaded the Blynk ESP8266_Standalone code to it, this allowed me to connect it to my Wi-Fi and access it via Blynk app.

Basically I want to send the data from the analogue pins of the nano to the ESP8266 in a way that it can be accessed by Blynk, Ill have a look at the tutorial when I get a chance.

I have connected the nano to the ESP using the TX1 & RX0 pins (31 & 30 respectively) I don't have a voltage divider on the pins, this ESP board can be and is powered by 5v so I assumed the rest of it would have been ok? correct me if Im wrong

Go Up