Files
sunny9898/task12-arduino/digest.md
louiscklaw 5637fbf94f update,
2025-02-01 02:07:58 +08:00

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.