Hi Markal,Markal wrote: ↑Fri Mar 30, 2018 8:18 amYup, fraid so. My memory card is as corrupt that our old President!
I have copied a back up I made (Thank heavens) to a new sd card, plugged it in, run the config buttons, rebooted and it is written to the sd card this time. Now when I boot up, everything works including the audio. Yay
Now, Mike, what do you recommend for a safe way to power off? I seem to have no more GPIO pins I can use, or is there another way to do a safe power off without having to leave the keyboard connected which sort of spoils the whole jukebox look?
Hello Markal,fruitbox wrote: ↑Fri Mar 30, 2018 8:47 amHi Markal,Markal wrote: ↑Fri Mar 30, 2018 8:18 amYup, fraid so. My memory card is as corrupt that our old President!
I have copied a back up I made (Thank heavens) to a new sd card, plugged it in, run the config buttons, rebooted and it is written to the sd card this time. Now when I boot up, everything works including the audio. Yay
Now, Mike, what do you recommend for a safe way to power off? I seem to have no more GPIO pins I can use, or is there another way to do a safe power off without having to leave the keyboard connected which sort of spoils the whole jukebox look?
If you aren't tied to a particular look on your jukebox then you can reduce the number of select buttons by modifying the "SelectKeys" setting in the skin configuration file...The first two characters specify the digit range for the first select button press, and the third and fourth characters the second button press. For example, if SelectKeys = 1413, then your select codes would follow the sequence 11,12,13,21,22,23,31,32,33,41,42,43. Of course you can define letters as well (I.e. SelectKeys = ADAE). So if you just chose numbers for example you could potentially free up buttons A through E and use their GPIO for other buttons (such as ButtonPowerOff). If you want to see what select codes fruitbox has assigned each song entry, just run fruitbox including the --debug-song-nums command line option.
Cheers,
Mike
P.S. Have you considered using the LeftAlpha and RightAlpha buttons instead of LeftJump etc - these move by alphabetical song / artist rather than a set number of pages?
I often forget that different items are more expensive in some places than others. Around here the Teensy 3.2 is about twice the price of the PI zero. And if you do decide to look at that option, there are several different versions of the Teensy. The 3.2 is just the lowest and least expensive version that supports the USB keyboard emulation. There may be some other Arduino or clone that will do the same thing. I just happened to settle on the Teensy.Markal wrote: ↑Fri Mar 30, 2018 1:09 pmThanks for the input Mike and Steve.
I am tied to a look i am afraid as we have gone to great pains to make up a set of buttons for the front of the duke box. Reverse engraved perspex. Your idea is sound though and very clever, I did not think of going the route of using 11,21,31,41 etc to limit it to 4 or 5 buttons. That will definitely work though.
It was only while setting up the buttons that I came across the AlphaLeft etc terms so will definitely investigate that, but perhaps for version two. As I say, we have already machined and painted the perspex, fitted the buttons and wired them up. I cannot see myself undoing all that work in a hurry so think I would prefer to investigate alternative options of expanding the keyboard.
Steve, I love your idea of manipulating an old usb keyboard, and I think that will be my first port of call, Cheap as chips so appeals to my thriftiness. I have never heard of a Teensy, but looking it up it looks like the next alternative although i can see a learning curve there for the programming etc. Also I can buy 6 Pi Zeros for the same money as a Teensy but will investigate that for future projects.
Mike, Have you ever considered doing combinations of buttons? i.e. simultaneous pressing of A + Page Right = power reset or B + Jump Right = Random Play or combinations of that sort?. Would that be a viable feature to program in? Or does the Pi not work like that?
Hi MarkalMike, Have you ever considered doing combinations of buttons? i.e. simultaneous pressing of A + Page Right = power reset or B + Jump Right = Random Play or combinations of that sort?. Would that be a viable feature to program in? Or does the Pi not work like that?
Hi Jonbernyone wrote: ↑Sun Apr 01, 2018 7:32 pmHi Mike
Long time no chat
Hopefully this is a really simply rectified issue,
When in autoplay is there a way to play the next track on the database rather than a random track?
I have my database organised by genre and it jumping from dancehall reggae to slow rock n roll is a bit of a mood killer lol
Cheers
Jon
Code: Select all
AutoGenre=Rock
To All,shhammer5634 wrote: ↑Fri Mar 30, 2018 12:46 pmHello Markal,
If you don't mind doing a little programming of your own, you could use something like the Teensy 3.2. It can emulate a USB keyboard (and mouse, and serial port). You would use that as your GPIO then and send commands to Fruitbox via USB. I'm using the Teensy as a decoder for a Seeburg Wall-O-Matic 100 which then sends the selection to Fruitbox. I'm also using the Teensy to collect the various button presses and send them to Fruitbox as well via USB. My plan is to simply send the proper keystokes to the Pi to shutdown Fruitbox and then cause the Pi to gracefully shut down. I should add that my project is still very much a work in progress, but the bit about sending various commands to the Pi via USB has been tested and it works well.
If you're less adventurous and can handle a soldering iron, you could find yourself an old USB keyboard to play with. Simply rip it apart and use the encoder in it. Wire your switches to the points what would have been the letters and numbers you want to use. Plug that into the Pi, and there you go. Instant extra GPIO on the Pi.
Lastly, I have looked for and found USB keyboard emulators, that they are terribly expensive so in my opinion not even an option. But I mention them for the sake of completeness.
If you decide to explore the Teensy option, I'd be happy to send you a sample sketch to get you started. I can also point you to the websites you might need to set up your Arduino environment which is what you would use to program the Teensy.
BTW: I'm using the DAC+ as well. It's a great addition to the Pi.
Cheers,
Steve

