Electronics > Projects, Designs, and Technical Stuff

How to detect actuator feedback voltage using Arduino/esp32?


I am operating motorized ball valve using ESP32 and relay module, ball valve has two feedback voltage to detect close and open position of valve, there are two output wires one to detect close state and one to detect open state of valve. see below image.

My question is how to collect feedback using Arduino/ESP32 to detect open/close state of valve ?
Open state voltage between "R1(BLUE) and Negative(BLACK) will be 24v DC
Close state voltage between "R2(YELLOW) and Negative(BLACK) will be 24v DC

The blue and yellow wires tell the state of valves except that they're 24v rather than the 3.3v you need.  Connect a voltage divider to blue and yellow that is 100k on the top and a 10k on the bottom going to black.  Take your output from the junction of the two R's to the ESP.    This a 11 to 1 divider and will safely give you a logic high when there is 20-30v (24v nominal) on these lines.  Before connecting ESP, use a voltmeter to verify that you don't have a wiring error and you get either 0v or >2.4v in the two valve states.


[0] Message Index

There was an error while thanking
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod