Thursday, April 21, 2016

Connecting a 24v appliance to Raspberry Pi.

Hello, I am trying to do an Internet of Things project with the help of a Raspberry Pi. While most of the project is complete, there is one small thing I am stuck at. I need to connect a solenoid valve to the Pi. The valve needs a voltage of 24v-36v to operate. I connected three 9v batteries together in series to operate it. The valve opens when the voltage is applied and closes when it not. I want to control the opening and closing of the valve by the Pi's GPIO pins. I'm using a NPN 2N3904 transistor for that. However, it's not working. The circuit works sometimes and doesn't work other times when I manually pull and put in the GPIO pin. It never works with code. Is the 27v causing problems with the Pi? What can I do? Is there another way to control it apart from NPN transistors?


from xda-developers http://ift.tt/1Sw2KAf
via IFTTT

No comments:

Post a Comment