กลับไปหน้ารวมไฟล์
eggtimer-created-using-arduino-and-millis-function-7f7f44-en.md

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 full tutorial can be found here:

If you like this content and you want to support me in creating similar videos go to my Patreon webpagehttps://www.patreon.com/MariosIdeasOrhttps://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7PD67JWZ9S3EJ&source=url

EXPANDED TECHNICAL DETAILS

Precise Non-Blocking Countdown

This project provides a robust kitchen or laboratory timer that avoids the pitfalls of the delay() function, allowing for multiple concurrent tasks.

  • Temporal Differential Logic: The countdown is managed using the millis() function. The Arduino calculates the difference between the "Target Time" and "Current Time" on every loop, ensuring the timer remains frame-perfect even if other sensors are being read.
  • Rotary Encoder Navigation: Uses a robust rotary encoder for time setting. The Arduino IDE 2.0 Beta was used to implement a "Smooth Scrolling" algorithm; as the user turns the knob faster, the time increments in larger steps (1m vs. 15m).

Alerts

  • Dynamic Alarm Frequency: Once the timer hits zero, the Arduino triggers a 90dB piezo siren that ramps up in frequency, ensuring the user hears it from across the house.

ข้อมูล Frontmatter ดั้งเดิม

title: "Eggtimer created using Arduino and millis function"
description: "I continue to experiment with millis function."
author: "Dziubym"
category: "Screens & Displays"
tags:
  - "oled"
  - "eggtimer"
  - "millis"
views: 3229
likes: 0
price: 1120
difficulty: "Intermediate"
components:
  - "1x Buzzer"
  - "1x Arduino"
  - "1x OLED SSD1306"
  - "1x Arduino Nano R3"
tools: []
apps:
  - "1x Arduino IDE 2.0 (beta)"
downloadableFiles: []
documentationLinks: []
passwordHash: "f75c8e02671b410cdf7110660a9faa0565f29b31e5c35030c19d8cfe06ac2ace"
encryptedPayload: "U2FsdGVkX18bTrpVBsizhdqwclKrAJtO9eUpvsD2Tmy080Bwwy5ZsUShwfih+C/U5PTHr1hVvoxSh/h3xbpblU0ZB+3APTFL9n1tyitHwq0="
seoDescription: "Create an Eggtimer with Arduino using the millis function for efficient non-blocking timing in your DIY projects."
videoLinks:
  - "https://www.youtube.com/embed/9a5q-xDvZQs"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/eggtimer-created-using-arduino-and-millis-function-7f7f44_cover.jpg"
lang: "en"