0

I have an HTML5 ping pong game. You can check it out at (http://pong.hackrdojo.com/). How do I make a controller, where I can use a breadboard interface with two buttons all linked to an Arduino microcontroller for moving the paddle up and down?

3
  • You'll probably need to build a browser extension/plugin to communicate with the controller. Commented Sep 26, 2012 at 23:50
  • 1
    Check out github.com/rwldrn/johnny-five Commented Sep 26, 2012 at 23:50
  • @Aknosis that link looks amazing! Thanks a lot bud! Commented Sep 26, 2012 at 23:57

2 Answers 2

2

An even easier method is to buy an arduino leonardo board (cheap on ebay). There is demo code to create a keyboard.

  1. Map your pots and switches to a specific key like up down on keyboard etc.
  2. If you are using windows you could then use a program called glovepie that lets you set up profiles to remap the key for the specific key to the game to save reprogramming the arduino for each game.

Have fun making out there game controllers. That's how I did it and it works beautifully.

1
  • Are there any links you could provide that might be helpful? Commented Jan 3, 2013 at 23:30
0

Right now I am going with Aknosis' solution of using Johnny Five(https://github.com/rwldrn/johnny-five)

I am open to any other alternatives.

2
  • Johnny Five looks great, but isn't it server-side js? I thought you wanted to interface with the browser. Commented Sep 27, 2012 at 0:04
  • Yeah, this would mean doing push a command from the Arduino to the server and from the server I push it to the client side. I guess the other alternative would be to write my game in C and but where is the fun in that? :) Commented Sep 27, 2012 at 0:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.