Introduction: Alchohol Timer

This time I'm going to take you on a guide to make a timer that can make a noise, and the time between the ring all depends on you!

Step 1: Step 1: Assemble Your Materials

First, gather all your equipments

You will need:

- 1 speaker

- 2 wires

You may be surprised at how little materials it needs, but you can make some awesome things with just theses materials!

Step 2: Step 2: Connecting the Negative Wire

For the second step we'll get right into business, first, put one wire from the negative end to the GND side as follow.

Step 3: Step 3: Connecting the Positive Wire

Then, put another wire from the positive end on the breadboard to the 5V end, make sure put it on the right spot, missing can cause some damage!

Step 4: Step 4: Connecting the Speaker

For step 4, you will be connecting the wires for your speaker, the speaker's wires can break very easily, so watch out, you will put the red wire on the speaker on the pin you selected, in my case, I selected pin 12, so I put the wire in pin 12. For the black wire, put it on the GND, and you're all set and ready for the coding!

Step 5: Step 5: Coding

Step 5 will be the coding, the code is as follows

void setup() {
// put your setup code here, to run once:

pinMode (12, OUTPUT); }

void loop() { // put your main code here, to run repeatedly: tone(12, 2000); delay(3000); tone(12, 0); delay(10000); }

For the void setup, we need the speaker to be connected to the electricity so we connect speaker to pin 12, that way we can make sure that the speaker will have sound when we put in the codes for it to make noise.

For the void loop part, tone(12, 2000) means pin 12 and the frequency of your sound is 2000 hz, and delay for 3000 ms, which means 3 seconds, this means it will play for 3 seconds, then go on a quiet phase for 10000 ms, which means 10 seconds, then emit the sounds again.

This may seem little, but all we want is just for the speaker to emit a sound that reminds people that they need to use alcohol again to clean their hands

Step 6: Step 6: Finished!