Learn how to build two different clocks. The first clock can adjust the time by using an hours and minutes button. You also learn how to create an animation. The second clock makes it possible to adjust the hours, minutes and seconds by using a menu. You also learn how to use interrupts and debounce for your buttons.
We also going to replace delay() with millis(), and learn how to detect whether a button hasn't been pressed for a certain period of time.
I explain the mistakes I've made while creating this project, so you don't have to make them as well.
The Arduino for beginners tutorials series guides you through the world of Arduino. A video shows you stepbystep how to build the circuit and write the code. The website contains the course material, circuit diagram, Arduino code and shopping list of all the components used in the tutorial.
⬇ Arduino code, circuit diagram and part list: https://arduinotutorials.net/project...
More tutorials and projects on https://arduinotutorials.net
Deze tutorial is ook in het Nederlands beschikbaar • DIGITALE ARDUINO KLOK MET ANIMATIE...
CHAPTERS:
00:00 Introduction
01:07 Components
01:28 Project design part 1
04:40 Building the circuit
06:33 Arduino code delay()
13:40 Arduino code millis()
18:29 Arduino code animation
21:29 Arduino code button debounce
24:18 Arduino code interrupts
28:26 Project design part 2
29:59 Arduino code mode / set
37:47 Arduino code interrupts and timeout
42:48 Conclusion
COMPONENTS
Arduino Uno (clone)
https://arduinotutorials.net/r/KnSgtg
Arduino Uno (clone)
https://arduinotutorials.net/r/8237Hd
3x breadboard
https://arduinotutorials.net/r/k8rZRv
1x breadboard large
https://arduinotutorials.net/r/ZnW9L4
Jumper wire malemale
https://arduinotutorials.net/r/pkoGV4
128x64 I2C OLED (blue)
https://arduinotutorials.net/r/pI8QsC
128x64 I2C OLED (blue)
https://arduinotutorials.net/r/923Hfg
128x64 I2C OLED (white)
https://arduinotutorials.net/r/iBVfqI
128x64 I2C OLED (white)
https://arduinotutorials.net/r/38HFks
128x64 I2C OLED (white)
https://arduinotutorials.net/r/HtqZ8o
128x64 I2C OLED (yellowblue)
https://arduinotutorials.net/r/0GpTIH
15x colored tactile switches
https://arduinotutorials.net/r/PU7wZM
5x colored tactile switches
https://arduinotutorials.net/r/834jFH
50x colored tactile switches
https://arduinotutorials.net/r/TmUMFO
#arduino #BasOnTech