2

So I am using 8 AA 1.5V batteries that is wired to my 12V 16 channel relay which is wired to my Rpi. I want to be able to control 16 solenoids and use the relay as a switch for the solenoids. As far as my understanding goes the relay channels are "open" when the LED for that channel lights up, which would "trigger" the solenoid, but that's not happening. The solenoid works fine when I connect it straight to the 8AA battery pack and "triggers".

Even when I'm using a voltage regulator( https://fyndiq.se/product/7442400-dc-dc-step-down-omvandlare-med-lm2596/) as an intermediator between the battery pack and the solenoid, the output V is showing 5V and the solenoid is triggering. What should I try next?

16 channel 12V Relay: https://www.amazon.com/dp/B0057OC66U?ref_=pe_2640190_290165290_E_304_dt_1

12V Solenoid: https://www.amazon.com/dp/B00LBQ229Y?ref_=pe_2640190_290165290_E_304_dt_1

enter image description here

1
  • Your battery pack is too weak for solenoids. Suggest to use a 200VAC to 12VDC 5A+ for so many solenoids. Or use a LiPo power pack, which lasts longer than AA batteries. Lipo can recharge, so saves money! :)
    – tlfong01
    Sep 15, 2019 at 12:52

1 Answer 1

3

From the picture of the wiring I dare say that there is no connection to the 12 V power supply. So the circuit is now just a switch and the solenoid. Without a voltage source the solenoid is not going to do much.

From the product description you can tell that the operating contacts of all releays are not connected to anything - which is by the way the most sensible approach as it allows to use all relays independently:

enter image description here

You need to connect the 12 V power supply, the relay's contact and the solenoid in series to get it working, see e.g. Seamus' answer here, which is also the source of this schematics (note that the ground (GND, the "triangles") close the circuit between the power supply and the solenoid):

schematic

8
  • This is my setup imgur.com/E6VaG9u Doesn't the Relay provide power to all the 16 channels, so it would be sufficient to just wire the solenoid to the channels? @Ghanima♦
    – Leobd
    Sep 15, 2019 at 12:10
  • @Leobd, The connection is something like this. (1) 12V+ to COM, (2) NO to one end of solenoid, (3) Other end of solenoid to 12- (Can connect to 5V common ground): i.imgur.com/xbV4rri.jpg.
    – tlfong01
    Sep 15, 2019 at 12:39
  • @Leobd might take 250mA or more. Another picture showing the connection:(1) raspberrypi.org/forums/…, Your solenoid may take 250mA or more: (2)Solenoid Currrent: raspberrypi.org/forums/…
    – tlfong01
    Sep 15, 2019 at 12:42
  • 1
    @Leobd, And remember to connect your flyback diode across the solenoid (see my pic). Once I forgot that, the back EMF fried my LM2596 PSU, at the same "flew" across to the other side, so the other whole AC200V/12V, 12V to 5V PSU all went out (transient over current or soething), all went dark. Luckily the other side just auto over current protection cut off, and could reboot OK.
    – tlfong01
    Sep 15, 2019 at 12:59
  • @Leobd. The story how I fried two power supplies because I forgot the flyback diode: raspberrypi.org/forums/… There is also of list of schottky diodes to select from. You may also notice in one of my solenoid schematics that I never start testing motors or solenoid with Rpi. I always start with manual jumper wire signals, then NE555 timer output pretending to be Rpi GPIO, and photo coupler to prevent transients flying back, also snobbers for AC200V PSU. "An ounce's prevention is better than a ton's cure, ..."
    – tlfong01
    Sep 15, 2019 at 13:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.