This is a simple circuit made using Arduino that turns a light on and off. We can adjust the variables in our code to make the light blink slower or faster. Each number represents the number of milliseconds in between blinks. The higher the number, the slower the blinks.
If we change the variables to a delay of 30, the light blinks so fast we can barely see it.
The second circuit adds a potentiometer to our blinking light circuit. This allows us to control the speed at which the light blinks.
The potentiometer is able to change the blinking speed of the light because it changes the resistance of the current. that passes through it. The Arduino can measure this change and use it to adjust the blink rate of the LED
This LED has red, blue, and green lights within it. When combined they can create many different colors.
The code above is the basic structure for the ShowSprectrum function. As the function runs, the different LED pins are turned on and off to create new colors.
Circuit four allows you to control not one, but six different LEDs. This has many different applications such as traffic lights or scrolling signs.
This is the code that allows the LEDs to turn on one at a time.
This code turns on the LEDSs one at a time, then a similar code is used to turn them off.
This is the schematic for the circuit. You can see that both of the push buttons run into the LED, allowing them to turn the LED on and off with the buttons.
This circuit uses push buttons to turn the LEDs on and off. There are two push buttons connected to the LED. Pushing either button turns the LED on, but if you push both they cancel out.
This text allows the light to change brightness level
The manual Manual tune is useful when you want a light to get brighter or dimmer over time, but the Autotune function is useful when you want the light to turn all the way on and off. Autotune would be useful for something like a refrigerator light and manualtune could be used in a light that is always on but you want it to get brighter.
This circuit helps set up a single servo. The servo can only spin halfway around a full circle, but it is useful because you can make it rotate far more accurately than a standard motor would.
Instead of rotating slowly and evenly, this servo has been programed to rotate quickly side to side but then pause for two seconds. This can be seen in the code below, were the servo rotates, pauses for one second, and then rotates and pauses for two seconds.