Tutorial Analog IN

From Sketching with Hardware at LMU Wiki
Revision as of 22:40, 12 August 2020 by Skwhadmin (talk | contribs) (Created page with "= Analog Input with MicroPyton and ESP32/ESP8266 = In this part of the tutorial, we demonstrate how to read in an analog value using MicroPyton on ESP32/ESP8266. We also show...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Analog Input with MicroPyton and ESP32/ESP8266

In this part of the tutorial, we demonstrate how to read in an analog value using MicroPyton on ESP32/ESP8266. We also show how we can use the analog input to measure a changing resistor. This includes looking at the voltage range that can be measured the resolution of the analog-digital converter (ADC).

Success criteria

  • you can read in an analog value from the python prompt
  • you understand how to build a voltage divider to read a sensor value from a changing resistor
  • you can connect a Potentiometer, a slider, and a LDR to the ESP32/ESP8266 and read the value

Instructional Videos

The videos are a first test... the ones marked with ** will be replaced over the next months with new versions.


Analog Input - ADC - connecting a variable resistor **

In this video on youtube (46:23) we show how to connect to read in an analog value with MicroPython. We also show how a sensor that is based on a changing resistance can be connected using a voltage divider: https://youtu.be/gjj5KyK2qGI