Hi
I am trying to connect a operate a electrical valve with a esp32
The circuit of the valve is as follows.
https://www.sensoware.com/docs/electric ... ons/sa501/
In this the green has to be supplied with +12 V trigger. So I will connect the +5V output using a transistor.
My question is the feedback output on the blue and yellow has +12V DC.
How should I connect to the esp32 pins which can only accept +5V DC right.
Connecting a electric valve to esp32
-
- Posts: 1701
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Connecting a electric valve to esp32
Since you need to switch the positive +12V, you'll need a 'high-side switch'; one transistor is probably not going to cut it.sksanthosh wrote: ↑Sat Jun 15, 2024 2:10 pmIn this the green has to be supplied with +12 V trigger. So I will connect the +5V output using a transistor.
The ESP's pins accept 3.3V input max. The easiest way would be to use two resistors as a voltage divider. Something in the range of 10k-100kOhm seems reasonable (e.g. 24k + 9.1k, or 62k + 22k).My question is the feedback output on the blue and yellow has +12V DC.
How should I connect to the esp32 pins which can only accept +5V DC right.
Who is online
Users browsing this forum: No registered users and 175 guests