-
1The Arduino Code
- Make sure that you have installed the library keyboard from Arduino.
- Download the document "Projectsubwaysurferfinal.ino" from our page, the code is already written ;)
And that's it !
-
2The Wiring
- You will just have to reproduce the wiring from the document "Wiring.png"
- If this doesn't work you can change it by connecting the SDA of the accelerometer to the SDA of your Arduino, and connecting the SCA of the accelerometer to the SCA of your Arduino
- We strongly advise you to tape the wire up to the card so that it won't move or disconnect !
-
3Security box
- Make the pattern from the file "Pattern". There are no precise measure but you will have to put the Arduino board and the accelerometer in it so make sure it is large enough. Also, we used carboard, but you can use what you want, it just need to be solid.
- For now, use tape to stick the faces of the pattern together (we will remove it later) but let one "door" open.
- Insert your accelerometer and the Arduino card in your box. Don't forget to write on your box the direction of the accelerometer !
- We advise you to tape up the accelerometer and the Arduino card to make sure it won't move.
- Make a hole on the side so that the USB cable can be connected to your card.
- You can now close your box and remove the tape and use glue to stick the different faces.
-
4The button
- Take your arcade button and connect the wire like it is shown in the file "Wiring Arcade Button". Don't hesitate to extend the wire !
- Connect the board to your PC.
On JoyToKey:
- Press the button multiple times, a raw should appear yellow.
- Double click on the raw.
- Click on the upper case (that could be in yellow) and you just have to press the button "up" to make the "⬆" appear. Than click on "OK", at the bottom.
- Don't hesitate to test your button, as it is now connected to your keyboard.
-
5The Hoverboard
- Take the hoverboard without the wheel.
- Take some cardboard and stick them together, so that the width of it is enough to put it under the hoverboard and allow the tilt of it.
- Take some foam that you will glue to the side of the cardboard, don't hesitate to put has much as needed so that you can tilt but also be stable.
Optional : Turn your hoverboard around and now decoration, you can add some grip tape !
- Make a hole of the size of your button on the head or bottom of your hoverboard.
- Pass the button in it and close it using a cap.
-
6The final !
- Finally stick the security box on the hoverboard. Use the direction that you've wrote on the box to not make any mistake !
- Connect your USB cable.
- Run the Arduino code.
- Verify that JoyToKey is on.
And now let's play !
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.