Making a gamepad with the HC05 bluetooth module.

Hi guys! 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.. http://dextersstory.tistory.com/3 http://dextersstory.tistory.com/10 http://dextersstory.tistory.com/11 http://dextersstory.tistory.com/16 http://www.martyncurrey.com/arduino-with-hc-05-bluetooth-module-at-mode/ https://developer.mbed.org/users/edodm85/notebook/HC-05-bluetooth/ https://www.sparkfun.com/datasheets/Wireless/Bluetooth/rn-42-ds.pdf http://cdn.sparkfun.com/datasheets/Wireless/Bluetooth/RN-HID-User-Guide-v1.0r.pdf http://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf

Topic by HarryValenti   |  last reply


Interfacing HC 05 with Atmega?

Somebody please tell me the code to turn ON and OFF a Led on atmega8 board using hc 05 Bluetooth module Some what like this

Question by Mayoogh_Girish   |  last reply


Arduino bluetooth control

So, I've been on a project where i am trying to use a generic bluetooth gamepad to control dc motors through a HC05 bluetooth module connected to an arduino. I have no idea on where to start. I did some research about it but there dosent seem to be much information thats appropriate for this project. here is what im using now: -ipega bluetooth controller -arduino mega 2560 -HC-05 bluetooth module

Topic by thomasmanman   |  last reply


Aduino Bluetooth code problem!

I am building a Morse Code machine with bluetooth functuonality.  It is in the early stages at the moment but I have hit a problem. My code uses a button to input Morse code which is displayed on an LCD and flashes an LED on pin 5, but also incorporates a bluetooth HC05 which controls an LED on pin 13. Seperately, they work fine but I wanted to merge the two sketches. I have succeeded but for one small problem. When pressing the LED 'ON' button on my android app, the LED only comes on after the Morse code button has been pressed. And it works the same way for the LED 'OFF' function on the app. Press it, then press the Morse code button and the LED switches off again. This repeats. I cannot figure out why this button is controlling the Bluetooth LED command signal. I have changed baud rates of the bluetooth but to no joy. I have attached my code. Can anyone help me solve this problem?!?

Topic by Satans Thong