Potentiometer (a three terminal resistor), a nob that provides variable resistance.
Second example from Sparkfun varies the speed of an LED blinking, and from the Arduino IDE Basics example Read Analog Voltage.
First the Sparkfun example:
Instructions and code at: https://learn.sparkfun.com/tutorials/sik-experiment-guide-for-arduino---v32/experiment-2-reading-a-potentiometer
Wiring and items used diagram |
What it really looks like |
The video shows what the programme and the components actually do, as you turn the nob on the Potentiometer it varies the speed of the LED blinking. Cannot say I fully understand the programme, but do get the gist of what each line does.
No comments:
Post a Comment