Arduino bluetooth HC-05 game controller to control Android games
The ideea is the following: using the Android VR technology (Cardboard or Dive) it was pretty simple to create a basic game (3d world to walk around) using Unity3D and Dive SDK. If you put on the Google Cardboard, the VR experience begins. But still so few devices are on the market, which give you back the control over your smartphone, which now is fixed in front of your eyes.
I want to use this and make a fitness app which will be controlled by running on a treadmill (or using a workout bike). Something like the old Nintendo Wii and the running game from Sports. Or a game like Temple Run, in which running the treadmill faster, gets you faster in the game.
For this I would like to create a game controller which records the leg movements, direction, body position, etc. which would then influence the actions in the game. A lot of details I still need to work out.
So the question is, does anybody know of a guide or tutorial on how to create a game controller like this, using an Arduino a bluetooth module like HC-05. The controller should not be bound to a specific game or 3rd party app, should work like a usual game controller for android (connecting to some bluetooth android game profile?). There are many android game controllers out there which dont need a special android driver/3rd app to control any game. So this has to work somehow.
So how can I programm an Arduino to send (once paired) the same events a bluetooth gamecontroller (or bt keyboard or mouse) sends, which doesn't need any 3'rd party Android app to be able to send basic key pressed events to a random game.
Best regards, F