Process
This is what circuit 1 looks like before any changes to the code
Product
This is what the incomplete sketch looks like
This is what the complete sketch should look like
Product
A potentiometer is like a control knob. It works like a control that you would use to change the volume on something. It changes resistance based on how much it is turned. By using it as a "voltage divider", the Arduino board can sense the position of the knob, and with that value, you can control anything you would like. As demonstrated in the video
This is what the complete circuit diagram looks like.
Process
This is what the Circuit looks like before modify the Sketch
Product
This is what the Circuit looks like after modifying the Sketch
This is what the Sketch looks like before the light is properly working
This is what the complete sketch looks like
Product
This is what the sketch looks like without editing the code
This is the oneOnAtATime () command
It makes the lights turn on one at a time
This is the pingPong () command
It makes the lights bounce back and forth creating a ping-pong like effect
This is the randomLED () command
This is the code that makes the lights turn on at random
This is the marquee () command
It creates a lighting effect in what we see on rail road lights
Product
This is what the code looks like to make the circuit work
As long as 1 button is being pushed the light will turn on
Process
This is what the sketch looks like before changing the Photo resistor ranges. As you can see in the video, the light does not completely turn off because the ranges that control the resistor prevent it from doing so.
As you can see the map(lightLevel) funtion has a range between (0, and 1023). That prevents the light from completly shutting off
Product
By changing the range of the map(lightLevel) function to a lower number, you can make the resistor recognize the light already present. And by covering the resistor with a finger or a hand, it can recognize the change in light level, causing the LED to turn on and produce light.
This is what the complete Arduino board should look like for this Circuit
This is what
Process
This is what the sketch looks like before any changes to the code
This is what the code looks like for circuit 8 without any changes
This is what the finished code looks like
By changing the servol.write() funtion from value (90) to (180) it makes the servo spin a full 180 degrees.
As well as changing the delay() funtion it lowers the time between each spin in the servo
Product
This is what the complete circuit should produce
For my unique circuit I dicided to combine the funtions of circuit 1 being to turn on a light, as well as circuit 8 being a servo.
This is what the complete cicuit looks like
Below is the following code that allowed this circuit to work