No video

MicroPython Hardware: Analog I/O with Tony D! @micropython

Live stream to / adafruit looking at how to perform analog input and output with MicroPython. Companion to the guide at: learn.adafruit...
Links mentioned in the video:
- MicroPython Hardware: Analog I/O guide: learn.adafruit...
- MicroPython Basics: What is MicroPython? guide: learn.adafruit...
- MicroPython Hardware: Digital I/O guide: learn.adafruit...
- Extech EX330 multimeter: www.adafruit.c...
- Saleae Logic Pro 8 logic analyzer: www.adafruit.c...
Acknowledgements:
- Music: bartlebeats
- Intro shuttle footage: NASA
- Intro fonts: Typodermic
- Intro inspiration: Mr. Wizards's World
- Matrix background: cool-retro-term & cmatrix
-----------------------------------------
Visit the Adafruit shop online - www.adafruit.com
Subscribe to Adafruit on KZread: adafru.it/subsc...
Join our weekly Show & Tell on G+ Hangouts On Air: adafru.it/showtell
Watch our latest project videos: adafru.it/latest
New tutorials on the Adafruit Learning System: learn.adafruit....
Music by bartlebeats: / bartlebeats
-----------------------------------------

Пікірлер: 3

  • @yaneexy
    @yaneexy8 жыл бұрын

    You are a code Hero:) Thank You for You hard work....:)))

  • @randmorf
    @randmorf7 жыл бұрын

    Why was a 10K ohm resistor also placed in parallel with your pot (potentiometer) in your voltage divider? This parallel resistor will make your 10K pot act like a 5K pot with the pot set to max resistance. Using the voltage divider formula, with Vs = 3.3V, R1 = 47K ohms, and R2 = 5K ohn, the Vout is calculated to be 0.317V. If you remove the 10K resistor that is parallel with the 10K pot, the Vout calculates out to be 0.579V. So, w/o the 10K parallel resistor, you pot yeilds a better voltage range "spread". Ideally, your spread should be 0 to 1023 (though my ESP8266 shows the actual max range to be 1-1024). If you next replace the 47K ohm with your 22K ohm, the Vout will calculate out to 1.031v which should give your voltage range a spread close to 1024. The actual spec for the ESP8266 ADC max input voltage is 1.4V with a warning that 1.8V and above will fry the input. So, I think that all you need is your 10K pot and the 22K ohm resistor and you've got a pretty optimal voltage divider. The best R1 value calculates out to be 23K ohms which would make Vout = 1.0V, but that is not a standard component, but you could easily add a 1K ohm resistor in series with your 22K ohm R1 resistor to achieve that value.