Jump to content

Raspberry pi button without breadboard

Go to solution Solved by genxha,

Simply connect 1 wire from button pin to ground and the other to any other pin except 3v/5v. For library you can use GPIOzero that's very good.

There's a LOT of projects on Google.

Hey everyone, as the resident computer guy/python programmer I've been tasked to make a small box that when a button is pressed will speak out a phrase using a speaker. So far I've chosen a raspberry pi zero w and a hdmi audio adapter but being new to the whole gpio thing I've come here to ask if it would be possible to get a momentary switch like this and wire it directly into the pi without a breadboard (due to space limitations) or anything but still maintaining software interaction.

Thanks in advance.

I'm a python programmer and I play trombone

Link to comment
Share on other sites

Link to post
Share on other sites

yes, you just need some small wires (and probably a resistor) to solder to the button and gpio headers

Link to comment
Share on other sites

Link to post
Share on other sites

6 hours ago, elpiop said:

yes, you just need some small wires (and probably a resistor) to solder to the button and gpio headers

Being new to this can anyone provide a circuiting diagram and/or point me in the direction of which python library i should use to receive input use? If so that would be greatly appreciated

I'm a python programmer and I play trombone

Link to comment
Share on other sites

Link to post
Share on other sites

Simply connect 1 wire from button pin to ground and the other to any other pin except 3v/5v. For library you can use GPIOzero that's very good.

There's a LOT of projects on Google.

Link to comment
Share on other sites

Link to post
Share on other sites

9 hours ago, genxha said:

Simply connect 1 wire from button pin to ground and the other to any other pin except 3v/5v. For library you can use GPIOzero that's very good.

There's a LOT of projects on Google.

Although there are a lot of projects on google I was thinking the code would be different without a breadboard, in hindsight that's stupid

I'm a python programmer and I play trombone

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×