Hi, I've read that I can connect a solenoid to the 5V supply of a Raspberry Pi using a transistor and a diode, so following the recommendation I've bought:
A couple of other questions:
- 5V mini push-pull solenoid
TIP120 Power Darlington Transistor
1N4001 Diode
A couple of other questions:
- Do I need the resistor? I've seen some examples with and without. If so why / how large should it be? This is 1k Ohms
Instead of connecting the 5V Raspberry Pi input to the positive rail of the breadboard, could I keep the Pi just as the controller, and keep the wiring exactly the same as it is but swapping out the 5V to the positive rail and replacing with a battery pack? If so, would the negative side of the battery pack be connected to the ground rail alongside the Raspberry Pi's ground?
Statistics: Posted by flipsterino — Thu Nov 21, 2024 12:22 pm — Replies 0 — Views 10