Tuesday, August 14, 2018

LED and Potentiometer Using Arduino

Control the blinking rate of the light-emitting diode(LED) by using a potentiometer. So, what is a potentiometer? 

The potentiometer is an instrument, it has three terminal variable resistors. It manually controls the flow of electric current. Two terminal is connected to the resistive element and the third is connected to the adjustment wiper. which means that the rotation of the of the wiper may determine the output voltage.
Potentiometer
Required.
1 x LED color as you like.
Arduino board
Wire,
Breadboard
Potentiometer
Resistor 330Ω

1. Connect to the breadboard

Connect According to the diagram as I have shown you. In the above figure, the black wire is connected to the GND pin and the red wire is connected to the 5V pin above the GND pin in the Arduino board. Connect LED as shown here. Now place your potentiometer on the breadboard, as shown in the diagram. the potentiometer has 3 terminal. The first terminal (blue & black wire) is connected to the negative terminal, the last terminal (orange & red wire) is connected to the 5v. The green wire is taken from the middle terminal to A0 (analog) in the Arduino board.  



2. Open Arduino IDE software 
 Type the code: 


int sensorPin = 0;

int ledPin = 13;

void setup()

{

  pinMode(ledPin, OUTPUT);

}

void loop()

{

int sensorValue;

  sensorValue = analogRead(sensorPin );

  digitalWrite(ledPin , HIGH);                                   

  delay(sensorValue);                                                  

  digitalWrite(ledPin, LOW);                                 

  delay(sensorValue);                                                  


}


3. Verify and Upload code to Arduino Board
Once the code is Verified and uploaded to your Arduino Board, then you notice rapid blink of LED for one second. Do not worry, it is an indication that your code is successfully uploaded.

DONE
Start to rotate the mover of the potentiometer in order to get the result.

if it is not working let me know down in the comment. 

GOOD LUCK

Blinking Of LED Using Arduino

As we know that light-emitting diode(LED) is a semiconductor device that produces light from electricity. They can produce many different colors. so in this experiment, we are going to blink LED.

Required.
1 x LED color as you like.
Arduino board
Wire,
Breadboard
Resistor 330Ω


Please make sure the connection, because it has a positive and negative terminal  Negative terminal will always connect to ground (GND) and the positive terminal will always connect to the required pin (13,12,9....) as shown. 


1. Connect to the breadboard
Connect According to the diagram as I have shown you. In the above figure, the black wire is connected to GND and the red wire is connected to the 5V above the GND pin in the Arduino board. Place the LED as shown in the figure, the negative terminal is connected with one end of the resistor and the second end of the resistor is connected to the negative terminal(fig). We place a resistor in order to avoid damage for LED if more current flows. The green wire is connected to pin 12, once the circuit is complete. Connect your Arduino board to your computer with the help of USB cable.

2. Open Arduino IDE software 

 Type the code: 


void setup()
{
  pinMode(12, OUTPUT);
}
void loop()
{
  digitalWrite(12, HIGH);                                   //Turn on The LED
  delay(1000);                                                   // Wait for One second
  digitalWrite(12, LOW);                                   // Turn off the LED
  delay(1000);                                                   // Wait for One second
}


 



Verify your code before uploading to the board. just by clicking on the tick button
once you receive this message, then you are good to go.




3. Upload code to Arduino Board
Once your code is ready, plug your Arduino board to your computer and click on the upload button.

DONE
your code is uploaded to your board. as you see LED start blinking with Delay of one second. you can change the delay time and play with it.

How to memorize this code? 
Connect two or more LED with different color and plug into the board. please make sure the negative and positive terminal. once you connect, then add the code. Remember the pin where you plug starting from 13 to 2. do not connect in pin 1 and pin 0.


if it is not working let me know down in the comment. 


GOOD LUCK

Monday, August 13, 2018

Do you wants learn Arduino Quick and Easy?

Introduction.
Learning Arduino never been so difficult, using Arduino a person can make an awesome project for school and universities. Arduino is an open-source platform, which means anyone can modify and rewrite, which is publicly available.

Types of Arduino
There are different types of Arduino available in the market, you can choose base on your projects.

1.     Arduino Uno




2.     Arduino Mega


3.     Arduino Nano


4.     Arduino LilyPad


5.     Arduino Leonardo



Buying Arduino Board
There are several places to buy the Arduino board, like Amazon, eBay, zero ohms, and many more. Based on your location you can check nearby Store. It is recommended to buy Starter kits with Arduino Uno R3. In the starter kits, there is various type of sensors, male-female wires, LCD display, Breadboard are available.

Links to Buy













Getting Start with Arduino Projects
Connect your board with the computer using the USB cable provided in the kit, once you connect you will notice the LED (Light Emitting Diode) is start blinking. The bilking of the LED is the default program is set on the board. We will override this program by using Software.

Download Software
 To download Arduino software, Click here.


Once the download is completed it will look like this 



Start With Basic Experiments
Many source codes are available on the internet, I highly recommend you start with a simple and very basic experiment. In order to become master in Arduino, you need to make sure, how to control different objects such as LED, Motors, sensor, LCD etc.

Here is the basic some basic experiment
LED
1.     Blinking LED                                              Click here
2.     LED and Potentiometer                             Click here
3.     RGB LED                                                   Click here
MOTORS AND SENSOR
1.     Servo Motor                                                Click here
2.     Photo Resistor                                             Click here
3.     Temperature Sensor                                    Click here
      Wireless Communication
1.     Temperature monitor
2.     Smart LCD  




Tuesday, December 12, 2017

How to Make 7 segment LED display




It's easy to build Seven segments LED display,

Required
1. Arduino 
2. 7 LED (color as you like)
3. jumper wires
4. cardboard
5.Glue
6.white paper
Procedure
- cut the pieces of cardboard and stick in such way
- make a hole and fix the led. note: please make sure about +ve and -ve of LED
 - close the layer of a display with plain paper.
Programming
- Make negative wire of all led as common.
- for all positive terminal mark from point 1 to 7.
-in Arduino board, plug pin as shown.
Installing Code
Open Arduino software, and copy the code
and then install to board 
Done.
if you still find difficulties let me know, I will make a complete video of it