This is a picture of me working on the arduino board of Circuit #8
ORIGINAL CODE
Info: Manipulating code so that blink is barely visible
Modified Code: Blink Barely Visible
Circuit #2 - Explaining the potentiometer
Notice how the light flickers/blinks faster/slower whenever I turn the knob(Potentiometer)
A potentiometer divides voltage.
Circuit #3 - RGB LED
Circuit #4 - Multiple LEDs
Initial Sketch
void oneAfterAnotherLoop()
{
int index;
int delayTime = 100; // milliseconds to pause between LEDs
// make this smaller for faster switching
// Turn all the LEDs on:
// This for() loop will step index from 0 to 7
// (putting "++" after a variable means add one to it)
// and will then use digitalWrite() to turn that LED on.
for(index = 0; index <= 7; index++)
{
digitalWrite(ledPins[index], HIGH);
delay(delayTime);
void pingPong()
{
int index;
int delayTime = 100; // milliseconds to pause between LEDs
// make this smaller for faster switching
// step through the LEDs, from 0 to 7
for(index = 0; index <= 7; index++)
{
digitalWrite(ledPins[index], HIGH); // turn LED on
delay(delayTime); // pause to slow down
digitalWrite(ledPins[index], LOW); // turn LED off
}
// step through the LEDs, from 7 to 0
for(index = 7; index >= 0; index--)
{
digitalWrite(ledPins[index], HIGH); // turn LED on
delay(delayTime); // pause to slow down
digitalWrite(ledPins[index], LOW); // turn LED off
Circuit #6 - Night Light
Notice how the sketch detects the light change whenever I put my finger over the light detector.
Circuit #7 - Temperature Sensor
GIF of temperature recording
Circuit #8 - A Single Servo
Circuit #9 - Buzzer