fanspeed
pwm fan speed controller based on digispark-tiny85 and a quadrature encoder
I use a large PC fan to improve the ventilation around my 3d printer. It is 12V 1.3A and uses a 4 pin connector.
This is the project I used to learn to make my own PCBs and 3D printed cases.
Firmware
The USB programmable Digispark takes some seconds to start. The fan spins up to fullsped then, and after that the encoder axis can be used to adjust speed. Left to do in the progam is to save the last used speed in EEPROM so that you don't have to tune the speed on each start.
Components
The controller is a simple arduino with a atmel tiny85 processor.
A quadratur pulse encoder is used to adjust speed.
![encoder dimensions](docs/Encoder-switch RE11 Dimension.jpg)
power jack
I use a 1.3mm pin 3.5mm barrel connector. For example https://www.amazon.com/10Pcs-1-3x3-5mm-Female-Connector-Socket/dp/B00JR5HVA6.
PCB
I use 0.4mm one sided PCB laminate.
The mounted PCB
Eagle Cad files are in board folder.
The PCB cad output
Case
I use https://openjscad.org to create a 3d printable case.