Bitcoin Forum
May 10, 2024, 12:08:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [1 BTC Reward] Help with raspberry pi button board  (Read 859 times)
Morblias (OP)
Hero Member
*****
Offline Offline

Activity: 576
Merit: 500


View Profile
June 20, 2013, 01:34:08 AM
 #1

I am trying to set up a button board on my raspberry pi running raspbmc. I bought http://www.ebay.com/itm/111055228935?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649 with a touch screen that I plan on putting in my car. I cannot get the button board to work.

I installed openbox, tried to modify /etc/xdg/openbox/rc.xml to have <command>amixer set Master 2dB- unmute</command> in 1 of the keybinds and 2dB+ in another to turn volume up and down. This is my entire rc.xml file http://pastebin.com/pT71FpXa (the parts I modified are under <!-- Keybindings for Button Board --> just like the tutorial said).

I followed this tutorial for this: http://blog.wolfteck.com/projects/raspi/usb-button-board/

Also created the rule, /etc/udev/rules.d/99-usppt-usb-touch.rules
KERNEL=="hidraw*", ATTRS{idVendor}=="13ec", ATTRS{idProduct}=="f2f8", RUN+="/bin/sh -c 'echo 1 > /dev/%k'"

After rebooting, I hit the buttons, but nothing happens. I am sort of a noob at linux also, so this tutorial might only work in raspbian wheezy and not raspbmc, I have no clue. If anyone can tell me what to do and get this working for me, I will reward them with 1 BTC.

Here are some random pics (messy right now) if you are interested in seeing the setup Smiley http://imgur.com/a/LKz7q

Tips / Donations accepted: 1Morb18DsDHNEv6TeQXBdba872ZSpiK9fY
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
sk801
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
September 03, 2013, 02:53:58 PM
 #2

I realize this post is over 2 months old and you might have figured it out already, but I know how frustrating these things can be.  Grin

I have basically the same setup that I have been working on also. If you are wanting the buttons to affect anything while running raspbmc, instead of adding keybindings to open box (which work on a regular raspbian image), you need to update xbmc's key map.

XBMC's key map is what converts keyboard presses to useful commands. So spacebar to play pause, backspace to go back, "x" to stop, ect... If you google "xmbc keymap" the first link will explain everything.

I am not running raspbmc so I am not possitive, but I believe the keymap is located in /home/pi/.xbmc/userdata/keymaps/keyboard.xml

In the keyboard.xml file you will need to insert something like this:
<keymap>
  <global>
    <keyboard>
        <n mod="ctrl,alt">Play</n>
        <x mod="ctrl,alt">Stop</x>
        <m mod="ctrl,alt">Back</m>
        <key id="389184" mod="ctrl,alt">VolumeUp</key>
        <key id="61596">VolumeDown</key>
    </keyboard>
  </global>
</keymap>


This will work assuming that your udev rule is working. If it is working the buttons will light up weather or not they send a command to your system.

I assume you are wanting to control the volume of your carpc with the buttons. If this is the case I recommend controlling the volume in an xbmc skin instead of the buttons as they are too slow and take too long to adjust the volume level. Then you can use the buttons for other useful things.

I can't post links as I am a new member, but search for "Andrei Istodorescu Car PC project(August 2013 update)". Andrei has a blog that has a welth of information and his post on Aug 2013 has an image that he compiled himself with a skin that has volume control built into it.

Hope that helps!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!