I have a motor which has 3 pins (Open | Ground | Close) for heating system and i would like to use a PID with Arduino but i need it with relais because the motor is for 230V.
Example: Outsidetemperature < Watertemperatur --> open motor with relais until Watertemp is = Outsidetemp.....
I am already that far but when i only open and close it than it is a P - and not a PID Controller so the motor always opens and close and will not stop in the way i PID can do this
Looking at your prior thread, the only way you can know the position of the valve is to fully close it and then keep track of every open/close action you do.
Given that, you can use your set point and actual temperature to run a PID. You can set output limit to 140 and the PID output will represent how many seconds of opening the valve should currently have. Based on how open the valve currently is (which you're keeping track of), you open or close the valve to match.
Given how long it takes to move the valve, you should set the update time for the PID to be rather longer too.
Hi,
I would not connect the centre to gnd, that uses active and neutral.
Mains systems do connect neutral to gnd, but at the fuse/meter box.
The motor will be a 2 phase motor with a phase shift capacitor that is connected so the motor changes direction when either end of the capacitor is made active.
Like this;