2-Digit Up/Down Counter using Arduino

  Рет қаралды 17,693

Joshua Acusta

Joshua Acusta

Күн бұрын

This video is in compliance to the requirements of ECE36 Digital Electronics 2
Tinkercad project link: www.tinkercad....
music by: Elysium Audio Labs

Пікірлер: 8
@almarlagaras
@almarlagaras Жыл бұрын
For basketball 24 seconds shut clock, how to modify the code?
@sevketozcelik4794
@sevketozcelik4794 Жыл бұрын
Display anode or kathode?
@kyo7292
@kyo7292 2 жыл бұрын
pano nmn sir kung single digit lng yun increment?
@sobanbaig8700
@sobanbaig8700 2 жыл бұрын
Sir kindly please give me the code for the 2 digit 7 segment up down Counter using Arduino code please .
@creepermin2022
@creepermin2022 Жыл бұрын
//ID Number int cntUp = 23; //Stops counting up when it reaches this value int cntDown = 64; //Stops counting down when it reaches this value //pin state of the LEDs in the 7 segment display from digits 0-9 int digit[10] = {0b1000000, 0b1111001, 0b0100100, 0b0110000, 0b0011001, 0b0010010, 0b0000010, 0b1111000, 0b0000000, 0b0010000}; //button controls int b1state0 = 1; int b2state0 = 1; int b1state1, b2state1; int b1 = 12;//count down button int b2 = 11;//count up button //counter controls int countstate = cntDown - 1;//initial value int ones, tens; int spd = 25;//about 0.5 seconds per count int rep = spd; void setup() { for (int i = 2; i < 11; i++) { pinMode(i, OUTPUT); } pinMode(11, INPUT_PULLUP); pinMode(12, INPUT_PULLUP); } void count(int num) { for (int i = 2; i 0) { digitalWrite(9, 0); digitalWrite(10, 1); count(ones); delay(10); digitalWrite(9, 1); digitalWrite(10, 0); count(tens); delay(10); b1state1 = digitalRead(b1); if(b1state1 == 1 && b1state0 == 0) { b1state0 = b1state1; goto countdown; } b1state0 = b1state1; rep = rep - 1; } rep = spd; if(countstate != cntUp) { countstate = countstate + 1; } if(countstate > 99) { countstate = 0; } } countdown: while (1 == 1) { tens = countstate / 10; ones = countstate % 10; while (rep > 0) { digitalWrite(9, 0); digitalWrite(10, 1); count(ones); delay(10); digitalWrite(9, 1); digitalWrite(10, 0); count(tens); delay(10); b2state1 = digitalRead(b2); if(b2state1 == 1 && b2state0 == 0) { b2state0 = b2state1; goto countup; } b2state0 = b2state1; rep = rep - 1; } rep = spd; if(countstate != cntDown) { countstate = countstate - 1; } if(countstate < 0) { countstate = 99; } } }
@s2ngi.official155
@s2ngi.official155 2 жыл бұрын
wala po bang code?
@buboyr
@buboyr 2 жыл бұрын
no code 😉
@garavaa0502
@garavaa0502 2 жыл бұрын
Text?
7 segment display| Tinkercad circuit| Project 2|
8:55
ROSHAN RAUT
Рет қаралды 43 М.
Arduino UP DOWN Counter Seven Segment
23:38
InaSkills Electronics
Рет қаралды 7 М.
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Лайки Like
Рет қаралды 2,6 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 2 МЛН
Arduino Adjustable Countdown Timer
19:17
Dmytro Savchuk
Рет қаралды 84 М.
2-Digit Up/Down Counter with IR Remote using Arduino
24:54
Joshua Acusta
Рет қаралды 1,1 М.
4 Digit 7 segment display using Arduino
8:31
Electronics Simplified
Рет қаралды 143 М.
The Raspberry Pi Pico WAS Overrated! But that changed!
10:18
GreatScott!
Рет қаралды 610 М.
Arduino Tutorial 6: Build an LED Binary Counter
37:50
Paul McWhorter
Рет қаралды 450 М.
7 segments counter 2 digits (2)
36:51
UL Dara
Рет қаралды 9 М.
All About TM1637
8:58
Crazy Couple DIY
Рет қаралды 25 М.