Disclaimer: I know next to nothing about building electronics.
I am trying to control a solenoid (eventually several) but I am running into a big problem. The RPi isn't triggering it. The solenoid fires when directly connected to pin 1 (3V3) but does not fire when connected to pin 18, using the following test program:
Code: Select all
from time import sleep
import RPi.GPIO as GPIO
Using a multimeter I can see that the pin is getting power while the program is running. I thought the Pi might not be able to supply the amperage to run the solenoid directly, so I bought an external power supply and tried connecting the GPIO pin to the base of a transistor, but that still does not work. If I jump the base over to the power supply's positive lead, it fires. I hope my explanation has been clear enough.