Bluno Beetle DFR0339 - how to use it as bluetooth mouse?

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.

Example of my code: https://pastebin.com/zE6dns5F

Standard library Mouse.h from Arduino doesn't work, because this board is recoginzed as UNO borad and this library is not compatibile.

ERROR: Does your sketch contain the line '#include <Mouse.h>'? 

Can you guys help me with this? Can you tell me which library can I use?

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.

PE - Adding Link
Beetle Board - Compatible with Arduino Leonardo - ATmega32U4 - DFRobot

1 Like

OK, thanks, but can I use different library? I doesn't matter for me which library for HID Mouse I will use :wink: 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.

Thanks for information :slight_smile:
I found one solution for Arduino UNO board, but I'm not sure if it's possible to make this mod on my Bluno Beetle board.

I attach this link for someone who will maybe search the same problem but for pure UNO board:

  1. https://www.arduino.cc/reference/en/libraries/hid-project/
  2. https://github.com/NicoHood/HID

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 think that somebody can think that's the madness, but I would like to build a small tracball device for my mechanical keyboard. Please take a look here: https://www.reddit.com/r/olkb/comments/lu1nit/sofle_keyboard_pimoroni_trackball_integration/

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.

To flash the Bluno, I found these instructions at https://www.dfrobot.com/blog-283.html :

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.

Jeremy

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.