Summer is coming with steadily increasing warmth. Now, it is a right time to prepare a summer thing──fanner! Therefore, I have bought a small fanner on line; it is good except that it cannot steering.
However, is this a problem? No! As a creative engineer, it’s my show time!
1. Hardware in need:
FireBeetle ESP32 IOT Microcontroller (Supports Wi-Fi & Bluetooth) × 1
FireBeetle Covers-Gravity I/O Expansion Shield× 1
Gravity: I2C OLED-2864 Display × 1
BME temperature-humidity sensor × 1
EC11J rotary encoder × 1
9g micro servo (1.6kg) × 1
Dupont line × 10
Crust By Overlord 3D printer × 1
* No need for soldering during the whole working process.
2. Hardware Connection:
Connect I2C interface of OLED12864 directly to I2C interface of Gravity Expansion shield, and connect A of EC11J rotary encoder to D0, B to D1, C to D8. Then connect the micro servo to D3 and connect SPI interface of BME280 directly to SPI interface of Gravity Expansion shield, CS (Chip Select) to D5.
The Circuit Diagram is as below:
3. Working Process:
- Print the crust with 3D printer.
Click here to download the program and the source code for 3D printing.
Fix the rotary encoder to the crust.
- Fix OLED2864 to the crust.
Connect OLED display to Gravity board with Dupont and the connection interface is I2C.
- Connect BME280.
BME280 uses SPI interface, please refer to the previous circuit diagram for details of connection.
- Allocate the fan.
Remove the lithium battery and connect the power supply of the fan to Vcc and GND of FireBeetle ESP8266, edge connecting the lithium battery to FireBeetle ESP8266. Then set connect the micro servo to D3.
- Complete machine assembly.
Cover the bottom and fix it with hot-melt glue, and download the program.
Code