Making a gamepad with the HC05 bluetooth module. Answered
this is my first post here at Instructables :D I really hope someone will be able to help me!
Basically the problem is described in the attached image.
To be short, we have:
- 1x smartphone (Android)
- 1x bluetooth module (HC05 with breakout board GW-040 4 pin SPI)
- some buttons and arrows...
I've already managed to get the HC05 recognized by Windows as a gamepad (modifying the tag using AT commands). The real problem is that i'm stuck with that. I would like to understand how i can connect some buttons (let's say four) that will actually behave like arrows while playing.
As far as i understood i need to use the PIO pins but unfortunately my knowledge stops here.
Theoretically the code behind this is simple:
when the button is pressed the circuit is close and a signal is received by the HC05 who sends the corresponding command via bluetooth.
So if the up arrow is pressed, that pin will receive 1 (closed circuit) and the HC05 will send "UP_Arrow" as an instruction to the smartphone. The problem is how do i write down this code and put it into the HC05? since the gamepad tag is "universal" i guess there is some default code for things like this.
I think it's the same thing they did with the MOGA...
I also read that i could need a SPI-USB Download (something like this ) to use the BlueSuite, that seems like the software needed for this operation.
Thanks for any advice!!
P.S.: Some useful links i found while searching..