BlueWave Studio forum
Tactile Buttons - Printable Version

+- BlueWave Studio forum (https://bluewavestudio.io/community)
+-- Forum: Community (https://bluewavestudio.io/community/forum-85.html)
+--- Forum: How to (https://bluewavestudio.io/community/forum-69.html)
+--- Thread: Tactile Buttons (/thread-2239.html)

Pages: 1 2


Tactile Buttons - absolutezrho - 12-01-2020

Is there a way to add tactile buttons or switches to OAP for pause/play and other functionality?


RE: Tactile Buttons - Daniel_BlueWave - 12-02-2020

Yes, you can add button/switches to the RPI and map them into keystrokes that can handle actions in OAP. Please refer to UserGuide


RE: Tactile Buttons - absolutezrho - 12-02-2020

(12-02-2020, 06:08 AM)Daniel_BlueWave Wrote: Yes, you can add button/switches to the RPI and map them into keystrokes that can handle actions in OAP. Please refer to UserGuide

I see the keyboard controls table in the manual and I would like to use a gpio push button to toggle the play function using "b" on the keyboard, but it doesn't have any directions on integrating gpio input to OAP. What would be the recommended approach to get the input from the gpio header into OAP? Thanks!


RE: Tactile Buttons - BlueWave - 12-02-2020

Please have a look at https://bluewavestudio.io/community/showthread.php?tid=2208


RE: Tactile Buttons - absolutezrho - 12-03-2020

(12-02-2020, 10:16 PM)BlueWave Wrote: Please have a look at https://bluewavestudio.io/community/showthread.php?tid=2208

Thank you that was just what I was looking for. I have created my config but every time I try to run the service I get the following error:

[2020-12-02 19:43:12.618098] [0xb6f57d10] [info]    [OpenAuto] [Controller Service] Unable to start service for controller type: 6

I have attached my config for reference.


RE: Tactile Buttons - BlueWave - 12-03-2020

What version of OpenAuto Pro do you use? This feature is available as of version 12. In order to get an update please have a look at https://bluewavestudio.io/community/showthread.php?tid=848.

Also, in your config file you defined 3 GPIO buttons but value of Count parameter is set to 1. Is that intentional?


RE: Tactile Buttons - absolutezrho - 12-04-2020

Ok the version was the issue, everything is working. Thanks!


RE: Tactile Buttons - absolutezrho - 12-17-2020

After using the pause button with the key mapping I found an issue where after starting the car, OA doesn't recognize the button press to play media until I manually press play through the touchscreen interface. After doing it once any subsequent presses trigger as expected. My typical use-case is when AA is already started and my audible instance shows in the sidebar but pressing the play button doesn't start it until after pressing play from the sidebar via touchscreen. Is there a way to get it to trigger from launch?


RE: Tactile Buttons - BlueWave - 12-17-2020

(12-17-2020, 03:30 AM)absolutezrho Wrote: After using the pause button with the key mapping I found an issue where after starting the car, OA doesn't recognize the button press to play media until I manually press play through the touchscreen interface. After doing it once any subsequent presses trigger as expected. My typical use-case is when AA is already started and my audible instance shows in the sidebar but pressing the play button doesn't start it until after pressing play from the sidebar via touchscreen. Is there a way to get it to trigger from launch?

Looks like your push button is connected wrongly to the GPIO pin.


RE: Tactile Buttons - absolutezrho - 12-17-2020

(12-17-2020, 07:33 AM)BlueWave Wrote:
(12-17-2020, 03:30 AM)absolutezrho Wrote: After using the pause button with the key mapping I found an issue where after starting the car, OA doesn't recognize the button press to play media until I manually press play through the touchscreen interface. After doing it once any subsequent presses trigger as expected. My typical use-case is when AA is already started and my audible instance shows in the sidebar but pressing the play button doesn't start it until after pressing play from the sidebar via touchscreen. Is there a way to get it to trigger from launch?

Looks like your push button is connected wrongly to the GPIO pin.

Pressing play on the touchscreen once after booting up allows it to work just fine, its just that it doesn't want to trigger to begin with.