Arduino Adjustable Countdown Timer

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 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.

  • @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 TH-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 : )

  • @edhooper1421
    @edhooper1421 2 ปีที่แล้ว

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

  • @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.

  • @itzelon
    @itzelon 2 ปีที่แล้ว +3

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

  • @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...

  • @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

  • @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

  • @RelaxoPeng
    @RelaxoPeng 7 วันที่ผ่านมา

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

  • @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!

  • @tripsgame3927
    @tripsgame3927 3 ปีที่แล้ว

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

  • @bryanh2222
    @bryanh2222 4 ปีที่แล้ว +3

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

  • @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.

  • @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.

  • @ricardopaz6955
    @ricardopaz6955 2 ปีที่แล้ว

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

  • @jasperdebruyne862
    @jasperdebruyne862 2 หลายเดือนก่อน

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

  • @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.

  • @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

  • @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 )

  • @unnikrishnanmanurapalli1624
    @unnikrishnanmanurapalli1624 8 หลายเดือนก่อน

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

  • @6-arfansoerzami890
    @6-arfansoerzami890 2 หลายเดือนก่อน

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

  • @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

  • @john-iveson
    @john-iveson 9 หลายเดือนก่อน

    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

  • @angelfranciscosalazarmoren7286
    @angelfranciscosalazarmoren7286 5 หลายเดือนก่อน

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

  • @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?

  • @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?

  • @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?

  • @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.

  • @alih.alwaily
    @alih.alwaily 2 ปีที่แล้ว

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

  • @TheFandiahmad
    @TheFandiahmad 3 ปีที่แล้ว +1

    Can we setting for 0.15 or etc under 1s

  • @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?

  • @VegaSpydr
    @VegaSpydr 3 ปีที่แล้ว

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

  • @techgautam422
    @techgautam422 3 ปีที่แล้ว

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

  • @suhailyjamal6293
    @suhailyjamal6293 2 ปีที่แล้ว

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

  • @agahgokdag1845
    @agahgokdag1845 3 หลายเดือนก่อน

    Why dont use TM 1637 ?

  • @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

  • @podunkpennsylvania292
    @podunkpennsylvania292 3 ปีที่แล้ว

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

  • @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

  • @sgayle
    @sgayle 8 หลายเดือนก่อน

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

  • @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

  • @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)

  • @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.

  • @MrOnlyUp
    @MrOnlyUp 2 ปีที่แล้ว

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

  • @biancorosso3225
    @biancorosso3225 2 ปีที่แล้ว

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

  • @davidespigolon8170
    @davidespigolon8170 3 ปีที่แล้ว

    how to make high precision seconds ?

  • @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.

  • @OOAK-Ireland
    @OOAK-Ireland 14 วันที่ผ่านมา

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

  • @anupchakraborty890
    @anupchakraborty890 3 ปีที่แล้ว

    Only one aurdino project .
    Please try more aurdino projects

  • @gravi-17-00
    @gravi-17-00 2 ปีที่แล้ว

    my 7 segment is anode and its not working properply

  • @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?

  • @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'

  • @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.

  • @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

  • @jadenruanes1858
    @jadenruanes1858 2 ปีที่แล้ว

    What about timer (adjustable, mm:ss)

  • @cleahbautista9443
    @cleahbautista9443 3 ปีที่แล้ว

    Thank you, it's really helpful!!

  • @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

  • @galaxytwix1980
    @galaxytwix1980 2 ปีที่แล้ว

    how to add relay on this?

  • @rushisuryawanshi1010
    @rushisuryawanshi1010 ปีที่แล้ว

    I want interface relay to this timer how can i

  • @chbonnici
    @chbonnici 3 ปีที่แล้ว +1

    Thank you . Very nice project.

  • @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.

  • @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

  • @Buttery_11
    @Buttery_11 3 ปีที่แล้ว

    how can i do this with the arduino uno

  • @milespeterson5049
    @milespeterson5049 ปีที่แล้ว

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

  • @lommaster4865
    @lommaster4865 2 ปีที่แล้ว

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

  • @Lulek221
    @Lulek221 10 หลายเดือนก่อน

    How make a new sound?

  • @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.

  • @codex3431
    @codex3431 2 ปีที่แล้ว

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

  • @amirbefrajerdi
    @amirbefrajerdi ปีที่แล้ว

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

  • @amirbefrajerdi
    @amirbefrajerdi ปีที่แล้ว

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

  • @amirbefrajerdi
    @amirbefrajerdi ปีที่แล้ว

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

  • @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.

  • @chbonnici
    @chbonnici 3 ปีที่แล้ว

    how can i add pause to it

  • @biancorosso3225
    @biancorosso3225 2 ปีที่แล้ว

    Thanks. Very nice project

  • @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..

  • @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.

  • @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...

  • @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) {

  • @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

  • @herrjonatan5436
    @herrjonatan5436 3 ปีที่แล้ว

    please can you do a vidéo on countup

  • @victordiouf283
    @victordiouf283 3 ปีที่แล้ว

    sa na marche pas avec mpoi porquoi

  • @koihalnijan8819
    @koihalnijan8819 3 ปีที่แล้ว

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

  • @amirbefrajerdi
    @amirbefrajerdi ปีที่แล้ว

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

  • @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

  • @techgautam422
    @techgautam422 3 ปีที่แล้ว

    Need hr min

  • @Electronic_and_electrical
    @Electronic_and_electrical ปีที่แล้ว

    Using a other Arduino

  • @fifisadeghi2471
    @fifisadeghi2471 2 ปีที่แล้ว

    Good 👍👍👍👍