arduino for beginners - Adding Components - Part 3

Hi and welcome to iThePro. 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:
https://github.com/amriunix/arduino/blob/master/LED/led_on.ino
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:
https://github.com/amriunix/arduino/blob/master/LED/led_pwm.ino 



 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:
https://github.com/amriunix/arduino/blob/master/LED/led_button.ino



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:
https://github.com/amriunix/arduino/blob/master/LED/led_potentiometer.ino


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:
https://github.com/amriunix/arduino/blob/master/LED/RGB_button_9_color.ino


See The Arduino for Beginners Tutorials


Author

OUSSAMA AMRI

Oussama Amri 21 years, security professional from Tunisia. Lover of computer science especially programming and secuirty. Follow me On :

Popular Posts

iThePro.com. Powered by Blogger.