PWM speed control for four Posung 24 V DC scroll compressors using a CONTROLLINO MINI.
The Controllino Mini only has three hardware PWM outputs (D1, D2, D5). This firmware drives all four compressor PWM inputs with matched 400 Hz software PWM (compressor 4 on D0) so behaviour is identical across units.
| Path | Purpose |
|---|---|
| docs/PLAN.md | Implementation plan, pin map, power rules, commissioning |
| docs/WIRING.md | Signal / STB / level-shift wiring |
| src/posung_pwm_control.ino | Arduino sketch for CONTROLLINO MINI |
- Install Arduino IDE + Controllino board package and the
Controllinolibrary. - Select board CONTROLLINO MINI.
- Open
src/posung_pwm_control.inoand flash over USB. - Wire per
docs/WIRING.md(motor power separate; PWM/enable only on the PLC). - Serial Monitor at 115200 baud:
help
spd all 40
on 1
status
off all
- PWM frequency: 400 Hz
- Capacity 0–100 % → positive duty 20–80 %
- PWM pins:
D1,D2,D5,D0 - Enable pins:
D3,D4,D6,D7
- Fuse each compressor on the +24 V power feed. Never route motor current through the Controllino.
- On the Mini, relays share
D0–D5— leave those relay terminals unused while PWM runs. - If PWM IN is specified as 9–16 V only, use open-collector level shifting (see wiring doc) and set
PWM_ACTIVE_HIGHaccordingly.