Close

The accelerometer

A project log for Subway Surfer game controller

Immersive Subway Surfer controller: Stand on a real hoverboard to control the game with realistic motion!

ccinourCéciNour 12/10/2024 at 10:050 Comments

19/11/2024

While researching similar projects, we discovered a student project where an accelerometer was used to control a game. In their setup, the component was housed inside a box. Inspired by this approach, we came up with the idea of integrating an accelerometer directly onto a real skateboard to enhance functionality and realism.

We found the wiring on the official website of Arduino 


First searching of code:

We searched and tried many accelerometer code to understand their functioning. 

1) We download the sparkfun library. However, we found out that it wasn't working because the model of the accelerometer wasn't the same. (here for ADXL345)

Note: We considered an alternative idea of placing the accelerometer on a glove instead of the skateboard. The glove would be used exclusively for jumping ("up") and dodging ("down") actions, while the skateboard would have two buttons positioned at the bottom to handle the right and left movements.


Wireless Gaming Glove with Arduino

Discussions