the ides are inspired by the fan but I need to make it smart I will use an infrared sensor to feel objects and Temperature Sensor when temp > 30 then the fan will open and the red led too.
I use Arduino software to typing code .
cardboard
Mini Breadboard
LED
Arduino
Jumper Wires
Scissors
DC motor
Glue Gun
DS1820 Temperature Sensor
https://www.tinkercad.com/things/cwTaGvjxqqu-frantic-snicket/editel?tenant=circuits
here is the circuit on tinkercad.
Frist step start with cutting the cardboard regard to fan design
then I building the circuit I stared by led I was connect it with board and resistor then connecting with Arduino
then I connect the sensor with Arduino
I did a search to find out the data sheet of the motor control and how to connect it with the motor and the correct way of wiring , and to know the output pins and input pins
then I was connect Dc motor with H bridge and like to Arduino
and then I attach Temperature Sensor to the A0 pin .
here I was writing the code to order Arduino when the infrared sensor sensed an object or Temperature Sensor temperature <= 28 then the red led opened and the fan worked too.
then I tested it after I attached it with the cardboard model
He explain to me what h bridge included we can use for working two motors in my case I used it for one motor so I will wire it to the motor like in the above picture and then I attached +5v and GND with Arduino pins GND and +5v and wiring input 2 to pin 11 at Arduino
when I make a circuit Frist time it wasn't working because I put a relay instead of an H bridge then I asked Abdulrahman oraby coordinator and then he help me alat and explain to me how can I use H bridge thanks abdalrahman
Here my smart fan device was working finally.