Using ESP8266

Hi I have a ESP8266 and want to use it to publish analog data from 0 to 5 volts I have it running on Wifi with a program that was intended to have a digital sensor. I also have had a a to d converter running and its fine but i need to run both.
I gather it can be done here are the both files.

AnalogInOutSerial.ino (1.62 KB)

Welcome to the forum

Please follow the advice on posting code given in Read this before posting a programming question in order to make your sketch easy to read, copy and test

In particular note the advice to Auto format code in the IDE and to use code tags when posting code here as it prevents some combinations of characters in code being interpreted as HTML commands such as italics, bold or a smiley character, all of which render the code useless

If the code exceeds the 9000 character inline limit then attach it to a post

I gather it can be done here are the both files.

There is only 1 file, and I cannot see where you have made your best attempt. Don't expect to post our 2 codes and have someone combine them for you (You can offer it as paid work in the Gigs and Collaberations section).

Your whole attempt seems not correct. Assuming you are using an ESP that has pin A0 exposed (like a nodeMCU) You have to keep in mind that it may have a 0v - 1v level. Some of the development boards do have a voltage divider included check this link for it's usage.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.