9
submitted 1 week ago* (last edited 1 week ago) by Vincentvd@lemmy.ml to c/diy_electronics@lemmy.ml

I am trying to get a solenoid water valve to work with my raspberrypi pico and python. The system works with a LED but when I swap the led with the valve, add the diode and switch the power to 5v (external, not pico), the valve does not open. When I use a voltage meter, I can measure a resistance for a short moment when connect to the valve so I suppose it functions?

Below is the schematics (the triangle thing represents the solenoid valve). The diode is a 1N4007

The valve has a pulse with of 30ms at 5V so I programmed a PWM to open 30ms and then 200ms (I tried to follow this tutorial: https://learn.adafruit.com/use-dc-stepper-servo-motor-solenoid-rp2040-pico/solenoids )

Am I missing something?

you are viewing a single comment's thread
view the rest of the comments

Of course. Let me know how you're getting on.

this post was submitted on 15 Oct 2025
9 points (100.0% liked)

diyelectronics

530 readers
1 users here now

founded 3 years ago
MODERATORS