This tutorial of Robo India explains how to use analog to digital conversion (ADC) of ESP8266 wifi module.
1. Introduction:
This tutorial explains how to use analog to digital conversion of ESP8266 using LUA. ESP8266 has got single channel ADC that means it can read one ADC. That ADC is by default connected to 0.
2. Circuit / Connections:
make following connections –
5. Programming
Open ESPlorer and run following command.
print(adc.read(0));
This command will print ADC value.
ADC_value = adc.read(0);
This command will store ADC value in variable ADC-value, later on you may use it.
Out put will look like –
If you have any query please write us at support@roboindia.com
Thanks and Regards
Content Development Team
Robo India
http://roboindia.com