ESP32. How to use T...
 
Notifications
Clear all

ESP32. How to use Timers and Alarms with Arduino Code

Page 1 / 2

christophe
Posts: 253
Admin
Topic starter
(@chris)
Member
Joined: 5 years ago
wpf-cross-image

A Timer is an internal interrupt that can trigger an alarm and an associated action at a specific time repeatedly. A Timer is considered an interrupt because it "interrupts" the main thread to execute the code associated with it. Once the associated code has been executed, the program continues where it left off.

 …

6 Replies
f27c5bb7a18b1764321ddde979928eda?s=80&d=mm&r=g
Posts: 1
 Franzi
Guest
(@Franzi)
Joined: 10 months ago

Thank you very much for the tutorial! I was able to program an Arduino Timer interrupt myself

Reply
1 Reply
christophe
Admin
(@chris)
Joined: 5 years ago

Member
Posts: 253

Thank you very much Franzi 🙂

Reply
5e6488c0a4488acb7333b958002e57c3?s=80&d=mm&r=g
Posts: 2
 Muthiah Meyyappan@Shriram
Guest
(@Muthiah Meyyappan@Shriram)
Joined: 4 months ago

Hi I really liked your tutorial. I have a question, what is the max time in-between each interrupt and what do you change in the code to achieve it?

Reply
5e6488c0a4488acb7333b958002e57c3?s=80&d=mm&r=g
Posts: 2
 Muthiah Meyyappan@Shriram
Guest
(@Muthiah Meyyappan@Shriram)
Joined: 4 months ago

Hi thank you for the informative tutorial. I have 2 questions. what is the maximum time i can put in-between each interrupt and how do I do it?

Reply
407eb73e9aee7659d4f33c5d5305b8a3?s=80&d=mm&r=g
Posts: 1
 maki
Guest
(@maki)
Joined: 2 months ago

Reminder just in case it helps: do not use fflush(stdout) inside the function you call on timer activations. Produces runtime errors and I ignore the reason.
I used an ESP32 (TTGO LoRa32-OLED V1 in my case) with Arduino IDE.
Thank you so much for this tutorial.

Reply
Page 1 / 2
Share:
Join Us!
Recent Posts
Last Articles
DIY Projects
DIY Projects