Circuit #1 - Flashing LED
LEDs (light-emitting diodes) are small, powerful lights that are used in many different applications. To start off we will work on blinking an LED. That's light - it's as simple as turning a light on and off. It might not seem like much, but establishing this important baseline will give you a solid foundationÂ
Edited Circuit - #1
In the Code, we changed the light delay so the light will flash faster than the basic code. The delay changed from 1000 to 100.
Circuit #2 - Adjustable Brightness LED (Potentiomiter)
In this circuit, we work with a potentiometer. A potentiometer is also known as a variable resistor. When it's connected with 5 volts across its Two outer pins, the middle pin outputs a voltage between 0 and depending on the position of the knob on the potentiometer. In this circuit, we learn how to use a potentiometer to control the brightness of an LED.
Circuit #3 - RBG LED
RGB, or red-green-blue, LEDs have three different color-emitting diodes that can be combined to create all sorts of colors. In this circuit, we learn how to use an RGB LED to create unique color combinations. Depending on how bright each diode is, nearly any color can be created through Code.
Circuit #4 - Multiple LEDs
In this circuit we learn that using 8 LED lights, we can make a pretty cool effect of 8 yellow LED lights in a sequence. Each wire corresponds to each light and the code tells each light when to turn on causing it to create a sequence of moving lights. Changing the code will make the LED lights do different effects.
Circuit #5 - Push Buttons
In this Cicuit you will see two push buttons that control the the red LED light. The way a push button works with Arduino is that when the button is pushed, the voltage goes LOW. The Arduino reads this and reacts accordingly. In this circuit, we will also use a pull-up resistor, which helps clean up the voltage and prevents false readings from the button.
Circuit #6 - Photo Resistor
In this Circuit, we use a Photo Resistor which changes resistance based on the amount of light it receives. Since the Arduino can't directly interpret resistance, we use a voltage divider to use our photo resistor. This voltage divider will output a high voltage when it is getting a lot of light and a low voltage when it is not.
Circuit #7 - Temperature Sensor
In this Circuit, we use a temperature sensor to measure the ambient temperature. This particular sensor has three pins— a positive, a ground, and a signal. For every centigrade degree it reads, it outputs 10 millivolts. It becomes integrated with the Arduino software to give you live feedback of what the current ambient temperature is.Â
Circuit #8 - A Single Servo
Servos are ideal for embedded electronics applications because they do one thing very well that spinning motors cannot— they can move to a position accurately. By varying the pulse of voltage a servo receives, you can move a servo to a specific position.
Edited Circuit - #8
This code was edited so the time was increased and the distance the servo moved was decreased.
Circuit #9 - Buzzer
In this Circuit we use a Buzzer that makes a small click when you apply voltage it. If you turn the voltage on and off hundreds of times a second, the Buzzer will produce a tone. And if you string a bunch of tones together you can make music.
Circuit #10 - Spinning a Motor
In this Circuit we use a Spinning Motor which requires the use of a transistor, which can switch a larger amount of current than the Arduino can to then have a complete circuit.
Circuit #11 - Relays
In this Circuit we use a Relay which basically is an electrically controlled mechanical switch. Inside that plastic box is an electromagnet that, when it gets a jolt of energy, causes a switch to trip in turn connecting the circuit.
Edited Circuit - #11Â
In this Circuit the code was edited to make the Relay switch on and off faster. We changed the time delay from 1000 to 100.
Circuit #12 - Shift Register
In this Circuit, we use a shift register (also called a serial-to-parallel controller). The shift register will give the Arduino additional outputs, using only three pins on your board. This will then give you the ability to control the LEDs in a series of your choice.