Arduino Adjustable Countdown Timer

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 152

  • @wherami
    @wherami Рік тому +1

    im floored that this works as expected. I have been bouncing between so many videos and tutorials lately that are garbage. This works perfectly and right away. Thank you for your effort.

  • @edhooper1421
    @edhooper1421 2 роки тому

    Thank you so much for the upload! The UA-cam community has many sharp, knowledgeable, and creative minds that bails out a shulb like myself 😅

  • @xarlixe7565
    @xarlixe7565 Рік тому +2

    This is a masterclass 😎. You explain everything, which is very useful for a beginner like me, your explanations are clear, your code is clear etc... It's the best tutorial on UA-cam to do this project, and I'm really happy to have found it : ) (I had spent one hour to try to understand other tutorials ...)
    Thank you so much : )

  • @itzelon
    @itzelon 2 роки тому +3

    This is great!! Thank you for uploading , your code was really useful 🙏

  • @unlockmyseedwallet3882
    @unlockmyseedwallet3882 Рік тому +4

    Hello sir! Quick question, Where should I connect the buttons if im using an arduino UNO?

    • @soerensauber
      @soerensauber 8 місяців тому

      An diesem Punkt (3. Schalter zu Kommunikation 16) bin ich auch gescheitert.
      Ansonsten sehr gut erklärt👍 wenn man alles hat😉

  • @55dj55nava
    @55dj55nava 4 роки тому +8

    great project for board games by time, one question is the display of the segments is common anode or cathode? .Another question, is it possible to change pins 16 and 17 to pins 0 and 1 of an arduino and change pin 15 speaker to an analog pin ?, if we change it in the code? I want to make a timer for board games that need some time to perform the goal and use an arduino nano, thanks friend

    • @55dj55nava
      @55dj55nava 4 роки тому +4

      I answer myself because I just tested it, the first question was common anode, and if you can change the pins so that it runs on arduino uno, you can use the analog inputs and make them outputs. Put the buzzer pin on pin1 that was free, button 3 on pin 0 and button 4 on A5. You have to declare it (int button4 = A5;) in the void setup (pinMode (A4, OUTPUT); so you can use the A0 A1 A2 A3 A4 and A5 of the arduino uno as outputs.

    • @dsavchuk1
      @dsavchuk1  4 роки тому

      @@55dj55nava Thanks Antonio for testing this out! I am sure that it will be helpful for others. Sorry - I did not look into this page for some time and missed your question

    • @55dj55nava
      @55dj55nava 4 роки тому

      @@dsavchuk1 Thanks for your answer, a greeting

    • @dsavchuk1
      @dsavchuk1  4 роки тому

      @@55dj55nava Hi Antonio, I think you mentioned that you developed a 3d printed case that may work for this project. I can certainly add a link to it at the project site.

  • @mattgabby8266
    @mattgabby8266 2 роки тому +1

    in 10:41 i'm also getting the same digits in multiple positions, in my case, it's 3. I wasn't able to understand how that works, like what does he mean by turning digit 1,2,3 and 4 on and off? pls help

  • @tripsgame3927
    @tripsgame3927 3 роки тому

    I used Common Cathode 7s. It worked. Thankyou!

  • @55dj55nava
    @55dj55nava 4 роки тому +4

    on the display the first digit lights up slightly, how can it be solved? thanks

    • @BILTDIFRENT
      @BILTDIFRENT 3 роки тому

      In the code, really close to the top where it says:
      int digit_pin[] = {6, 9, 10, 11}
      Instead of the 1st number being 6, turn it into 0

  • @reyrank2846
    @reyrank2846 3 роки тому +2

    thanks for this, now i created my version of this instead of start reset up down button
    ..i made the start/stop ..anytime you want to stop the count it will stay the same number and thats the only time you can reset the counter...
    if the counter running no button will function aside from the start/stop button...

    • @dsavchuk1
      @dsavchuk1  3 роки тому

      Thanks too! It's a good improvement :) That's what good about arduino - you can reprogram it to whatever is needed!

    • @reyrank2846
      @reyrank2846 3 роки тому

      @@dsavchuk1 just start learning programming...

  • @mikeramirez6179
    @mikeramirez6179 10 місяців тому

    Not sure if you are still keeping up with this. I wanted to add 30 sec while the timer is counting down when I push the button, will this code work close to what I need? Would greatly appreciated your help.

  • @RelaxoPeng
    @RelaxoPeng 9 днів тому

    Is it possible to Build this Construction with a Standard Controller that has only 13 connections ?

  • @6-arfansoerzami890
    @6-arfansoerzami890 2 місяці тому

    how to make the first two 7-segments show minutes and other show seconds?

  • @peileed
    @peileed 4 роки тому +1

    this looks amazing, trying to get the best of my arduino and will definetely try this later, I hope it works!

  • @jasperdebruyne862
    @jasperdebruyne862 2 місяці тому

    My board has too few connections for this project. What can I do?

  • @torpe1
    @torpe1 3 роки тому +1

    Hi Dmytro, i stumbled upon this tutorial as this is the sort of project that i am looking for as a begginer. One thing i may ask is how to add a code to Pause the timer with the Start button (or essentialy making it a Start/Pause button)? Looking forward to your reply. Thank you.

  • @unnikrishnanmanurapalli1624
    @unnikrishnanmanurapalli1624 8 місяців тому

    what are the changes to be made in the code for using common anode display

  • @stormmfl8343
    @stormmfl8343 3 роки тому

    When I turn it on and i try to up the time it just shows a line on every digit and i cant control anything, it wont start or show any numbers. any idea on what i should try fixing?

  • @bryanh2222
    @bryanh2222 4 роки тому +3

    Great video it was very helpfull to get me started with arduino

  • @angelfranciscosalazarmoren7286
    @angelfranciscosalazarmoren7286 6 місяців тому

    And what would I have to do to make it count upward?
    What would the code for that be?

  • @ricardopaz6955
    @ricardopaz6955 2 роки тому

    Thanks for sharing, a question what programs do I use?

  • @TheFandiahmad
    @TheFandiahmad 3 роки тому +1

    Can we setting for 0.15 or etc under 1s

  • @kaan9518
    @kaan9518 4 роки тому

    there is a problem with my display. The bottom lighst are not working for all digits. I checked cable connections and pins.

  • @carlocatibog7695
    @carlocatibog7695 3 роки тому

    Hi, is it possible to connect a stepper motor in this circuit? We want to operate the stepper motor with the help of this timer circuit.

  • @VegaSpydr
    @VegaSpydr 3 роки тому

    Followed this step by step but the ones number is in the first digit and is dim for some reason.

  • @john-iveson
    @john-iveson 10 місяців тому

    Do you think it’s possible to run 4 timers from one board , saved profiles like start 1:30 go 0:10 go 2:00 go 10:00 finish cycle , repeat

  • @PanchoCastell
    @PanchoCastell Рік тому

    Can you give me an idea of ​​how to make a connection that allows me to turn off 6 bulbs after 2 minutes. Thank you so much

  • @AGCbloglines
    @AGCbloglines Рік тому

    Can I use this as timer for DC speed motor start and stop count down timer?

  • @suhailyjamal6293
    @suhailyjamal6293 2 роки тому

    helo how to make the buzzer sound longer . what to change in the code . please help me .

  • @rotorway133
    @rotorway133 3 роки тому +1

    Awesome build ! is it possible to make it Up and Down counter ? ( you set your time ( ex 60 secs), press UP button or Down button then START it will count from 0 to 60 or 60 to 0 )

  • @sybin4565
    @sybin4565 2 роки тому

    hey i wonder if you are able to do the same but without the reset button , instead of buzzer there is LED diode and instead of 4 digit with 1 and all of that on Arduino UNO i just need to know a few tips about the code

  • @yohanessiswoko5758
    @yohanessiswoko5758 2 роки тому

    @Dmytro Savchuk
    how to add a stop coding at start button ? so that the countdown freezes and will run again if you press the start button

  • @Lawh
    @Lawh 2 роки тому

    For me the digital display goes crazy and the Arduino no longer functions after only a little while of using it. Resistors didn't work. The only solution I think might work is to unplug the Arduino from the USB connection with the PC. Is this a common issue with Arduino, to have to unplug it?

  • @podunkpennsylvania292
    @podunkpennsylvania292 3 роки тому

    Built the project and I have a list of errors I cant correct. Starting with pin A0

  • @kevin20809
    @kevin20809 3 роки тому +1

    Can be done with Arduino UNO use pins 1 and 0 for button pins 16 and 17 :)

    • @VR_edits7
      @VR_edits7 3 роки тому +1

      thanks , i was confused alot

    • @geargaming7297
      @geargaming7297 2 роки тому

      how about for the pin 14 and 15? in arduino uno

  • @zam7538
    @zam7538 2 роки тому

    Hey I had a additional question and help about this project is there anyway I could contact you about them?

  • @bomboba6191
    @bomboba6191 3 роки тому

    hi.....If I want it to run at the start And stop when counting is done How to fix it ? Thank you

  • @alih.alwaily
    @alih.alwaily 2 роки тому

    Great , but is this 7 seg. Is common anode or cathode?
    Any one answer please

  • @sgayle
    @sgayle 8 місяців тому

    what if im using an adruino uno?
    where do the buttons go?

  • @davidespigolon8170
    @davidespigolon8170 3 роки тому

    how to make high precision seconds ?

  • @agahgokdag1845
    @agahgokdag1845 3 місяці тому

    Why dont use TM 1637 ?

  • @anupchakraborty890
    @anupchakraborty890 3 роки тому

    Only one aurdino project .
    Please try more aurdino projects

  • @shebajournal
    @shebajournal Рік тому

    how can i make this using arduino uno , you know since unos' doesnt have 3 communication pins

  • @kaan9518
    @kaan9518 4 роки тому

    hey liked. But is it possible to do it like minute/second? i mean if wanna countdown from 25min how will i do it? (btw i know i can convert minutes to second but thats hard way)

  • @AeyZeiNS
    @AeyZeiNS 3 роки тому +1

    I am currently using an Arduino DUE board and I have issues with your code for some reason, whenever I run the code, all the segments of the lights turns on making it hard to see the number whenever I upload the code into the board.

    • @dsavchuk1
      @dsavchuk1  3 роки тому +1

      Is there a difference in brightness between the digits that are supposed to be lit and those that are not supposed to be lit? There were multiple reports that some light "bleeds" to other segments, but that seemed to be a hardware issue.

    • @AeyZeiNS
      @AeyZeiNS 3 роки тому +1

      @@dsavchuk1 they all bright up but some of the segments is slightly brighter than some of the other segments. It is very hard to see the numbers or it might be like you said the hardware.

    • @dsavchuk1
      @dsavchuk1  3 роки тому +1

      @@AeyZeiNS I'm sorry - I'm afraid that this not about the code, but about hardware, unfortunately. I'd try to check all the connections, but I assume that you've done this already.

    • @AeyZeiNS
      @AeyZeiNS 3 роки тому

      @@dsavchuk1 double checked the connections as well and tried redoing it, results still the same. But I appreciate the help.

    • @uiipoisthebest
      @uiipoisthebest 2 роки тому

      ​@@AeyZeiNS if u still want it, on top change define DIGIT_ON LOW to HIGH and DIGIT_OFF HIGH to LOW and then in every case from 0-10 change SEGMENT_OFF to ON and OFF to ON its working for me

  • @muhammedmenap
    @muhammedmenap 3 роки тому

    Sir, great job! Also, can we pull a relay during this time we enter? Can we make it so that we can schedule it from the phone with the HC-06 Module?

    • @dsavchuk1
      @dsavchuk1  3 роки тому

      Thanks! Everything can be done - but the code has to be modified significantly, of course. The one in the project deals with the physical buttons. But several functions can be used.

    • @muhammedmenap
      @muhammedmenap 3 роки тому

      @@dsavchuk1 I want to dose a manual coffee grinder by timing. In fact, I want to do Single espresso with a button, for example 4 sec. Double espresso, for example 8 seconds, with a button. however, since these times vary according to the size of the coffee bean, the moisture content in it, and the temperature of the gears of the mill, I have to intervene in the time. so I want to be able to change these times easily with a smart device android phone. This is actually what I'm trying to do.

    • @dsavchuk1
      @dsavchuk1  3 роки тому

      @@muhammedmenap I never worked with the bluetooth module before. I hope that at some point will have time for that. The potential is certainly there.

    • @muhammedmenap
      @muhammedmenap 3 роки тому

      @@dsavchuk1 You are absolutely right. Bluetooth is a great way to streamline the user interface in automation systems. Wireless is definitely important. I look forward to it with great impatience.

  • @techgautam422
    @techgautam422 3 роки тому

    If I want hr : min format, what to do? What will be the code? Please help.

  • @galaxytwix1980
    @galaxytwix1980 2 роки тому

    how to add relay on this?

  • @biancorosso3225
    @biancorosso3225 2 роки тому

    Hi, It's very useful project.it can use arduino uno?

  • @gravi-17-00
    @gravi-17-00 2 роки тому

    my 7 segment is anode and its not working properply

  • @aaisyahhumaira3496
    @aaisyahhumaira3496 2 роки тому

    How do you make the small jumper wire on the button. Can you explain it please thank you.

    • @dsavchuk1
      @dsavchuk1  2 роки тому

      I just took a regular piece of wire, cut it to necessary length, and stripped on two sides. But this is just so that the project looks nicer.

    • @aaisyahhumaira3496
      @aaisyahhumaira3496 2 роки тому

      @@dsavchuk1 another question, can i copy the exact coding you give on your link? or do i need to change it a bit?

    • @dsavchuk1
      @dsavchuk1  2 роки тому

      @@aaisyahhumaira3496 it should work if you just copy the code

  • @MadaraUchiha-yl9yg
    @MadaraUchiha-yl9yg 3 роки тому +1

    pls help me how i can do this because my arduino have only 13 pins

    • @dsavchuk1
      @dsavchuk1  3 роки тому

      I am not sure if this setup can be done with 13 pins. There are more connections to be made in the scheme with the selected hardware. However, you can try to use TM1637 display that only needs 4 pins (see, for example, create.arduino.cc/projecthub/ryanchan/tm1637-digit-display-arduino-quick-tutorial-ca8a93). But then you will need to modify the code significantly too.

  • @chbonnici
    @chbonnici 3 роки тому +1

    Thank you . Very nice project.

  • @MrOnlyUp
    @MrOnlyUp 2 роки тому

    Where does the sound come from ? Display or is there a speaker ?

  • @Lulek221
    @Lulek221 10 місяців тому

    How make a new sound?

  • @rushisuryawanshi1010
    @rushisuryawanshi1010 Рік тому

    I want interface relay to this timer how can i

  • @Buttery_11
    @Buttery_11 3 роки тому

    how can i do this with the arduino uno

  • @SunnyYelloTello
    @SunnyYelloTello Рік тому

    For some reason mine will just start counting down instantly and clicking reset will make it just go back to 60 and start counting again. Pressing + and - do nothing. Can someone help me?

  • @MrKakinyi
    @MrKakinyi 3 роки тому

    Great job..do you sell a complete device

    • @dsavchuk1
      @dsavchuk1  3 роки тому

      Thanks! No, I did not work on selling it. So far it's been just a hobby

  • @chbonnici
    @chbonnici 3 роки тому

    how can i add pause to it

  • @OOAK-Ireland
    @OOAK-Ireland 16 днів тому

    very interesting. would you be able to help me with a project that is similar to this?

  • @jadenruanes1858
    @jadenruanes1858 2 роки тому

    What about timer (adjustable, mm:ss)

  • @mantamang6452
    @mantamang6452 3 роки тому

    Great circuit. COuld you share she circuit diagram and components required

    • @dsavchuk1
      @dsavchuk1  3 роки тому +1

      Thanks! Just follow the link in the description to the project page on the arduino projecthub. It's all there

    • @mantamang6452
      @mantamang6452 3 роки тому

      @@dsavchuk1 the code that you have shared tried to upload but did not work as it showed an error "FQBN not provided"

    • @dsavchuk1
      @dsavchuk1  3 роки тому

      @@mantamang6452 It looks like this is a problem you have to solve on your side: support.arduino.cc/hc/en-us/articles/360020843439-Error-2-UNKNOWN-no-FQBN-provided

  • @teqilank2353
    @teqilank2353 3 роки тому

    lightNumber (dig.digit [j]); I am blocked at this level I have an error: sketch_apr17a: 277: 3: error: expected declaration before '}' token
    }
    ^
    exit status 1
    'struct struct_digits' has no member named 'Digit'

  • @biancorosso3225
    @biancorosso3225 2 роки тому

    Thanks. Very nice project

  • @lommaster4865
    @lommaster4865 2 роки тому

    Можна зробити спідометр на основі neo6m +таймер зворотнього відліку який стартує при набиранні допустимо 90км на годину

  • @bosslyle2641
    @bosslyle2641 4 роки тому

    Is this capable for Arduino On? using the same code and schematic diagram?

    • @dsavchuk1
      @dsavchuk1  4 роки тому

      Did you mean Arduino Uno? If so, please see my answer to the question of Ray Rank below. You will need to change one of the pins.

  • @alessandrariegler5936
    @alessandrariegler5936 2 роки тому

    Thank you very much for this very interesting project. I used an Arduino uno so I had to make some little changes, but now it works fine all except the fact that the first digit always shows the value of the forth although in a dimmer way. I also had to define digit_on High and segment_on LOW.
    To use the countdown for minutes instead of seconds I have changed the line 215 in:
    void PrintNumber(int n, unsigned int time) {
    unsigned int allowes values from 0 up to 65535 so it's possible to set the countdown_time in the loop to the value 59968 you suggested in a reply to a question.
    So, could you please help me with my problem of the digits?
    Thank you in advance

    • @tanggooo
      @tanggooo 2 роки тому

      can i ask you what is the little changes in the arduino uno? thanks

    • @alessandrariegler5936
      @alessandrariegler5936 2 роки тому

      @@tanggooo I had to change some pins as you can see from the ide I used:
      drive.google.com/file/d/1BbM65IB5-t7GQVdbI71rUYhrAz3Cfh5p/view?usp=sharing
      I also had to change:
      #define DIGIT_ON LOW // per un display con catodo in comune (for a display with common cathode)
      #define DIGIT_OFF HIGH
      in:
      #define DIGIT_ON HIGH // per un display con anodo in comune (for a display with common anode)
      #define DIGIT_OFF LOW
      Moreover, to use the countdown for minutes instead of seconds, I changed the PrintNumber this way:
      void PrintNumber(int n, unsigned int time) {
      and in the loop:
      while (!Countdown(countdown_time, 59002)) { // instead of the 59962 suggested

    • @amangeee
      @amangeee 2 роки тому

      i have the same problem - did you find a fix?

    • @alessandrariegler5936
      @alessandrariegler5936 2 роки тому

      @@amangeee No, I didn't. As I used only the last two digits, it didn't bother me too much, so I didn't look for a solution for too long.

  • @amirbefrajerdi
    @amirbefrajerdi Рік тому

    I know your board is mega but i have Uno and i change some pins to sync together

  • @cleahbautista9443
    @cleahbautista9443 3 роки тому

    Thank you, it's really helpful!!

  • @codex3431
    @codex3431 2 роки тому

    i'm using arduino uno so i don't have pin 16,17,15

  • @moshiurrahmanmeraj6640
    @moshiurrahmanmeraj6640 4 роки тому +1

    I want to add a relay on position when the countdown is started and relay will off when countdown is finished, so what I have to do will you tell me . And thanks for your project .👍👍👍🇧🇩

    • @shoumikahmed6373
      @shoumikahmed6373 3 роки тому

      ভাই ওয়েট করেন ,আমি টেস্ট করে সফল হলে আপনাকে জানাব

    • @moshiurrahmanmeraj6640
      @moshiurrahmanmeraj6640 3 роки тому +1

      @@shoumikahmed6373 thanks 👍

    • @bomboba6191
      @bomboba6191 3 роки тому

      @@shoumikahmed6373 Was the result of the experiment successful? And how to fix it?

    • @shoumikahmed6373
      @shoumikahmed6373 3 роки тому +1

      @@bomboba6191 Yes,
      There was a small bug in the code..I had fixed that but forgot what I fixed. Thats was about 7 segment.I used common anode display..For that ....
      #define DIGIT_ON HIGH
      #define DIGIT_OFF LOW
      #define SEGMENT_ON LOW
      #define SEGMENT_OFF HIGH
      This will work...For common cathod you have to change High to Low.
      Now 2nd one...
      For relay take a variable
      int LEDPin =3;(You can take any pin and variable you want like Relaypin)
      at void setup
      pinMode (LEDPin,output);
      Now don't copy everything...I have changed many things..Just look where I used digital write LEDPin..
      bool Countdown(int n, int del){
      for (int q=n; q>0; q--){
      PrintNumber(q,del);
      digitalWrite(LEDPin, HIGH);
      if (digitalRead(button2)==LOW) {
      return false;
      }
      }
      digitalWrite(LEDPin, LOW);
      PrintNumber(0,0);
      playTone(150,350);
      return true;
      }
      void reset() {
      int m, zeros, d, pressed3 = 0, pressed4 = 0;
      m=countdown_time;
      struct struct_digits dig;
      dig = IntToDigits(countdown_time);
      digitalWrite(LEDPin, LOW);
      while (digitalRead(button1)==HIGH) {
      for (int j=0; j 20) {
      if (countdown_time > 0) {
      countdown_time -= 1 ;
      }
      dig = IntToDigits(countdown_time);
      }
      pressed4 += 1;
      }
      else if (digitalRead(button3)==LOW) {
      if (pressed3 == 0 || pressed3 > 20) {
      if (countdown_time

    • @shoumikahmed6373
      @shoumikahmed6373 3 роки тому +1

      @@moshiurrahmanmeraj6640 Vai..Kaj kore...Baniye felen.

  • @roosta_03
    @roosta_03 4 роки тому

    Hi guys. I'm a complete nuffie and looking for some help to build something similar - a countdown timer which can be manually pre-set with a specific time (H:MM:SS best case, otherwise need a minimum display of :SS) to countdown to 0. No alarm attachment is required, simply flash 0 a few times, then auto power off.
    I am looking to set up MULTIPLE (probably 3) SEPARATE displays simultaneously counting down the timer with a separate control board (set, reset, power or up/down etc) to be control from one central location (different area to where timer displays will be set up.
    These displays will be embedded into a table surface.
    Can someone help me put this together?

    • @dsavchuk1
      @dsavchuk1  4 роки тому

      Maybe something like this will work for you: create.arduino.cc/projecthub/mattywausb/one-kitchen-timer-to-cook-it-all-1afdab?ref=search&ref_id=countdown%20timer&offset=10

  • @amirbefrajerdi
    @amirbefrajerdi Рік тому

    I have this error with your codes on arduino Uno board. Please help me sir, thanks a lot

  • @koihalnijan8819
    @koihalnijan8819 3 роки тому

    Plzz make a 99 minutes timer on 7 segment display plzz.

  • @experimentalaccount2866
    @experimentalaccount2866 4 роки тому

    What to download for include library,

    • @dsavchuk1
      @dsavchuk1  4 роки тому

      I did not install it manually and "#include " was enough for me. What chip do you have? There are some limitations according to www.arduino.cc/en/math/h
      They also have a reference to avr-libc library that probably can be installed if math.h is not found automatically.
      I only use that library for a function pow to compute 10^i, which may be an overkill. If installing a library does not work, you can add the following function:
      int pow10(int n) {
      int x=1;
      for(int i=0; i

  • @milespeterson5049
    @milespeterson5049 Рік тому

    I wanna make this with an LCD 16x2 Too bad the code is way to complex.

  • @nidhigoel520
    @nidhigoel520 4 роки тому

    As soon as my timer ends, it automatically restarts. Why is that and what should I do?

    • @reyrank2846
      @reyrank2846 4 роки тому

      i been at your situation but i tried to managed the issue
      I just transfer the start button at other pin because i think the pin 13 is also the pin use for the LED built in the arduino board,
      i transfer it and i changed at the set up instead of INPUT_PULLUP I changed it to just INPUT but the wiring also changed from Positive to button and button to the pin location...but i put a resistor from the pin to ground to prevent unnecessary noise....hope it will help...

  • @reyrank2846
    @reyrank2846 4 роки тому

    any other library needed for this project?or is this applicable for arduino uno?

    • @dsavchuk1
      @dsavchuk1  4 роки тому +1

      Aside math.h, no other library is needed. And there is a way to go around math.h if needed as described in another comment. It also should work on Arduino Uno as well, but you may need to change the pins as the number of digital pins in UNO is one less than I used in this project in MEGA. You may try to use analog pins instead. If it will not work for the buttons, you can probably use them for segments to free up some digital pins. One of them is analog anyway, so it should work, I guess. For example, you can assign "int segF = A1;" and use digital pin 7 for the reset button. If this does not work, you can simply use pin 6 that currently corresponds to the first digit of the display. Then the countdown will be limited to 999, but still gives you something. Then you would need to change the first line of SwitchDigit function to "for (int i=1; i

    • @reyrank2846
      @reyrank2846 4 роки тому +1

      @@dsavchuk1 thanks for the reply... highly appreciated...

    • @reyrank2846
      @reyrank2846 4 роки тому

      hello...is there any way to make the start as both start and stop button? looking forward for your reply and highly appreciated it...thanks...more power

    • @kevin20809
      @kevin20809 3 роки тому

      @@dsavchuk1 used pins 1 and 0 for 16 and 17 replacement..

  • @rolandgomes88
    @rolandgomes88 3 роки тому

    hi, can this be done using a P10 display?

    • @dsavchuk1
      @dsavchuk1  3 роки тому +1

      You'll have to modify the code. But you can still use the functions related to the buttons.

  • @amirbefrajerdi
    @amirbefrajerdi Рік тому

    Because i want upload your code in “Uno” please tell to me how can i…?!

  • @technomania2752
    @technomania2752 4 роки тому

    hay can you please tell me to How can we set the countdown to be in minutes instead of seconds?

    • @dsavchuk1
      @dsavchuk1  4 роки тому +1

      In line 289 of the code replace 962 by 59,968 and check if you get exactly minutes. You may need to adjust this number a bit to be more accurate. For example, after you do this modification, measure how long does it actually take for the timer to go down from 10 to 0. If it's a bit less than 10 minutes, increase that number a bit.

    • @jesusjones1024
      @jesusjones1024 4 роки тому +1

      @@dsavchuk1 first off, awesome project! I'm trying to implement the changes you described to make it go by minutes, but the max value allowed in that function is "32000". 33,000 - thus 59,969 - automatically set off the buzzer. Any ideas or something else I need to change?

    • @alessandrariegler5936
      @alessandrariegler5936 2 роки тому

      @@jesusjones1024 In line 215 change int time with unsigned in time :
      void PrintNumber(int n, unsigned int time) {

  • @herrjonatan5436
    @herrjonatan5436 3 роки тому

    please can you do a vidéo on countup

  • @victordiouf283
    @victordiouf283 3 роки тому

    sa na marche pas avec mpoi porquoi

  • @vai3631
    @vai3631 4 роки тому

    why your countnumber speed number is 962 ? not 1000

    • @dsavchuk1
      @dsavchuk1  4 роки тому +2

      Well, this is because it takes roughly 38 milliseconds for arduino to complete the rest of the code per cycle. This, of course, can be done better for better accuracy, but I believe it will make the code more complicated. So this is kind of a compromise.

  • @techgautam422
    @techgautam422 3 роки тому

    No code available. Link is not opening.

    • @dsavchuk1
      @dsavchuk1  3 роки тому

      Perhaps the problem is resolved by now - the link does open up on my end

  • @amirbefrajerdi
    @amirbefrajerdi Рік тому

    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

  • @techgautam422
    @techgautam422 3 роки тому

    Need hr min

  • @fifisadeghi2471
    @fifisadeghi2471 2 роки тому

    Good 👍👍👍👍

  • @Electronic_and_electrical
    @Electronic_and_electrical Рік тому

    Using a other Arduino