Learn MicroPython #5 - Measuring sensor voltages (ADC)
ฝัง
- เผยแพร่เมื่อ 11 มี.ค. 2019
- Full code available on Github!
github.com/invent-box/Learn-M...
In a previous video we learned how to use a pin as a digital input in order to read the value of a button. In this video, we will explore a feature built in to most microcontrollers that is able to measure the value of a voltage. It is called and analog to digital converter.
**************************************************
We use FREE open source software with the following machines:
(ALL open source software is free so YOU can try it too) **************************************************
LASER CUTTER ENGRAVER: amzn.to/2IjMAeK
extra features (red dot laser & wheels): amzn.to/3cmH341
air assist (for better cutting): amzn.to/38uIvjh
VINYL CUTTER: amzn.to/39AGYs8
WOOD LATHE: amzn.to/33oQVY1
tool set: amzn.to/2w7OWv0
caliper: amzn.to/3b3eisx
CNC ROUTER / MILLING MACHINE
cnc router: amzn.to/336ofTu
mini milling machine: amzn.to/34HTEwn
2 flute end mill set: amzn.to/2xlbj0b
MINI METAL LATHE: amzn.to/2SpLSm2
MICROPHONE/HEADSET FOR MAKING VIDEOS: amzn.to/2wvwUCY
(As an Amazon Associate I earn from qualifying purchases.)
**************************************************
FREE VIDEO DEMOS:
Laser Cutting TIPS & TRICKS
Vinyl Cutting TIPS & TRICKS
Wood Lathing TIPS & TRICKS
Milling / CNC Router TIPS & TRICKS
Metal Lathing TIPS & TRICKS
**************************************************
We have entire playlists on learning open source software so have fun learning! The solution is right around the corner... InventBoxTutorials.
Great tutorials. Free software.
Really enjoying your videos - one comment for other viewers - not having enough ADCs doesn't mean you're "out of luck". It just means it's time to throw in a multiplexer, which is trivial to implement and cheap. Thanks again!
This is exactly the content I need in my life right now!
Great job, Darius. Thanks for doing these videos. I learned just what I needed to get a project going.
Help me a lot. Hoping for next vedio.
Very good video, thank you!
I still have one question:
What is the voltage devider used for?
There shouldn't be a significant amount of current flowing while reading the adc, should it?
What would you suggest I do to map the count to a longet period? For example, I have a linear actuator with a built in potentiometer and I want the ADC to read 4095 when it is fully extended and 0 when it is all the way in. However the ADC will read 4095 wayyy before the linear actuator is fully extended. I want to delay the increment of the ADC reference voltage in order to map it to the length of time it would take to have the linear actuator fully extennd. Any thoughts on this?