Arduino Knight Rider

In this tutorial, eight LEDs are interfaced to the Arduino Uno board. This is not complicated – it is just like interfacing a single LED to the Arduino as done in tutorial 3, but eight times over. A program is then loaded to the Arduino that will turn the eight LEDs into a “Knight rider” display.

Arduino Knight Rider

The following video shows what you will achieve:

Can’t see the video? View on YouTube →

Prerequisites

You will need to have completed tutorial 3 and its prerequisites before attempting this tutorial.

Components

Besides a breadboard, Arduino Uno and USB cable, you will need:

QtyPartDesignatorNotesType
8470 ohm resistor (yellow – violet – brown)R11/4W, 5% or betterResistors
85mm red LEDD1Other coloured and sized LEDs could also be used, e.g. 3mm green LEDSemiconductors
9Wire linksWire links that will reach from the breadboard to the ArduinoWire

Circuit Diagram

The circuit diagram is shown below. It is simply eight LEDs interfaced to the Arduino pins 2 to 9.

Building the Circuit

Place the LEDs next to each other in the breadboard so that the anode (longer lead) is at the left and the cathode is on the right.

Arduino Knight Rider schemetic

Insert the 470 ohm resistors connecting one lead to the LED’s cathode and the other to the top rail.

Join the anodes of the LEDs to pins 2 to 9 of the Arduino from left to right using single-core wire. Join the top rail to one of the GND pins of the Arduino.

 

For more detail: Arduino Knight Rider


A Propos De L'Auteur

Ibrar Ayyub

Je suis expérimenté, rédacteur technique, titulaire d'une Maîtrise en informatique de BZU Multan, Pakistan à l'Université. Avec un arrière-plan couvrant diverses industries, notamment en matière de domotique et de l'ingénierie, j'ai perfectionné mes compétences dans la rédaction claire et concise du contenu. Compétent en tirant parti de l'infographie et des diagrammes, je m'efforce de simplifier des concepts complexes pour les lecteurs. Ma force réside dans une recherche approfondie et de présenter l'information de façon structurée et logique format.

Suivez-Nous:
LinkedinTwitter

Laisser un Commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

fr_FRFrench
Faire défiler vers le Haut