Countdown Creation: Arduino Timer with OLED Display using millis() function

Поделиться
HTML-код
  • Опубликовано: 19 июл 2024
  • Few weeks back I posted a tutorial on millis function where I was using this function to multitask, process slice in Arduino Code.
    In this Tutorial I am showing you how to create delayed trigger mechanism.
    I use it to build the eggtimer but it can be used in the veriaty of projects
    The code and a list of components can be found here:
    www.hackster.io/mdraber/eggti...
    If you like this content and you want to support me in creating similar videos go to my Patreon webpage
    / mariosideas
    Or
    www.paypal.com/cgi-bin/webscr...
    Music credits:
    ------------------------------
    Track: The Island - tubebackr [Audio Library Release]
    Music provided by Audio Library Plus
    Watch: • The Island - tubebackr...
    Free Download / Stream: alplus.io/island
    ------------------------------
  • НаукаНаука

Комментарии • 45

  • @Marisha-home
    @Marisha-home 7 месяцев назад

    This is sooo good explained!! ❤❤❤ Thank you so much!! Please do more videos!!🙏

  • @jromhek2070
    @jromhek2070 2 года назад

    Thanks man .. I need this project with some modifications like different screen and batteries . Keep up the good work .

    • @marios_ideas
      @marios_ideas  2 года назад

      THX.Give video a like if you enjoyed it:)

  • @edgarpenaloza3125
    @edgarpenaloza3125 2 года назад

    Felicitaciones muy buen proyecto

  • @elektroaqua7630
    @elektroaqua7630 3 года назад

    Very good intro!, keep doing it!

  • @soriatel
    @soriatel 2 года назад

    Good Job, congratulation

  • @backyardcnc
    @backyardcnc 5 месяцев назад

    It needs a temperature sensor so that it automatically starts the timer once the water hits boiling temp! Then the eggs would be perfect!

  • @cursosvvr
    @cursosvvr 3 года назад +1

    Hi!! I would like to know if it is possible to use OLED i2C SSD1306 128X64 (which only has 4 pins). You used SPI (with 7 pins). Is it possible to use oled i2C in this project?

    • @marios_ideas
      @marios_ideas  3 года назад +1

      Yes it is. You would need to adjust the code so it activates I2c display. You can check one video I have for analog style clock on Oled display. This one uses I2c and you can check the code

    • @cursosvvr
      @cursosvvr 3 года назад

      @@marios_ideas Great Mario..Thank You!!!

  • @rsshocks9346
    @rsshocks9346 3 года назад

    Hi do you know if its possible to use this on a 128x64 pixel screen. If possible is there an easy solution to change in the code thanks!!

    • @marios_ideas
      @marios_ideas  3 года назад +2

      Watch my video carefully.
      All information is there. There are two lines that define display dimentions. You just need to change hight. Then it will work but all the stuff will be displayyed in the top half of the screen. If you want to move it to the middle then you need to find a place to add the vertical offset of 32 . Then all the conent will be aligned vertically

  • @LDRCdriver
    @LDRCdriver 2 года назад

    Hi. I want to thank you for making your work on this available for us to use. I'm trying to implement this on my project but when I long press the start button it shows the bell instead of starting the countdown timer. I'm sure they're connected correctly since I can increment the minutes without any problem...it seems that it doesn't recognise this" if(State==1)"

    • @marios_ideas
      @marios_ideas  2 года назад

      This is because Arduino interprets that the button was pressed twice. I had this problem and in the code introduced a condition in the interrupt function millis() - Timestamp_Button_Pressed>200. Which basically ignores the event of pressing the button if it happened within less then 200ms of the previous button press. If you change this to a 1000 then it should fix or improve this

    • @LDRCdriver
      @LDRCdriver 2 года назад

      @@marios_ideas Thanks for the reply. You explained that implementation very well on the video and I've watched it several times...I was looking at that values but only tried to reduce them to 100 and increase to 300 but had no effect. Will change to 1000 and see if this improves. Again thanks a lot for the help. 🙏

    • @LDRCdriver
      @LDRCdriver 2 года назад

      @@marios_ideas Changes had no effect, it really prevents multiple pressings of the button but when I press it goes back to 0...

  • @raymtnz
    @raymtnz 2 месяца назад

    Hi, if I only have OLED Display SSD1306 128x32 to display the timer, what should I change in the code and where do I plug the SCL and SDA? Thank you.

    • @marios_ideas
      @marios_ideas  2 месяца назад

      This video shows creation on 128x32 display

  • @Michi61069
    @Michi61069 Год назад

    Hi, this project is exactly, what I was searching for. Perfect for my needs.
    Unfortunately, the links do not work.
    Can you please tell me, how I can get the code?

  • @mesquitamk1681
    @mesquitamk1681 3 года назад

    VERY GOOD LEGAL YOUR DESIGN. HOW TO PLACE A RELAY TO TURN OFF THE TRAILER? I DO NOT KNOW HOW. SO I KNOW COPY AND NECKLACE

  • @hafizuddindin7932
    @hafizuddindin7932 2 года назад +1

    hey , how about making a timer for hours and minute ? can u help me , Thanks

    • @marios_ideas
      @marios_ideas  2 года назад +1

      Well, I am not going to write the code for you. I get too many requests like this. Try to fully understand the code here. The concept is exactly the same, the time interval is just greater. You would need to get the smaller fon as hours minutes and seconds would not fit with the current font size..

  • @PekaVuite
    @PekaVuite 3 года назад

    I sub ur telegram was so awesome :D

    • @marios_ideas
      @marios_ideas  3 года назад

      Thanks. Just posted a new video. Maybe you will find it interesting.

  • @RTCTimer
    @RTCTimer Год назад

    hello can i have the code as the arduino project hub link is not working

    • @marios_ideas
      @marios_ideas  Год назад

      I have added the link. Can you confirm that it works for you

    • @RTCTimer
      @RTCTimer Год назад

      @@marios_ideas i still cannot access the code through the arduino project hub website. Perhaps you can use gitbhub for the code?

    • @marios_ideas
      @marios_ideas  Год назад +1

      @@RTCTimer The site migrated to the new version and this completly shafted my links. I reported this problem to them a week ago. I will be forced to migrate all that content somewhere else:(

    • @RTCTimer
      @RTCTimer Год назад

      @@marios_ideas ah i understand, what is this project title in arduino project hub? maybe i can search them manually

  • @ashokoza2175
    @ashokoza2175 Год назад

    Hey brother, can you share the CODE ? (Given link has no such project or CODE !)

    • @marios_ideas
      @marios_ideas  Год назад

      I will fix it soon. It is the fault of the website i store the code on. They modernised it and it invalidated some of the links

    • @BlondieSL
      @BlondieSL Год назад

      @@marios_ideas 5 months later... fixed? If so, new links????

    • @marios_ideas
      @marios_ideas  Год назад

      @@BlondieSL Check now

    • @BlondieSL
      @BlondieSL Год назад

      @@marios_ideas Thanks. It's there!
      Appreciate it. I like the little animated bell.

  • @soriatel
    @soriatel 2 года назад

    how to add a relay?

    • @marios_ideas
      @marios_ideas  2 года назад

      You have a circuit that you want to power. Add the relay to it and the signal cable should go to one of the digital pins of Arduino on which you created this timer and few lines of the code that if the time is up it sends the high signal to the relay.

    • @marios_ideas
      @marios_ideas  2 года назад

      I have a separate video on relays. ruclips.net/video/XiOcxyyTxy4/видео.html

  • @gauravbhattarai75
    @gauravbhattarai75 3 года назад

    I guess those are pull down resistors.

    • @marios_ideas
      @marios_ideas  3 года назад

      Thanks for spotting it. You are right. Missed it

  • @volodymyrkostenko3847
    @volodymyrkostenko3847 Год назад

    String TimeLeft(unsigned long MsLeft){
    String Result;
    int M;
    int S;
    M = (long)MsLeft/60000;
    if(M