HiRainbowJuke wrote: ↑Tue Apr 03, 2018 8:48 pmHi Thanks for tip on 10 pages, works a treat. In reply to crossfade the simpler the better, a wipe does not look right on this skin. Trying to get away from old jukebox page styles. The photo is from the Splat USB button conversion and remote control.
Regards RainbowJuke
Hi GeoffBGeoffB wrote: ↑Tue Apr 03, 2018 10:35 pmHelp! I have been using fruitbox with a standard monitor for a while and have always managed to solve any problems I have by reading the forum posts but now I'm a bit stuck and may have become blinkered.
My problem is that I have just bought an Official Raspberry Pi touch screen but in fruitbox (TouchOne skin) the touchscreen is not working. I tried all the usual checks to ensure the the FT5406 driver was loaded. Everything checked out OK.
I decided to create another card using the full Rasbian Stretch image. On boot I went to the desktop to test the touchscreen and everything worked fine. At this point I decided to install fruitbox and it's dependancies I added a few mp3's to my music folder and ran fruitbox with the following command.
./fruitbox --cfg skins/TouchOne/fruitbox.cfg
no response from the touchscreen so I tried
./fruitbox --cfg skins/TouchOne/fruitbox.cfg --touch_device FT5406
still no joy.
I exited fruitbox and ran startx to get to the Desktop and the touchscreen worked fine. when I exit the Desktop to the CLI and run fruitbox again, still no response from the touchscreen.
I'm obviously missing something here but I can't think what.
Hi Mikefruitbox wrote: ↑Tue Apr 03, 2018 10:44 pmHi GeoffBGeoffB wrote: ↑Tue Apr 03, 2018 10:35 pmHelp! I have been using fruitbox with a standard monitor for a while and have always managed to solve any problems I have by reading the forum posts but now I'm a bit stuck and may have become blinkered.
My problem is that I have just bought an Official Raspberry Pi touch screen but in fruitbox (TouchOne skin) the touchscreen is not working. I tried all the usual checks to ensure the the FT5406 driver was loaded. Everything checked out OK.
I decided to create another card using the full Rasbian Stretch image. On boot I went to the desktop to test the touchscreen and everything worked fine. At this point I decided to install fruitbox and it's dependancies I added a few mp3's to my music folder and ran fruitbox with the following command.
./fruitbox --cfg skins/TouchOne/fruitbox.cfg
no response from the touchscreen so I tried
./fruitbox --cfg skins/TouchOne/fruitbox.cfg --touch_device FT5406
still no joy.
I exited fruitbox and ran startx to get to the Desktop and the touchscreen worked fine. when I exit the Desktop to the CLI and run fruitbox again, still no response from the touchscreen.
I'm obviously missing something here but I can't think what.
Have you configured the buttons for touch?
If not, this may help...
viewtopic.php?f=38&t=188723&start=200#p1264814
Cheers,
Mike
Code: Select all
[ 3.739651] usb 1-1.3: Product: Elo TouchSystems 2700 IntelliTouch(r) USB Tou
chmonitor Interface
[ 3.753128] usb 1-1.3: Manufacturer: Elo TouchSystems, Inc.
[ 3.763329] usb 1-1.3: SerialNumber: 20E01681
[ 3.840424] input: Elo TouchSystems, Inc. Elo TouchSystems 2700 IntelliTouch(
r) USB Touchmonitor Interface as /devices/platform/soc/20980000.usb/usb1/1-1/1-1
.3/1-1.3:1.0/0003:04E7:0020.0001/input/input0
[ 3.873569] hid-generic 0003:04E7:0020.0001: input,hidraw0: USB HID v1.00 Poi
nter [Elo TouchSystems, Inc. Elo TouchSystems 2700 IntelliTouch(r) USB Touchmoni
tor Interface] on usb-20980000.usb-1.3/input0
Code: Select all
Bus 001 Device 005: ID 04e7:0020 Elo TouchSystems Touchscreen Interface (2700)
Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code: Select all
I: Bus=0003 Vendor=04e7 Product=0020 Version=0100
N: Name="Elo TouchSystems, Inc. Elo TouchSystems 2700 IntelliTouch(r) USB Touchmonitor Interface"
P: Phys=usb-20980000.usb-1.3/input0
S: Sysfs=/devices/platform/soc/20980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04E7:0020.0001/input/input0
U: Uniq=20E01681
H: Handlers=mouse0 js0 event0
B: PROP=0
B: EV=1b
B: KEY=10000 0 0 0 0 0 0 0 0
B: ABS=100 3
B: MSC=10Code: Select all
--touch-device
Code: Select all
--touch_device
Code: Select all
--touch-device "Elo TouchSystems"
Code: Select all
4.9: --input_device <name>
Used in conjunction with '--config-buttons' or '--test-buttons',
this allows an input device(s) to be specified which is then
included in the button assignment. The <name> can be the complete
device name or just a sub section of it. (A device name can
be found using an external application such as 'evtest', or by
typing "cat /proc/bus/input/devices").
4.10: --touch_device <name>
Used in conjunction with '--config-buttons' or '--test-buttons',
this allows a touch screen device to be specified which is then
included in the button assignment. The <name> can be the complete
device name or just a sub section of it. (A device name can
be found using an external application such as 'evtest', or by
typing "cat /proc/bus/input/devices"). If not specified, fruitbox
will try and find the default 'FT5406' device (the official Raspberry
Pi 7" touch screen display)
Code: Select all
--touch-device Elo
--touch-device Elo TouchSystems
--touch-device Elo TouchSystems Touchscreen
--touch-device Elo TouchSystems Touchscreen Interface