When I done mine I set it to just above room temp turned the tent fans off so it would heat up faster and turned the tent fans on when cooling just to speed it up
To autotune the control parameters:
Set up the PID controller with all control parameters set to zero:
Create a template button to start autotuning later:
Compile & Upload the new firmware.
Now you should have a climate entity called PID Climate Controller and a button called
PID...
output:
- platform: esp8266_pwm
pin: D1
frequency: 1000
id: pwm_output
inverted: true
min_power: 0.0 // this changes min fan speed
max_power: 1.0
auto tune can take a while depends on your setup. run log from esphome and push auto tune button and just wait till it...
do you want it to control fan speed 1-10?
i haven't compiled this in esphome
sensor:
- platform: rotary_encoder
name: "Rotary Encoder"
pin_a: GPIO##
pin_b: GPIO##
min_value: 0
max_value: 10
resolution: 1
filters:
- debounce: 0.1s
on_value:
then...
red wire from controller to dc - out
black wire to dc- input
connect (SIGNAL GND) to the other ground i just twisted them together and soldered
connect (SIGNAL PWM+) to D1
the wires from the old potentiometer connect one in each side of the mossfet board
Rotary Encoder
pin_a: D2
pin_b: D3
rotary button
pin: D4
connect the grounds together and solder to ground
It uses the climate pid controller from esphome so you can search that and it tells you about auto tune and other parameters you can set. I have the bang bang climate controller from esphome turning on a ac and heater
ok here's the code just modify it to suit
when its connected to the fan
set the pid controller in home assistant a few degrees lower than your temp
run the auto tune and watch the output logs in esphome
might take some time it depends on your setup but at the the end it should say some shit...
I’m away for work till the end of week. I’ll post the code on here when I’m home, just kept the controller because I got a few d1’s laying around and it fit perfectly. The code is temp based it pulls temp sensor data from ha.
MOSFET board is MOSFET Trigger Switch Driver PWM Control Board Module just type that in eBay and the rotary encoder is Rotary Encoder 360 Degrees KY-040 Module Brick Sensor With Push Button Switch