Arduino and Potentiometer
This instructable gives an example of how to use an Arduino and a potentiometer
Partlist
- Arduino UNO Board
- Potentiometer
- Base Shield
- USB Cable
- 4 Pin Grove Cable
Connect Everything
- Connect the 4 pin grove cable to the potentiometer to your base shield in pin A0.
- Connect your base shield to the arduino board
- Connect the USB cable to the arduino and a computer (Mac of course)
Download the Code Here
Downloads
Finish
Upload the file and open the serial monitor, it should look like the picture.
I´ve set the threshold to 400 you can change that if you want to.
If the potentiometer is below 400, the serial monitor will write a number followed by: brick REGISTERED: and how much below 400. The led on the arduino board will flash everytime the number is below 400
Try this yourself by adjusting the potentiometer
Good Luck!