Internal Timers of Arduino 2.0

by j07310 in Circuits > Arduino

177 Views, 0 Favorites, 0 Comments

Internal Timers of Arduino 2.0

IMG_1138.png

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.

schema_jlNkRtLRSE.jpg

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

al2zl-t6je9.png

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