344 B
344 B
Task 2: Use a potentiometer to make the solenoid move up and down at different internals
- Use a digital pin and a transistor to power the solenoid.
- Use an analog input pin to read the potentiometer and control the delay..
- You can use the delay function (just in the blinking led example in the Arduino IDE) or the millis() function.