I am having problems wiring a water pump with the Raspberry Pi Pico.
I have the pump connected to a relay which has IN connected to GPIO 12, GND connected to a ground pin, and VCC connected to VBUS. From the relay I have the NO connected to the battery positive and the COM is connected to the water pump positive. Note that the negative of the battery is connected to the negative of the pump.
I just recently asked for help with this question on stack overflow and have discovered it is a wiring issue after using a LED to find that the pin does turn off just for some reason the pump won't. Please help me with this issue.
Here is a wiring diagram
+----------------+ +--------------+
| | | |
| Raspberry | | Relay |
| Pi | | Board |
| Pico | | |
| | | |
| | | |
| VBUS (+5V) |------> | Input: VCC |
| | | |
| GND |------> | Input: GND |
| | | |
| GPIO 12 |------> | Input: IN |
| | | |
| | | |
| | | Output: NO |-----> Battery (+)
| | | |
| | | Output: COM |-----> Water Pump (+)
| | | |
+----------------+ +--------------+
Battery (-) -----> Water Pump(-)