JakeM
Posts: 11
Joined: Thu May 14, 2015 4:26 pm

Push Switches are not working

Thu May 14, 2015 4:44 pm

Hi,

I bought the Raspberry pi 2 and some accessories with it.

Thing is that I'm following a book's instructions (Adventures) and once running the Python Program the buttons do not work at all. I've tried the Switch.py too but nothing outputted.

Image

Image

Image


Any help is appreciated!!

Thanks!

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13142
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Push Switches are not working

Thu May 14, 2015 7:32 pm

this isn't rocket science, if you replace the switch by holding two wires together (or not), and it doesn't work then its in your code or circuitry, otherwise you are wiring the push switches up wrong..... :mrgreen:

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Push Switches are not working

Thu May 14, 2015 7:58 pm

In the pictures you have posted there do not seem to be any connections to the push switches. Is that a deliberate omission?

JakeM
Posts: 11
Joined: Thu May 14, 2015 4:26 pm

Re: Push Switches are not working

Fri May 15, 2015 8:59 am

B.Goode wrote:In the pictures you have posted there do not seem to be any connections to the push switches. Is that a deliberate omission?

That's on purpose for a clear shot! The circuitry was fully wired up when tested.

gordon77
Posts: 5075
Joined: Sun Aug 05, 2012 3:12 pm

Re: Push Switches are not working

Fri May 15, 2015 9:08 am

It would be an advantage to see how you wired them

Gordon

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13142
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Push Switches are not working

Fri May 15, 2015 9:10 am

A "clear shot" is worthless if it tells us nothing!
Use a single larger picture of the whole setup of all the wiring, and we might be able to spot a wiring mistake.
Also, use the [Img] tags, and place [size] tags around it using the "Normal" drop-down menu, to set the picture size to "huge".

Again, this is simple material, examples on how to do it can be found everywhere.

P.S. why does your PI look if its made of white cardboard?

Return to “Troubleshooting”