Hi,
I bought Bluno Beetle [Bluno_Beetle_SKU_DFR0339-DFRobot] for persolnal project, I would like to build a bluetooth mouse, but I cannot find any example of using this board as mouse device even if this board provided HID "option" to do this.
A DFRobot Beetle can make use of Mouse.h and Keyboard.h because it's (basically) a Leonardo.
But the BlunoBeetle has a 328P, so it's more like a 'Uno' - and cannot use those libraries.
OK, thanks, but can I use different library? I doesn't matter for me which library for HID Mouse I will use I need one which will works with this board.
Those libraries work with the Leonardo because they program the 32U4 USB chip and the PC then sees it as a mouse or keyboard (HID peripheral).
I don't know of anything similar for Uno-related boards.
What's the bluetooth angle though? I know BT keyboards have a matching BT usb dongle for PC connectivity and all, but what's the big picture for your project?
I thought that in my case, it should be a standalone device with magnetic dock, it should communicate via BT and has own power, then I would be able to use it separetly as kind of "remote controll" when I need only a mouse. For the standard work, it could be docked to the keyboard.
Hello. I'm looking into a similar project to create a Bluetooth mouse using a Bluno. I did some research and came up with a rough plan.
The Bluno uses the same microcontroller as the Uno, so you should be able to load the Uno's HID mouse library. To do this, you must flash a new bootloader to the Bluno.
Connect to the ICMP pads on the Bluno Beetle and some other boards using DFRobot eClip (https://www.dfrobot.com/product-1307.html) Connect the eClip to another Arduino board (an Uno for example). Use Nick Gammon's Bootloader Programmer utility (Gammon Forum : Electronics : Microprocessors : Atmega bootloader programmer) The utility includes many popular bootloaders. You open the Programmer utility in Arduino IDE. Upload the Bootloader Programmer as a sketch. Open the Serial Monitor window and follow the instructions there. These steps install the bootloader to the MCU (like a 328). Use the BlunoFWDownloader (there is a Mac OS X version too) to install/update the bootloader in the cc2240 chip (this provides the BLE wireless and USB connection to the MCU).
This tutorial video was also helpful: https://www.youtube.com/watch?v=hq_KQwfpajA. It doesn't deal with Bluetooth but does explain flashing the bootloader and uploading your sketch.