A Raspberry Pi Smart Fan that can be controlled through a browser or app
This is a smart iot device that is a fan that can be controlled from anywhere.
The current implementation of the project only works on a local network.
This is a work in progress
- Raspberry Pi 3 -- may also work with other versions
- Power supply for Pi
- 4-AA Batteries and Holder
- Mini Breadboard
- Motor driver chip
- 1 DC Motor
- 1 Fan Blade
- 1 DHT11 Temp/Humidity Sensor
- M-M and M-F wires
-
Connect the motor driver board on output 1 to one side of the motor. May have to test the motor to make it spin the right way.
-
Connect the other side of the motor to output 2 of the motor driver.
-
Connect pin 12 of the Pi to input 1.
-
Connect the power of the battery to Vcc on the motor driver
-
Connect the ground of the battery to Gnd on the motor driver
-
Place the DHT11 chip on the breadboard, and connect the power of the chip to the 3.3 pin on the Pi and the ground to the ground of the Pi.
-
Connect pin 17 on the Pi to the data of the sensor.
-
Make sure Flask and the Adafruit library for the DHT11 chip are installed on your Pi.
-
Export main.py to Flask and start Flask by running: flask start.