Check the shell of your MicroPython IDE to read the values from the potentiometer. If you’re using an ESP32 you should get readings between 0 and 4095 — or readings between 0 and 1023 with an ESP8266. Wrapping Up In this tutorial we’ve shown you how to read analog values using Micr...
Home Automation using ESP8266 eBook and video course » Build IoT and home automation projects. Arduino Step-by-Step Projects » Build 25 Arduino projects with our course, even with no prior experience! What to Read Next… Getting Started with Thonny MicroPython (Python) IDE for ESP32 and...
Reading the voltage on a GPIO using MicroPython firmware is as simple as using theread_u16()function on an ADC object.This will give you a value between 0-65535 across a voltage range between 0.0V – 3.3V. Learn more about the Raspberry Pi Pico with our eBook: Learn Raspberry Pi Pico ...
2. ESP8266 NodeMCU Analog Read with MicroPython This section show how to read analog values with the ESP8266 using MicroPython firmware. To follow this tutorial you need MicroPython firmware installed in your ESP8266 board. You also need an IDE to write and upload the code to your board. We...
ESP32/ESP8266 PWM with MicroPython – Dim LED Before proceeding with this tutorial you should have the ESP8266 add-on installed in your Arduino IDE. Follow the next tutorial toInstall ESP8266 in Arduino IDE. ESP8266 NodeMCU PWM (Pulse-Width Modulation) ...