ansemjo / luftctl

small esp32-c3 based pwm fan controller which powers from usb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

luftctl

Small ESP32-C3 controller board to power two 12V PWM fans from a single USB plug.

hardware

Schematic and PCB design can be found in hardware/. It is a KiCAD 6 project.

The schematic is available as a PDF.

firmware

The first simple test just loops through {5V/off, 5V/on, 12V/off, 12V/on} with every button press.

Download MicroPython from micropython.org/download/esp32c3-usb/ and flash it with:

esptool.py --chip esp32c3 --port /dev/ttyACM0 erase_flash
esptool.py --chip esp32c3 --port /dev/ttyACM0 --baud 460800 write_flash -z 0x0 esp32c3-*.bin

Then install a virtualenv with adafruit-ampy and upload the main.py:

ampy -p /dev/ttyACM0 put main.py
ampy -p /dev/ttyACM0 reset --hard

The red LED will blink upon every state change.

images

About

small esp32-c3 based pwm fan controller which powers from usb


Languages

Language:HTML 99.3%Language:Python 0.7%Language:Shell 0.1%