Convert Arduino Nano Button Input to Android Volume Control

I recently purchased an Arduino Nano and HC-05 bluetooth adapter that I no longer need due to it's lack of USBHID functionality in a separate project I'm working on. I've been looking into purchasing a phone camera grip with bluetooth volume buttons, however before I do so I was wondering if it would be possible to achieve something similar using the leftover Nano, HC-05, and some pushbuttons I have laying around?

I have no knowledge of Android app development, however ideally my hope would be to set up functionality similar to standard headphone buttons (Volume up, volume down, media control button). Any advice on how to proceed, areas to research or if lack of USBHID support would be problematic is greatly appreciated.

Preliminary research has led me to BLEKeyboard, but I'm not sure if that could work on Nano. I'm also interested to find out if plugging the nano to the phone for power would be sufficient as well.

1 Like

It can not, as this is for a totally different type of processor than the Nano.

By the way I assume you are using a Nano Classic, there are many different types of Nano all with different types of processor.

Apologies, forgot to clarify but it's the 16Mhz ATMEGA328P. Is there any way to convert Serial output since USB and BLE Keyboard aren't an option?

That is a Nano Classic.

Convert to what?

There is no way, I can see, that you can do what you want, with the processor you have.

Perhaps convert is the wrong word, I meant more whether there was some way to take the Serial output from the Nano Classic, and modify the volume levels on an Android device (i.e. a Bluetooth remote), or is it absolutely impossible with this?

Not without some extra hardware.
You will need some sort of BLE hardware driven with a serial input.

It looks like this will work, but there are no guarantees, from me, that it will:-

I see, thanks for letting me know. My hope was to do this without purchasing new parts and use up what I already have, so I suppose I'll save the Nano for something else another time.

Good move.

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