Showing posts with label Arduino Projects. Show all posts
Showing posts with label Arduino Projects. Show all posts

October 7, 2018

Arduino Airplane Lights


ARDUINO AIRPLANE LIGHTS


INTRODUCTION

This is an Arduino DIY project intended to simulate airplane lights. Airplanes are detectable in the night sky solely because of their lights. Most airplanes have three lights, one at the bottom and other on edge of each wing. The most common configuration is one red light at the bottom and two white lights on the wing.

COMPONENTS REQUIRED

1. Breadboard
2. Arduino UNO
3. One 5mm Red LED
4. Two 5mm White LED’s
5. Three 20 Ohm resistors
6. Breadboard jumpers (wires)

CIRCUIT SCHEMATICS



Make the appropriate connections as shown in the schematic above

CODE

This is the code for simulating Arduino Airplane lights. Copy and paste the code in Arduino IDE sketch area. Note that the values and choice of ports can always be changed.

void setup() {
  // put your setup code here, to run once:
pinMode(4, OUTPUT); //Red LED
pinMode(7, OUTPUT); //White LED
pinMode(8, OUTPUT); //White LED
}

void loop() {
  // put your main code here, to run repeatedly:
digitalWrite (4, HIGH);
delay(500);
digitalWrite(4, LOW);
delay(200);
digitalWrite (7, HIGH);
digitalWrite (8, HIGH);
delay(100);
digitalWrite(7, LOW);
digitalWrite(8, LOW);
delay(300);
}

February 19, 2017

ARDUINO CLUB LIGHTS

ARDUINO CLUB LIGHTS

I created Arduino club lights using Arduino UNO board, breadboard, five 20 ohm resistors, five LED's [red and blue], one shift register and few jumpers. The shift register amplified the current thereby increasing the brightness of lights. Enjoy the video!



February 5, 2017

Arduino 10 second timer

ARDUINO 10 SECOND TIMER

I created Arduino 10 second timer using breadboard, Arduino UNO board, 9 red LED's, 9 20 ohm resistors and jumpers. 9 LED's are arranged in a 3x3 matrix. LED's glow in such a way that they represent a number from 9 to 0 hence the 10 second timer! Enjoy the video!

January 29, 2017

Arduino Airplane lights

ARDUINO AIRPLANE LIGHTS

I created a simple simulation of Airplane lights using three LED's [1red and 2 white], 3 20 ohm resistors, breadboard, Arduino UNO board and few jumpers. Check out the video!

January 22, 2017

Arduino 5 led blink

ARDUINO 5 LED BLINK


I created 5 LED blink using 5 red LED's, 5 20 ohm resistors, Arduino UNO board, breadboard and jumpers. Check out the video!
 
 

January 15, 2017

Arduino controlled Theater dim lights

Arduino controlled Theater dim lights

I created arduino controlled Theater dim lights using three yellow leds, arduino uno board, breadboard and few jumpers. I used the fade command to achieve dimming over a period of time. Check out the video!
 

November 30, 2016

Arduino Traffic Lights



ARDUINO TRAFFIC LIGHTS

INTRODUCTION
 
Arduino is a micro-controller which can be programmed to do certain operations like lighting led, controlling servo, etc. We’ll use Arduino UNO or any other clone to create Traffic lights. A Traffic light usually consists of three lights red, yellow and green. They switch on and off within a certain time interval. The time interval between the lights is similar to the real traffic light system.



MATERIALS REQUIRED

  • Arduino UNO or any other clone and USB cable

  • 5mm LED (Red, Yellow and Green)

  • 20 K ohm resistor (3)

  • Breadboard

  • Jumpers


PROCEDURE


  • Connect digital pin 8 of Arduino to longer leg of led via a resistor and connect the shorter leg of ‘Red’ LED to ground pin on Arduino.

  • Similarly connect digital pin 7 to ‘Yellow’ LED and digital pin 4 to ‘Green’ LED via a resistor and back to another ground pin on Arduino.

  • The circuit is complete, upload the code and you can verify the output.

  • The USB cable serves both as a medium to upload code as well as 5V power source.


CODE

The code for Traffic lights is as follows. Copy and paste it on Arduino IDE.

