arduino for beginners – Adding Components – Part 3

This tutorial is about arduino and we going to learn some basics things together. In this Part we going add Components.


Adding an LED:
 
-1 LED.
-2 Wires.
-220 Ohm Resistor.
-BreadBoard.
-Arduino Uno


And This Code: 


This will Turn the LED On for Ever .

Fading an LED’s brightness with Pulse Width Modulation (PWM):
 
In this experiment we going see how to increase and decrease LED’s brightness with PWM, by using analogWrite() function.
-1 LED.
-2 Wires.
-220 Ohm Resistor.
-BreadBoard.
-Arduino Uno


And This Code:

Led_pwm
 Turn the led on/off using a push button:
 
 In this experiment we going see how to turn on/off the LED using a push button.
So we need:
-1 LED.
-1 Push Button.
-6 Wires.
-220 Ohm Resistor.
-10 Khm  Resistor.
-BreadBoard.
-Arduino Uno


And This code:


Fading an LED with PWM based on Potentiometer value:
 
In this experiment we going see how to change LED’s brightness using a Potentiometer.
So we need:
-1 LED.
-1 Potentiometer.
-7 Wires.
-220 Ohm Resistor.
-BreadBoard.
-Arduino Uno


And This code:

led_potentiometer  
Adding an RGB LED:
 
In this experiment we going see how to use a RGB LED and button to switch to 9 different color, every time when we pressed the button.
So we need:
-1 RGB.
-1 Push Button.
-9 Wires.
-3 of 220 Ohm Resistor.
-10 Khm  Resistor.
-BreadBoard.
-Arduino Uno


And This Code:


Comments