How to detect actuator feedback voltage using Arduino/esp32?

Thread Starter

MrNams

Joined May 20, 2023
21
Hello,
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


Sa502-24vdc-5-wire-with-feedback.png ‎- Photos.png
 
Last edited:

Ya’akov

Joined Jan 27, 2019
8,505
Welcome to AAC.

I can’t really understand your question because the answer to the plain version of it is so obvious. What difficulty are you having in working out how to do this? Where are you getting stuck?
 

Thread Starter

MrNams

Joined May 20, 2023
21
How to measure 24v DC in ESP32?
1) using voltage sensor.
Interfacing-diagram-of-the-voltage-sensor-with-ESP32.jpg
2) Using Optocoupler Isolation
PC817-Optocoupler-Isolation-3.jpg
3) Using voltage divider resisters
ca0433a6920db19d900cdbacc4a2123f5f6a939c.gif
Which is most efficient to detect 24v dc?
 
Top