58Views2Replies

Author Options:

How to connect a physical pushbutton to a display to trigger an animation. Answered

I'm trying to figure out how I would set up a physical pushbutton so as to trigger an animation once pushed. 

The programming language I'm using is processing, and the content would be played on a 32" screen. 

So I'm trying to figure out what type of hardware I would need (circuit boards, pushbuttons..etc) in order for this to work. 

Thank you in advance to anyone that offers some advice. 

P.S. I also have little knowledge in programming this is a project so I can become more familiar with it. Thanks!! 

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
caitlinsdad
caitlinsdad

4 years ago

I think the easiest thing for you to do is to hack an old keyboard or numeric pad going into the computer. You can solder a bigger arcade switch to one of the key contacts or fancy it up however you want. You could also do with a spare mouse but it would be easier to distinguish other keypress codes in your programming without taking functionality away from the actual use of the mouse. You can look up projects here on "USB switch".

You could go with a microcontroller like arduino and wire up a switch which provides a sensor interface to tell when a switch is pressed and then passes the message along through USB to the computer. The Processing program looks at the USB serial bus input and determines what to do next like run the animation. A computer keyboard has all the electronics built in so when you press a key the computer knows what key was pressed.

Good luck.

0
Downunder35m
Downunder35m

4 years ago

So you are saying that you have no clue about any part of what you want to do?
Don't get me wrong but I started to learn with the basics and not by starting a project I don't even know how to start.
Begin with simple example codes to understand how it works, play with buttons to make a LED go on and similar.
Once you know at least the basics you can move on otherwise all you do is asking someone else to do all the work for you without really being able to understand it.
And I never heard of processing as a coding language, usually people start with Basic, VB, C, C++ or by simply using an Arduino and lerning through all the examples that are well documented on the web and in tutorials.