Hair Dryer Reminder

by Mitch2007 in Circuits > Arduino

156 Views, 0 Favorites, 0 Comments

Hair Dryer Reminder

截圖 2021-05-15 下午5.48.24.png

Often people forgot to close their hairdryer, cause problems like wire escape, so to prevent fire from breaking out, today we are going to make a hair dryer reminder, using Arduino Leonardo.

Step 1: Material

截圖 2021-05-15 下午5.49.00.png

For this project, you will need to prepare the following:

x1 Unify knife

x1 ruler in cm

x1 a transparent paper 4.2 x 9 cm

x1 shoebox (any) 31.5 long 17 wide 11 height

Arduino Materials

Arduino Leonardo x1

x 10 wires (any color)

x 1 thermistor

x2 resistor 100 ohm

x1 resistor 10k ohm

x1 resistor

x1 red LED

x1 blue LED

Step 2 : Connecting to Arduino

截圖_2021-05-15_下午5.31.26.jpg
截圖 2021-05-15 下午5.49.06.png

Black wire: negative ---> GND

Red Wire: positive ---> 5v

Blue Wire: positive ---> 5j

White Wire: 6j ---> A0

Green Wire: j19---> 12

Orange Wire: j24 ---> negative

Pink 1 Wire: j26 ----> ~11

Pink 2 Wire: j30 ---> negative

1 LED connects to g19 20

2 LED connects to g26 27

Brown Resistor 1 connects to i20 24

Brown Resistor 2 connects to i27 30

Blue resistor connects to i6 10

Step 3: Start Coding

截圖 2021-05-15 下午5.39.34.png

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

Serial.begin(9600); // opens serial port, sets data rate to 9600 bps pinMode( 12 , OUTPUT); // sets the digital pin as output pinMode( 11 , OUTPUT); // sets the digital pin as output }

void loop(){ // put your main code here, to run repeatedly: Serial.print(analogRead( A0 )); //print message Serial.print(" "); //print a blank Serial.println(); delay( 20 ); // waits a few milliseconds if ( analogRead( A0 ) > 670 ) { digitalWrite( 12 , LOW ); // sets the digital pin on/off digitalWrite( 11 , HIGH ); // sets the digital pin on/off } if ( analogRead( A0 ) < 665 ) { digitalWrite( 12 , HIGH ); // sets the digital pin on/off digitalWrite( 11 , LOW ); // sets the digital pin on/off } }

Downloads

Step 4: Shoe Box

截圖 2021-05-15 下午5.48.34.png
截圖 2021-05-15 下午5.48.24.png

Cut a 5.5 radius circle anywhere on the box with the unify knife. (But do not cut it completely, leave it where you can open it)

Then cut another rectangle 4.5 x 9 cm, and cut the same size of transparent paper.

Step 5: FINSIH!

Arduino Hair Dryer reminder

https://youtu.be/pkGFnAIJ8Hk-----> Youtube Link