Reacoda
  • Reacoda Learning Material
  • Introduction to Arduino
    • Controlling LEDs with an Arduino
  • Introduction to Python Programming
    • Python for beginners Bot
  • Robotics and Automation
    • What is automation?
    • What is robotics ?
    • What is 4IR ?
    • Introdution to electronics: Electrical Circuits ?
  • Guidelines for creating tutorials for people with limited to no internet access
  • Arduino Classes using TinkerCAD
    • Wiring Components
    • Adding A component
  • IoT Workshop
    • Python Basics Quiz
  • Control LEDs using NodeMCU and microPython - Part 1
    • Using microPython on Thonny IDE to blink a built-in LED
    • Using the Pulse Width Modulation (PWM) with microPython.
  • SkillShare Class
  • Introduction to Robotics (Yabasadi)
Powered by GitBook
On this page
  • What will you need ?
  • What will you need ?

Was this helpful?

  1. Introduction to Arduino

Controlling LEDs with an Arduino

As part of this activity we will using an Arduno as our micro-controller to switch LEDs on and off for a specified duration.

What will you need ?

What will you need ?

  • An Arduino Uno board

  • 3 X LEDs (of different colors)

  • male-to-male jumper wires.

  • 3 X 100 ohm (black-brown-black) resistor.

  • Breadboard

  • A computer with the Arduino IDE software.

  • An Arduino Uno board

  • 3 X LEDs (of different colors)

  • male-to-male jumper wires.

  • 3 X 100 ohm (black-brown-black) resistor.

  • Breadboard

  • A computer with the Arduino IDE software.

Connect the anode (long leg) of each LED to digital pins eight, nine, and ten (via the 100 resistors). Connect the cathodes (short leg) to Arduino ground. According to the diagram below:

Connect the anode (long leg) of each LED to digital pins eight, nine, and ten (via the 100 resistors). Connect the cathodes (short leg) to Arduino ground. According to the diagram below:

On your computer, open the Arduino IDE program. Connect the USB cable to the computer and the Arduino board.

On the IDE, select the relevant board and the COM port according to the following diagram:

PreviousIntroduction to ArduinoNextIntroduction to Python Programming

Last updated 5 years ago

Was this helpful?

3 LEDs connected to an Arduino
Selecting the board type