void setup() {

  pinMode(8, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(4, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(8, HIGH);   // turn the red led on
  delay(5000);              // wait for some time
  digitalWrite(8, LOW);    // turn the red led off
  delay(100);              // wait for some time
  digitalWrite(7, HIGH);   // turn the yellow led on
  delay(1000);             // wait for some time
  digitalWrite(7, LOW);    // turn the yellow led off
  delay(100);              // wait for some time
  digitalWrite(4, HIGH);   // turn the green led on
  delay(5000);             // wait for some time
  digitalWrite(4, LOW);    // turn the green led off
  delay(200);              // wait for some time
}

November 23, 2016

Arduino Railroad Lights



ARDUINO RAILROAD LIGHTS


INTRODUCTION
Arduino is a micro-controller which can be programmed to do certain operations like lighting led, controlling servo, etc. We’ll use Arduino UNO or any other clone to create Railroad lights. A railroad light usually consists of two red lights flashing alternately. The time interval between both lights must be less than one second in order to experience the Railroad scenario.



MATERIALS REQUIRED

  • Arduino UNO or any other clone and USB cable
  • Red 5mm LED (2)

  • 20 K ohm resistor (2)

  • Breadboard

  • Jumpers


PROCEDURE

  • Connect digital pin 7 of Arduino to longer leg of led via a resistor and connect the shorter leg of LED to ground pin on Arduino.

  • Similarly connect digital pin 8 to LED via a resistor and back to another ground pin on Arduino.

  • The circuit is complete, upload the code and you can verify the output.

  • The USB cable serves both as a medium to upload code as well as 5V power source.


CODE

The code for Railroad lights is as follows. Copy and paste it on Arduino IDE.

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(8, OUTPUT);
  pinMode(7, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(8, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(300);              // wait for 300 millisecond
  digitalWrite(8, LOW);    // turn the LED off by making the voltage LOW
  delay(300);             // wait for 300 millisecond
  digitalWrite(7, HIGH);
  delay(300);
  digitalWrite(7, LOW);
  delay(300);
}

November 16, 2016

Fading a LED using Arduino UNO



FADING A LED USING ARDUINO UNO

INTRODUCTION

Arduino is a micro-controller which can be programmed to do certain operations like lighting led, controlling servo, etc. We’ll use Arduino UNO or any other clone for performing this Fading experiment. Fading a led in simple definition means turning the led ON and slowly turning it OFF within a finite (large) time interval. The time interval must be more than one second in order to experience the Fading of led.



MATERIALS REQUIRED

  • Arduino UNO or any other clone and USB cable

  • 5mm LED

  • 20 K ohm resistor

  • Breadboard

  • Jumpers

PROCEDURE

  • Connect any analog pin (usually marked by ‘~’ in front of the pin number) of Arduino to longer leg of led via a resistor.

  • Now connect the shorter leg of led to ground pin on Arduino.

  • The circuit is complete, upload the code and you can verify the output.

  • The USB cable serves both as a medium to upload code as well as 5V power source.


CODE

The code for Fading led is available in basics library in Arduino IDE.

You can select the analog pin (~3, ~5, ~6, ~9, ~10 or ~11) you want to use. Also you can vary the delay time which will change your fade output.

November 9, 2016

Blinking a led using Arduino UNO



BLINKING A LED USING ARDUINO UNO

INTRODUCTION
Arduino is a micro-controller which can be programmed to do certain operations like lighting led, controlling servo, etc. We’ll use Arduino UNO or any other clone for performing this blinking experiment. Blinking a led in simple definition means turning the led ON and OFF within a finite (small) time interval. The time interval must be less than one second in order to experience the blinking of led.

MATERIALS REQUIRED

  • Arduino UNO or any other clone and USB cable

  • 5mm LED

  • 20 K ohm resistor

  • Breadboard

  • Jumpers


PROCEDURE

  • Connect any digital pin of Arduino to longer leg of led via a resistor.

  • Now connect the shorter leg of led to ground pin on Arduino.

  • The circuit is complete, upload the code and you can verify the output.

  • The USB cable serves both as a medium to upload code as well as 5V power source.


CODE

  • The code for blinking led is available in basics library in Arduino IDE.

  • You can select the digital pin you want to use. Also you can vary the delay time which will change your blink output.

  • In this example the delay time is 300millisecond.