Internal Timers of Arduino 2.0
original source: https://create.arduino.cc/projecthub/Marcazzan_M/internal-timers-of-arduino-58f6c9?ref=search&ref_id=timer&offset=6
the original creator made a timer by light bulb blink, every time the light bulb takes one second to light up and one second to turn off. By the blink of the light bulb, the machine could be used as a timer. Although it can already time, there are still many things that can work further. First, the light bulb isn't strong enough, this makes it difficult to observe the difference between dark and light. Second, there isn't a switch for the timer. So in this project I will mondify the timer in these point.
Download the code from the initial website and connect the wire and the light bulb same as the initial product.
Here is the code
Downloads
Add the button to the product and add two lines of code.
the code you need to add:
pinMode(7, INPUT);
if(digitalRead(7) == HIGH){
Final Product
This is my final product and the code