Click here to register for summer batches of robotics. Click here for details of courses.
- AR-B1: Blinking LED Project using Arduino
- AR-B2: Alternate Control of LED & Buzzer
- AR-B3: Alternate Blinking LEDs
- AR-B4: Running Effect of LEDs
- AR-B5: Chasing Effect of LEDs
- AR-B6: Obstacle Detector using IR Sensor
- AR-B7: Object Counter using Serial Monitor
- AR-B8: Servo Motor Basic Code
- AR-B10: Car Wiper System using Servo Motor
- B13: LED Display Down Counter with Alarm using Arduino
- Protected: Day-1: Online Course on Arduino Programing with Practicals
- Protected: Day-2: Online Course on Arduino Programing with Practicals
- Protected: Day-3: Online Course on Arduino Programing with Practicals
In this code we use 2 LEDs connected on breadboard with 2 resistors of 1kΩ. This code produces the effect of alternately blinking of the 2 LEDs.
Contents
show
Required Material
Arduino UNO Board – 1, data cable – 1, Red LEDs – 2, Jumper wires – 3, 1kΩ resistor (Brown Black Red) – 2.
Working
After uploading the code in Arduino UNO board, the LED1 and LED2 will be ON alternately. This happens because of alternate action written in the code.
The Code
This code is very interesting which glows two LEDs in a group simultaneously. When you upload the code in Arduino UNO you get a pleasant decorative effect of 4 LEDs.
Signup or Login to view remaining content. It's Free!