I am looking for a simple circuit setup for reading external(not PiFace on board buttons) push button event.
I have PiFace and push button, I want to setup a circuit and read button push event using Python 3.
any help will be much appreciated.
I am looking for a simple circuit setup for reading external(not PiFace on board buttons) push button event.
I have PiFace and push button, I want to setup a circuit and read button push event using Python 3.
any help will be much appreciated.
The button idea isn't bad. you could do something similar with a hall-effect sensor and a 'permanent' magnet. This would improve MTBF, probably. I once made a little tank agitator that just had a stepper motor change direction when it reached its limits. Acme screws and drawer slides on plywood. Worked okay, tended to establish nodes, though.
IMHO you should go for an ISR rather than use polling in this application, although either method can be made to work.
The button idea isn't bad. you could do something similar with a hall-effect sensor and a 'permanent' magnet. This would improve MTBF, probably. I once made a little tank agitator that just had a stepper motor change direction when it reached its limits. Acme screws and drawer slides on plywood. Worked okay, tended to establish nodes, though.
IMHO you should go for an ISR rather than use polling in this application, although either method can be made to work.