[Ovmsdev] Not OVMS, but perhaps interesting to some
Mark Webb-Johnson
mark at webb-johnson.net
Sun May 5 18:08:24 HKT 2013
The one thing that really bugs me about the Parrot Asteroid SMART is the lack of physical volume control buttons. The roadster doesn't have steering wheel audio controls, so UNIKA is not a possibility. Parrot make a bluetooth steering wheel remote for the Asteroid tablet, but it won't work on the SMART (they say it will later this year).
It is Android and that means the Parrot supports USB keyboards using the HID protocol.
So: https://github.com/markwj/hidmedia
Using a PIC18F2550 (US$6 @mouser) usb-capable micro controller, I threw together a workable hand built prototype. It has a d-pad, two function keys and a mode switch. At the moment, I've got it programmed as mode 0 directional control and mode 1 media control. In directional control mode, it behaves like up, down, left, right, enter, esc, menu, etc - useful for navigating around the Android screens. In media control mode, the two top buttons are volume decease/increase, and the others will be for previous song, next song, play/pause, stop, mute, etc. There is a little led that currently blinks when you press a key.
Still some tuning to do, finding the correct media control codes, but not bad for a few hours work at the weekend - with my six year old daughter as a little helper she told me she wants to be me when she grows up :-)
At the moment, volume control and directional control is perfect, but media pause/play and song navigation still a work-in-progress (I need to find the correct HID codes). Last thing would be to 3D print a nice box. Or, I could try to work out how that 4pin UNIKA connector works.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.jpeg
Type: image/jpeg
Size: 31639 bytes
Desc: not available
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20130505/18d8c343/attachment-0004.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.jpeg
Type: image/jpeg
Size: 27802 bytes
Desc: not available
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20130505/18d8c343/attachment-0005.jpeg>
More information about the OvmsDev
mailing list