FS (EU) Fan Controller (PWM) with two outputs up to 50V - Page 1
Forum section: electronics / general

author: sn4k3
author_rank: Frequent Contributor
timestamp: July 15, 2019, 11:01:02 pm
content: I've made a custom fan controller for an project in progress. Order 1 or 2 PCBs are not cost effective so i have order 30pcs batch, now they are idle here.I'm selling full populated PCB hand soldered by me as you request or blank, full software source and hex is given and MCU goes pre-programmed with my defaults or your needs.Made this a bit customizable and universal so it can fit many needsSpecs:(PWM drive circuit comply with FormFactors standard for 4 wires PWM fanhttp://www.formfactors.org/developer...e_PWM_Spec.pdf)PWM Signal: 5V, 25KHz, Open collector/DrainInput Voltage: 7V to 50V, must use same voltage the target fan.PWM Mode can use T1 up to 6A without heatsink (I only test that far with real fans (24V 3A x 2))Features:- Set fan speed by a potentiometer or fixed by software- Two potentiometer inputs with a selector switch (INT or EXT)- Instant disable/enable fan by a click button (Doesn't lose last speed setting)- Fan kickstart on boot or reenable (Software configuration)- Can control two and three wire fans as other loads as well by DC switching (JP_FAN_MODE Jumper), v1.1 only! Require heatshink on T1 FET!- Up to two fans or 10 with expansion board (v1.1 only), expansion board not made yet.- Diferent fans per header are compatible but input voltage must be the same for all- v1.1 have multiple component design that allow to choose between one regulator or another, based on max. input voltages to save some bucks- Fan headers: VH3.96 up to 10A fans OR XH2.54 for up 3A fans (v1.1 only)BOM:QuoteSoftware configurationsCode:// EEPROM#define USE_EEPROM_SETTINGStrue// True to use EPPROM and user settings, otherwise user settings will be ignored and behave with defaults and no saves// Fan#define FAN_STARTUP_KICKSTART true// True for fan kickstart on boot for a period of time at a pre-defined speed#define FAN_RE_ENABLE_KICKSTART true// True for fan kickstart on fan enable by user from a disabled state for a period of time at a pre-defined speed#define FAN_KICKSTART_DURATION 2000 // Fan kickstart duration in miliseconds#define FAN_KICKSTART_SPEED FAN_SPEED_MAX // Fan kickstart speed (PWM Range Value)#define FAN_MIN_PWM_TO_ROTATE 2 // Min fan PWM value to be able to rotate, to disable set to 0!#define FAN_FIXED_SPEED0// When positive ignores potentiometer and run fan always at a fixed speed, in a PWM range, from 1 to PWM_MAX_VALUE. Switch still applies.#define FAN_ENABLE_USER_SWITCHtrue// True to allow user switch on/fan with push button, otherwise false// System control#if FAN_FIXED_SPEED <= 0#define DELAY_MS 100// Loop delay, repeat, 1s#define DELAY_MS 360000// Loop delay, repeat, 1h#define DEBOUNCE_MS 200// the debounce time for switch interrupt; increase if the output flickers#define ANALOG_SMOOTHING_AVG 0// Smooth analog readings with a average count of x reads, to read once or if use hardware smoothing set 0Boot options, saved on EPPROM:Hold fan switch button while power on the device. Release switch to select the next mode.Code:POWERON_ACTION_DEFAULT = 0, // Power on and respect speed value based on user settingsPOWERON_ACTION_OFF, // Power on with fan disabled, user must enable it manually with buttonPOWERON_ACTION_USELASTSTATE // Power on with last known state, if user had disabled fan it will power on with fan disabled, otherwise will respect and set speed just like defaultVersions:V1 only works with 4 pin fansV1.1 do both and have more connectors possibilities, jumpers, on pcb pot and sw, expansion board headers, two alternative vregs, more compactPlease see pictures to compare (Green is V1, Black is V1.1)Price:Blank PCB: 3€/pcV1 full populated: 18€V1.1 full populated: 19€Shipping EU, registed post: 5€ up to 5PCs, 6€ up to 10PCsPaypal buyer must cover feesDiscount if you want more than 1 unitOptions:Remove T1: -0.9€ (Will work as same for 4 pin fans but not 3 wire fans or reverse protection)Remove VREG and C1/C2 cap: -1.9€ (Will need inject 5V from ext psu, or source your own vreg)POT EXT control box 3d printed with a potentiomer and switch: 5€, and 1€ per cable meter (To remote ajust the fan speed)Choose between VH or XH connectorsNOTE:Potentiometers and VIN switch are not included! They are wired externaly. But can send as spare, they are 10K Linear. Conect leg 1 to OUT on PCB, short leg 2(wiper) with leg 3 and connect to SIG on PCBPOT EXT control box

author: Zucca
author_rank: Unknown
timestamp: July 16, 2019, 12:06:14 am
content: why not a thermocouple or some temperature sense input?

author: sn4k3
author_rank: Frequent Contributor
timestamp: July 16, 2019, 12:19:14 am
content: Quote from: zucca on July 16, 2019, 12:06:14 amIt's a good feature for sure but my project didn't require it. I think about that before Fab the board, but I already ran out of pins on the attiny. PB0 not usable. So options are get rid of T1 or upgrade MCU or use reset as I/O. In fact a attiny 84 or 88 are not much expensive then the 85But if have some requests I can do another version. Thanks for the input