Академический Документы
Профессиональный Документы
Культура Документы
instructables (/circuits/) Projects (/circuits/projects/) Community (/circuits/community/) CONTESTS (/CONTEST/) CLASSES (/CLASSES/) PUBLISH (/CREATE/) Let's Make...
circuits
Download Favorite
(/member/witnessmenow/)
By witnessmenow
(/member/witnessmenow/)
More by
Check out my YouTube channel
the author:
(https://youtube.com/channel/UCezJOfu7OtqGzd5xrP3q6WA)
Follow
About: Hey everyone! My name is Brian and thanks for checking my Instructables. I'm a software developer by trade but I've
recently gotten into Arduino development after discovering the esp8266 chip, a WiFi enab... More About witnessmenow »
(/member/witnessmenow/)
Ever wanted to get your Arduino project to act like a Bluetooth keyboard/mouse or
gamepad? If yes, then this is the tutorial for you!
In this Instructable I'm going to show you how to ash your cheap Bluetooth module to
make it a whole lot more useful!
Evan Kale already has an awesome ible on this topic, which you can checkout here (https://
www.instructables.com/id/3-Bluetooth-HID-Module-HC05-With-RN42-Firmware/).
Evan's method involves using a Parallel port to do the ashing of the chip. Parallel ports are
not a common thing found in computers these days so I thought I would share the process I
used to achieve the same thing as Evan's instructable using a cheap USB device so it
should work on nearly any computer.
Teacher Notes
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Turn your HC-05 into a HID Bluetooth device (No Parallel Port Method)
I have made a video where I run through all the steps of the process, so check it out!
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/FYY/CT5J/J8F64BKS/FYYCT5JJ8F64BKS LARGE jpg? (https://cdn instructables com/FHZ/ZIZD/J8F64BKO/FHZZIZDJ8F64BKO
auto=webp&fit=bounds) LARGE jpg?
The HC-05 and HC-06 are really common Bluetooth modules used in Arduino projects,
they are very easy to connect to and are only about $3 each.
They are pretty basic modules though and don't support too many features. They do
however use the exact same chip as modules that are more feature rich, so it is possible to
re- ash them with the rmware of these modules to get the same features. One such
module is the RN-42 (https://www.sparkfun.com/products/12574)
The feature we are most interested in is that the module can work as a HID device. With a
Bluetooth HID module you can connect to your arduino projects to your Cell phone or
computer and get it to behave like a Mouse/Keyboard or game pad device.
It's worth pointing out that the RN42, while it is a bit more expensive than the HC-05,
(about $15 more), there is signi cantly less effort involved in using one directly! So if you
are interested in using a Bluetooth HID module in your project, de nitely consider that as a
good option! Just personally I really like the thought of upgrading something to do things it
wasn't really intended to do!
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/FYY/CT5J/J8F64BKS/FYYCT5JJ8F64BKS LARGE jpg? (https://cdn instructables auto=webp&width=1024&fit=bounds)
com/FIO/W5UE/J8F64RVT/FIOW5UEJ8F64RVT LARGE jpg?
Aliexpress:
Amazon.com
HC-05 Bluetooth Module* (http://amzn.to/2xZK6OT)
FTDI Board* (http://amzn.to/2yvvUy2)
Male Header Pins* (http://amzn.to/2y7bpX8)
Mini USB Cable* (http://amzn.to/2y7hlQ4)
Amazon.co.uk
*= Af liate Links
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/FL0/O2J3/J8F64SPQ/FL0O2J3J8F64SPQ LARGE jpg?
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/F26/NR2P/J8F64SUC/F26NR2PJ8F64SUC LARGE jpg?
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/F2V/7903/J8F64SMS/F2V7903J8F64SMS LARGE jpg? (https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/FJ1/2TB0/J8F64TTQ/FJ12TB0J8F64TTQ LARGE jpg?
First we need to solder the male header pins to the FTDI board as shown in the rst picture
Next we need a way of connecting to the pins on the Bluetooth module that are highlighted
in the second picture.
Evan has this cool trick using a clothes peg that he describes here (https://www.instructabl
es.com/id/3-Bluetooth-HID-Module-HC05-With-RN42-Firmware/#step14) in his
instructable, but I couldn't get the wires to stay in place, so I ended up just soldering 4
different colour wires to the pins highlighted.
We now need to build the circuit for ashing the Bluetooth module, its pretty straight
forward thankfully
Wire it as shown in the image, but here are some additional comments that are important
Make sure that the FTDI Logic Level jumper is set to 3.3V as the HC-05 is a 3.3V device
(highlighted by green in the picture)
Despite being a 3.3V device, you want to connect VCC of the module to the 5V pin of the
FTDI board, the FTDI board's 3.3V pin can't supply enough current to power the module,
and the module has a regulator on the VCC pin.
You can use any resistors even close to the 220 Ohm value, I used 180 Ohm when I was
doing it and it worked perfectly
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/FVA/0530/J8F64Z12/FVA0530J8F64Z12 LARGE jpg?
6 More Images
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/F4H/BRG1/J8F64YZ9/F4HBRG1J8F64YZ9 LARGE jpg? (https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/F08/0RZY/J8F64Z4L/F080RZYJ8F64Z4L LARGE jpg?
Next we want to download and install the different bit of software we need for the ashing
process.
Download
Installation
Blue Suite
Install the Blue Suite software rst (take note of where you choose to install it if you
change it from the default). Its a straight forward installer.
Zadig
Plug your FTDI board into your computer (Note: I had issues ashing when using a
USB hub, so try plugging it in directly to the computer if you can)
Launch Zadig
Select the FTDI module from the drop down (should be called FT232R USB UART)
If you don't see it, go to Options and then List all devices
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/FVA/GSY6/J8F657Q4/FVAGSY6J8F657Q4 LARGE jpg?
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/F5D/M7N5/J8F657Q5/F5DM7N5J8F657Q5 LARGE jpg?
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/FYZ/MKM6/J8F657Q1/FYZMKM6J8F657Q1 LARGE jpg? (https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/FTM/NW6E/J8F657RF/FTMNW6EJ8F657RF LARGE jpg?
The rst thing we want to do is backup the rmware that is currently on the HC-05 module
in case you ever want to return it to its original state, and also we need to backup the
modules current settings.
Go to the start menu again and open CSR Bluesuite 2.6.2 -> PSTool
Select SPI BCCMD and then select your FTDI board in the Port drop down.
Click File -> Dump
Choose a location and a name for the setting le, I recommend keeping it together with
rmware ash.
This will take about 1 minute to backup
You should now be left with 3 les, as shown in the last picture. (dump.xdv, dump.xpv and
dump.psr)
(https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/FDW/LMLJ/J8F65A02/FDWLMLJJ8F65A02 LARGE jpg? (https://cdn instructables
auto=webp&width=1024&height=1024&fit=bounds)
com/FHR/QLH5/J8F65A18/FHRQLH5J8F65A18 LARGE jpg?
When we ash new rmware on these chips, their settings will be overwritten too, but
there is some settings we want to keep. So to do this we create a settings le with just the
settings we want to keep and merge it onto the modules current settings.
Create a new text le beside the 3 les created in the previous step, call it update.psr
Open this new le and also open your settings backup from the previous step (the le
ending in .psr)
Copy the following values from your settings backup to the new le
PSKEY_BDADDR
PSKEY_ANA_FTRIM
PSKEY_ANA_FREQ
Your new le should now contain 3 entries (6 lines in total) as shown in the nal picture
Click File->Save
Checkout Evan's ible again to get the wiring of the RN42 and repeat the process as in the
previous step.
You could also check the comment section of Evans ible as there are some very helpful
people there that can help with this step!
So now we want to take the RN-42 rmware we got in the previous step and ash it onto
the HC-05.
NOTE: Make sure you have backed up the settings as pre the previous step before doing
this, as there is no getting them back after we ash the rmware!
Open PSTool
Go to File -> Merge ...
Select the update.psr le from the earlier step.
Now if you select Bluetooth Address in the list and click Entry->Read Entry, you should
see that it is now the same as the one in your update.psr
Let's run a quick test that it's behaving as expected! I would leave the SPI pins on til you
have tested it at least once!
I'm testing it with an ESP8266 arduino board as it's 3.3V chip so no need for a level shifting
(remember that HC-05 is a 3.3V module) but also because it's capable of running software
serial at 115200, which is now the default baud rate of the modi ed HC-05.
The sketch is just a simple pass-through from the hardware serial to a con gured software
serial.
Open the Bluetooth settings on your phone and search for new devices
Your new name for your device should appear, connect to it. (note that it should also
have a keyboard symbol as its being reconised as a keyboard device)
Test it out!
This is just a simple project to show it working, I have some future projects planned where
this will be more useful!, stay tuned!
I just want to say a huge thanks to Evan again for the original instructions, Evan has some
really awesome projects so you should de nitely check him out!
I hope you enjoyed this project and as always, if you have any questions please let me
know and I'll do my best to help!
I Made It!
Recommendations
Quintcopter Plywood Design. Does It FS-Touch Bed Levelling Tool (/id/FS- SteamPunk Radio (/id/SteamPunk- Internet of Things Class
Fly? (/id/Quintcopter-Plywood- Touch-Bed-Levelling-Tool/) Radio/) (/id/Internet-of-Things-
Design-Does-It-Fly/) by Antzy Carmasaic (/member/Antzy%20C… by ChristineNZ (/member/ChristineNZ/) in … Class/)
by mr_fid (/member/mr_fid/) in Circuits (/cir… 22,062 Enrolled
V |
Add Tip Ask Question Post Comment
28 Discussions
3 replies F
Answer / Upvote
any option to do it with linux?
Answer / Upvote
i get to the point where i can stop the processor and select a file, but the download button stays gray
and i cant click on it
help
Reply / Upvote
i had problems using bluesuit 2.6.9 and ftdi 0.5.3 drivers.. so i change it back to the version in the
video, bluesuite 2.6.2 and 0.5.2 ftdi driveris.. also in the wiring a i used 68 ohm resistor..
let u the link to all software and dump files...https://1drv.ms/u/s!ArYpQqeLr3_FiZ9qemLgRJQbh5aeVQ
(https://1drv.ms/u/s!ArYpQqeLr3_FiZ9qemLgRJQbh5aeVQ)
Answer / Upvote
Hi, I wondering if I can use a arduino as isp instead the ftdi chip?
BuğrahanK (/member/Bu%25C4%259FrahanK/)
(/member/Bu%25C4%259FrahanK/)
Question 1 year ago
Answer / Upvote
Hi , It's a good project . I have a question about that , How can I reach the all of AT command under
the Title of "Setting up the module" .
Answer / Upvote
Does anybody have the Bluesuite software? I tried registering on the CSR website with a gmail
account like on the video but it will not accept my email. If you could send me a Google Drive,
Dropbox, etc... link I would greatly appreciate it.
Answer / Upvote
Whoops, I meant the Dump option is NOT available.
Answer / Upvote
Help, I'm stuck at step 7. Blueflash connects successfully to HC-05, but when I hit stop Processor it
gets stuck saying "Downloading Flash Stub" forever. The Dump option is available either :(
(https://cdn.instructables.com/FPL/XGE1/JB3ZOIP3/FPLXGE1JB3ZOIP3.LARGE.jpg?
auto=webp&&frame=1&width=1024&height=1024&fit=bounds)
2 replies F
Terms of Service (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) | Privacy Statement (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) | Privacy settings | Legal Notices & Trademarks (http://usa.autodesk.com/legal-notices-trademarks/)
(http://www.autodesk.com)