So it took me more than a week to get around to putting the project together, but I finally did tonight.
I just got done soldering the parts today (36 parts total). The only thing that was wrong was one capacitor had the wrong footprint size, but I was able to make it fit on the PCB.
I hooked up my serial port ESP32 firmware flasher, got the firmware flashed on the first try.
I connected to the ESP32 via wifi, plugged in my fan, and it worked perfectly.
The little webapp to control fan speed is great. It's got a speed slider, an on/off button, and low/medium/high/max speed buttons. There's also two physical buttons to control fan speed up and down.
I'm pretty amazed and happy with the results.
I wanted to get the initial chat I used but the session was compacted so all I have is the summary:
Summary:
1. Primary Request and Intent:
- *Initial request:* a hardware/software WiFi fan dimmer project.
- `KiCad/` holds a KiCad v10 project, schematic only; the user designs the PCB.
- `ESP32/` holds an ESP-IDF 4.4 project.
- The ESP32-WROOM-32E-N8 controls a triac doing phase control of a 120 V, 300 W fan.
- The web server has a slider page plus APIs for on/off and power level.
- *Later requests, in order:*
- Add "JLCPCB Part #" to each part.
- Replace through-hole parts with SMD, except connectors.
- Change all parts back to through-hole, cheapest, from Mouser/Digikey/any source. Large, easy SMD is OK.
- "please only select parts that you can confirm the body size, and have a 3d model for".
- "I really do not like the schematic... The components should connect with wires to each other."
- *Most recent request:* "Please add two more buttons that will control fan speed up and down. The down button should adjust fan power downward until the power is completely off to the fan, and the up button will have 6 gradients up until 100% power to the fan."
I just got done soldering the parts today (36 parts total). The only thing that was wrong was one capacitor had the wrong footprint size, but I was able to make it fit on the PCB.
I hooked up my serial port ESP32 firmware flasher, got the firmware flashed on the first try.
I connected to the ESP32 via wifi, plugged in my fan, and it worked perfectly.
The little webapp to control fan speed is great. It's got a speed slider, an on/off button, and low/medium/high/max speed buttons. There's also two physical buttons to control fan speed up and down.
I'm pretty amazed and happy with the results.
I wanted to get the initial chat I used but the session was compacted so all I have is the summary:
Summary: 1. Primary Request and Intent: