Arduino Tutorial LED Bar Graph #arduinoproject

preview_player
Показать описание
In this LIVE session we will be showing you how to connect an LED Bar Graph to your Arduino.

This was filmed live, skip to 2m if you want to get straight into the action.

We will use a variable resistor to control the segments illuminated on the LED Bar Graph. This tutorial will show you the parts needed, connection and code. #arduinounoprojects #simplearduinoprojects

Parts Used
=========

1x Arduino Uno R3 ( freenove clone )
14x Jumper Wires
1x Potentiometer
14x 220R Resistor
1x Breadboard
1x 10 Segment LED Bar Graph Display

Skip straight to the section that interests you
====================================
00:00 Introduction
02:00 Build the Schematic in Labcenter Proteus VSM
07:12 Write the sketch in Arduino IDE
16:53 Run the code in Proteus VSM Arduino Simulator
17:54 Build the real Electronics
25:05 Program the sketch into the Arduino Uno R3
25:18 Test the sketch on the electronics hardware
26:10 Outro

All of the parts used came from one kit - Freenove Arduino RFID Kit purchased from Amazon ( direct link - this is NOT an affiliate link )
Рекомендации по теме
Комментарии
Автор

Here is the code used in the video...

const int BARGRAPHSIZE = 10;
const int POTINPUT = A0;

int barPins[] = {
2, 3, 4, 5, 6, 7, 8, 9, 10, 11
};

int potValue = 0;

void setup() {
// put your setup code here, to run once:
for(int barSegment = 0; barSegment < BARGRAPHSIZE; barSegment++) {
pinMode(barPins[barSegment], OUTPUT);
digitalWrite(barPins[barSegment], LOW);
}
}

void loop() {
// put your main code here, to run repeatedly:
potValue = analogRead(POTINPUT);
int barLevel = map(potValue, 0, 1023, 0, BARGRAPHSIZE);

for(int barSegment = 0; barSegment < BARGRAPHSIZE; barSegment++) {
if (barSegment < barLevel) {
digitalWrite(barPins[barSegment], HIGH);
}
else {
digitalWrite(barPins[barSegment], LOW);
}
}
}

ElectronicsLoop
Автор

Thank you so much for this tutoriel that really helped me !

mohamedhayab
Автор

Thank you thank you. Your video helped me fix my wiring issue. My lights was on when the PORT value is 0 😂

walterclementsjr.
Автор

Brilliant video! Are you able to chain a few together?

gallantsteve
Автор

Like & subscribed. Would it be possible for you to build an Arduino controlled circuit using the Hall Effect KY-003 module to drive 10 LEDs (one at a time) depending on the magnet’s proximity to the sensor? As a magnet passed by the Hall Effect sensor the output would variable voltage increase, going from 0 to approx. 3.6 volts. The lit LED would indicate the that particular voltage (and therefore distance).

mikewelch
Автор

you couyld have just used 1 current limiting resistor for all cathod connections.

tobinstage
Автор

How to interface led bar graph with arduino and renesas flow sensor?

arfh
Автор

What is the software called for the simulation?

bertiepotts
Автор

interface serial communication component in Arduino

parmarnishannat
visit shbcf.ru