Using sparkfuns bluetooth modem bluesmirf hid to interface between an arduino pro mini and a desktop computer as an human interface device hid. I just got my rn42 hid bluesmifr module in the mail today, and i cant figure out how to get it into mouse mode. Hc05rn42 arduino bluetooth hid adapter project advice. The silvers use the rn42, and the gold uses an rn41.
The rn42 ek is a fully certified class 2 bluetooth evaluation kit for the rn42 module. The version with the integrated antenna has a theoretical transmission range of about 1520 meters. This users guide describes how to use the rn41ek and rn42ek evaluation boards. This is extremely attractive because it means a device can connect, tell the host its a keyboard or whatever, and start sending keypresses or whatever immediately, without needing extra software or drivers or anything. Hid, or human interface device, is the communication protocol used for computer peripherals such as keyboards, mice and joysticks. Rn42 module loaded with human interface device firmware license information the hardware is released under creative commons sharealike 3. In part 2, iw shows how to verify that a serial connection via the rn42 works.
The bluesmirf hid is essentially the same board as the bluesmirf silver but the populated rn42 comes loaded with the hid firmware. I already flashed the rn42 firmware to my module and it seemed to work. I tried to looked for tutorials but all i could find were on eb500 instead. Any serial stream from 2400 to 115200bps can be passed seamlessly from your computer to your target. Peter is right, its very easy with a rn42 with hid preloaded, it can be bought from sparkfun standalone or even. A global provider of products, services, and solutions, arrow aggregates electronic components and enterprise computing solutions for customers and suppliers in industrial and commercial markets.
Bluetooth mate silver is meant to plug directly into an arduino pro. I would like to make a bluetooth hid gamepad with 2 analog joystick with 2 axis, a dpad and 8 buttons button 1 to 4, button start, button select, 2 trigger buttons left and right. The master will typically fail to pair with the slave if they are powered up simultaneously. Arduino forum using arduino programming questions rn 42 bluetooth hid mouse. I have tried a few tutorials online, but as of now, no luck. The bluetooth hid profile allows users to control the hid descriptor, which defines the devices feature set, and. Theres no way to configure the rn42 from the serial port side and, obviously, until it connects. I have a rn42 bluetooth module with hid features, now how do i use it to connect to a dualshock 3 or 4 controller with an arduino.
Additionally, microchip has extended the basic hid capability to allow programmability and control of devices like the ipad, for example. The rn41 is a class 1 bluetooth module, so it can communicate at up to 100 meters, but it also. The primary difference between the rn42 and rn41 is that the rn42 is a class 2 device meaning its range is about 50 to 60 feet and correspondingly the power consumption is reduced. The silver and gold designations of these modules indicates whether they use an rn42 bluetooth module or an rn41. By continuing to use pastebin, you agree to our use of cookies as described in the cookies policy.
For this project im using the pro micro board of sparkfun and the bluesmirf hid, a breakout board with rn 42 hid bluetooth module. You can use this app to communicate with serial bluetooth devices like the rn 42. The connection process can be completely software controlled if desired. Since the dualshock 3 pairs only to a particular mac address, how to store the rn42 mac address into the ps3 controller. A bluetooth rn42 demoboard for experimentation open. The module supports both spp serial port profile and hid human interface device operation mode and implements an effective mechanism for reducing. Rn42 bluetooth electrical engineering stack exchange. These modems work as a serial rxtx pipe, and are a great wireless replacement for serial cables.
Overview this chapter describes the hardware and software setup for rn41 and rn42 evaluation kits. Rn42 bluetooth module advanced users manual parallax inc. My advice would be to forget the hc05 and get something that does hid out of the box, like the rn42 itself. Mouse bluetooth usando arduino uno e modulo roving rn 42 hid.
This version of the popular bluesmirf uses the rn42 module which has a bit less range than the rn41 module used in the bluesmirf gold. I am trying to create a basic keyboard i can play with on an ipad air. Rn42 bluetooth evaluation kit rn42 ek not recommended for new designs. If not see the arduino website for usable software serial pins. License as published by the free software foundation. In line ending just use 0d instead of 0d 0a mind you before sending anything, your bluesmirf should be in the hid mode, i cant see that part in the code posted above. I connected it to my arduino mini pro, connecting the bluetooth module rx and tx to digital pins. There are solutions out there, but not that cheap or easy to order within germany, except the rn42hid maybe. The rn42 is perfect for short range, battery powered applications.
Rn42rn42n class 2 bluetooth module with edr support. Hid, or human interface device, refers to the device providing the service of human data input and output to and from the host. We use cookies for various purposes including analytics. Interfacing two arduino boards using rn 42 bluetooth. The bluetooth mate silver is designed specifically to be used with the arduino pro, arduino pro mini or lilypad arduino. I soldered the bluesmirf and connecting to arduino uno.
Interfacing two arduino boards using rn42 bluetooth presented by. Rn 41 bluetooth evaluation kit rn 41 ek the rn 41 ek is a fully certified class 1 bluetooth evaluation kit for the rn41 module. Cheap arduino bluetooth hid module hc05 with rn42 firmware hack arduino makers and hobbyists will appreciate this one. The rn42ek is a fully certified class 2 bluetooth evaluation kit for the rn42 module. At the moment barely manage to get the module to pair with osx but only through using bluetooth setup assistant and using passcode e a specific code. This is generally achieved by finding a pirated binary of the firmware from the more expensive rn42 bluetooth unit and flashing it onto the cheaper but identical hardware of the hc05. Rn42 bluetooth evaluation kit rn42ek not recommended for new designs.
Arduino stack exchange is a question and answer site for developers of opensource hardware and software that is compatible with arduino. Instead of sending it from arduino, first try it via coolterm, with 3ms inter character and 3ms inter packet delay. The default mode of the bluesmirf hid is as a keyboard which is very easy to set up, but you can also use it in hid raw mode see user manual to send keyboard, mouse, joystick combos. The rn42 uses only 26ua in sleep mode while still being discoverable and connectable. To demonstrate the basic capability of the bluetooth hid profile, roving networks has developed a bluetooth reference design implemented in the rn42 module. Im currently trying to build a bluetooth gamepad for my phone, so i found that website which describes how to make a hid compatible btmodule from a hc05 module. Rn 42 bluetooth hid mouse read 14810 times previous topic next topic. But 20euros versus 5euros still makes a difference. When connected, the green led on the rn42ek will turn solid green. With this option, the module pairs, but the connection resets about every 5 seconds. Where should i insert the bluetooth module into the board. This document describes the reference design and how to use it.
You can use this app to communicate with serial bluetooth devices like the rn 42 that are used for arduino projects and other custom projects. So if you truly have a rn42 module with hid611 firmware. The host driver software decodes the raw hid report and passes the key values to the application running on the pc. In this video we will be looking at how to pair an android smartfphone to the bluetooth device and how to send via serial, rs232, text from the. This video shows the commands to configure the rn42 bluetooth module. Arrow electronics guides innovation forward for over 200,000 of the worlds leading manufacturers of technology used in homes, business and daily life. Interfacing two arduino boards using rn 42 bluetooth 1. Here i am goint to set the rn42 bluetooth module to 9600 baud, spp profile, pin authenication and the pin code, and slave mode. I have bought a second new bluesmirf mate silver to confirm my issue.
1470 367 1092 1340 153 1050 1179 82 1437 385 627 20 1419 131 892 1257 616 396 122 1388 115 546 1183 83 1464 1452 1056 428 376 621