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

preview_player
Показать описание

Links mentioned in the video:

Acknowledgements:
- Music: bartlebeats
- Intro shuttle footage: NASA
- Intro fonts: Typodermic
- Intro inspiration: Mr. Wizards's World
- Matrix background: cool-retro-term & cmatrix

-----------------------------------------

-----------------------------------------
Рекомендации по теме
Комментарии
Автор

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

yaneexy
Автор

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.

randmorf
visit shbcf.ru