Raspberry pi and Proportional valve 24v dc that needed a pwm controller module

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
julumiclat
 
Posts: 1
Joined: Thu May 11, 2023 1:17 am

Raspberry pi and Proportional valve 24v dc that needed a pwm controller module

Post by julumiclat »

Goal is to control A 24V DC proportional Valve(Water) using Raspberry Pi 4 Model B and PWM Controller

This is the Proportional Valve link
https://tameson.com/products/255718-sol ... 8bar-24vdc
and its connector(DIN-A)
https://tameson.com/products/af-cal3m-s ... meter-cord

I found a youtube video that uses PCA9685 but Im not sure in this one but I need a 24v DC PWM controller
https://www.youtube.com/watch?v=9jcEwn7GzNs

please let me know if you have any suggestions thank you so much

P.S First time posting so I dont know any rules here.

User avatar
barshatriplee
 
Posts: 200
Joined: Wed Mar 22, 2023 10:11 am

Re: Raspberry pi and Proportional valve 24v dc that needed a pwm controller module

Post by barshatriplee »

To control a 24V DC proportional valve using a Raspberry Pi 4 Model B and a PWM controller, you can follow these steps:

Select a suitable PWM controller that can handle a 24V DC voltage and provide the necessary control signals for your proportional valve. The PCA9685 mentioned in the YouTube video you found may work, but it is important to verify its voltage compatibility and current rating.

Connect the PWM controller to the Raspberry Pi 4 Model B using the appropriate interface (e.g., I2C, SPI). Refer to the datasheet and documentation of the PWM controller for specific wiring instructions.

Power the PWM controller with a separate 24V DC power supply. Make sure to connect the ground (GND) of the power supply to the Raspberry Pi's ground to ensure a common reference.

Connect the output of the PWM controller to the proportional valve. Refer to the documentation of the valve to understand the required connections. The DIN-A connector you mentioned may be compatible, but double-check the pinout and wiring requirements.

Write a program or script on the Raspberry Pi to control the PWM signal using the PWM controller library. The PCA9685 library for Python is commonly used and can be installed using the pip package manager.

In your program, define the desired duty cycle or pulse width modulation (PWM) values for the proportional valve. These values determine the position or flow rate of the valve.

Test and calibrate your setup by gradually varying the PWM duty cycle and observing the behavior of the proportional valve. Fine-tune the PWM values until you achieve the desired control of the valve.

Remember to always follow safety precautions when working with high-voltage circuits and consult the documentation and specifications of the components you are using. It's also a good idea to refer to the manufacturer's guidelines for wiring and controlling the specific proportional valve you have chosen.

User avatar
adafruit_support_bill
 
Posts: 88041
Joined: Sat Feb 07, 2009 10:11 am

Re: Raspberry pi and Proportional valve 24v dc that needed a pwm controller module

Post by adafruit_support_bill »

The website for your valve also lists compatible 24v controllers. https://tameson.com/collections/proport ... ontrollers

An alternative would be something like the DRV8877 to drive the solenoid coil: https://www.adafruit.com/product/3190

The PWM signal can be output directly from one of the Pi GPIO pins. Or you can use a PWM generator chip like the PCA9685: https://www.adafruit.com/product/815

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”