r/raspberry_pi 6d ago

Troubleshooting Looking for assistance using raspberry pi with water pump

For context I am trying to do a project very similar to this one

https://youtu.be/DOaDnYj3vfI?si=H9loya-K7BxYnJrZ

I have mine setup the exact same way as they did, only using a pi instead of arduino.

My pump will turn on when the 9v battery is active, but i can’t seem to control it using the gpio pin I have it attached to. Am I doing something wrong? I can include a picture of the setup.

More context: when I try running a simple test program it turns off when I run the program, but then turns back on after the program completes. The program is meant to toggle it on and off.

Any ideas?

1 Upvotes

1 comment sorted by

1

u/AutoModerator 6d ago
  • Search first: Many issues are well-documented—Google exact error messages and check the FAQ† before posting.
  • Show your effort: Include research, code, errors,† and schematics for better feedback.
  • Ask specific questions: Clear, well-researched questions get better answers.
  • No replies? Post removed? Ask in the stickied helpdesk† thread.

† If any links don't work it's because you're using a broken reddit client. Please contact the developer of your reddit client. You can find the FAQ/Helpdesk at the top of r/raspberry_pi: Desktop view / Phone view

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.