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
------------------------------ - Наука
This is sooo good explained!! ❤❤❤ Thank you so much!! Please do more videos!!🙏
Thanks man .. I need this project with some modifications like different screen and batteries . Keep up the good work .
THX.Give video a like if you enjoyed it:)
Felicitaciones muy buen proyecto
Very good intro!, keep doing it!
Thanks:)
Good Job, congratulation
Thank you!
It needs a temperature sensor so that it automatically starts the timer once the water hits boiling temp! Then the eggs would be perfect!
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?
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
@@marios_ideas Great Mario..Thank You!!!
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!!
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
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)"
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
@@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. 🙏
@@marios_ideas Changes had no effect, it really prevents multiple pressings of the button but when I press it goes back to 0...
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.
This video shows creation on 128x32 display
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?
Check now
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
hey , how about making a timer for hours and minute ? can u help me , Thanks
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..
I sub ur telegram was so awesome :D
Thanks. Just posted a new video. Maybe you will find it interesting.
hello can i have the code as the arduino project hub link is not working
I have added the link. Can you confirm that it works for you
@@marios_ideas i still cannot access the code through the arduino project hub website. Perhaps you can use gitbhub for the code?
@@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:(
@@marios_ideas ah i understand, what is this project title in arduino project hub? maybe i can search them manually
Hey brother, can you share the CODE ? (Given link has no such project or CODE !)
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
@@marios_ideas 5 months later... fixed? If so, new links????
@@BlondieSL Check now
@@marios_ideas Thanks. It's there!
Appreciate it. I like the little animated bell.
how to add a relay?
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.
I have a separate video on relays. ruclips.net/video/XiOcxyyTxy4/видео.html
I guess those are pull down resistors.
Thanks for spotting it. You are right. Missed it
String TimeLeft(unsigned long MsLeft){
String Result;
int M;
int S;
M = (long)MsLeft/60000;
if(M
A word of explanation?:)
@@marios_ideas git repo with code is good practice. Long time ago