Assignment 2 – Elton Spektor

My idea for the project came from my prior assignment. I adapted my first assignment to use a potentiometer to control different states of my circuit. First, I needed to find the analogRead range of the potentiometer on the Arduino and then I used that to create 4 different states of LED flashes. As I change the potentiometer’s knob, the LEDs would flash in different sequences. The problem I ran into was trying to use a digital pin with PWM to read the analog input of the potentiometer. It did not work well probably because it is not designed for that. Using an analog pin, it worked well and the coding went smoothly.

Video: https://youtu.be/8wO9_W6Jvp0

Assignment 2 Code

Circuit Drawing Assignment 2

 

Leave a Reply