It's a smart fan turn on if someone is standing in front of it when the temperature is high and the red LED light turns on to warn them that the temperature is high
used software
Arduino uno
to be the brain of the device
220 ohm resistor
to reduce current flow, and divide voltages
the inputs I used are and servo motor
temperature sensor DHT
to sense the hot temperature
outputs I used are LED and servo motor
LED
OUTPUT: to see who is by the door
servo motor
OUTPUT: to be the fan
crafting tools
we need some material to aid us in enclosure such as: -cardboard -glue gun -cutter -scissors - plastic cups
the circuit connection
here is the final wiring, I used color coding, red for positive and black for negative purpel for led positive side and orange for ultrasonic Eco and blue for trigger while yellow for temprature sensor signal and brawn for servo motor signal AS I used an LED and DC fan as output and ultrasonic sensor and temprature sensor as inputs
step one
i wrote the sodo code to be clear for me
i dawnloaded DHT sensor libarary called Adafruit sensor .h
i made sure that the wiring is matching the code and l cheeked the logic the finally l uploaded the code to Arduino
I made a box to be the fan enclosure and i placed the servomotor and sensors and led as it shown
Title of Media
I had a problem after I uploaded the code on Arduino and I made the wiring it did not work after alot of trails I figured out that I placed a wire on the other side of the breadboard which is not connected to the side I placed all the wires on so I have to make sure that the two sides of the breadboard are connected.
THE KEY OF SOLUTION IS trial and error
Title of Media
Title of Media
Title of Media