I was finally able to put in the switches and hook up the controls tonight/this morning.
Here it is. The jukebox software started right up and everything worked perfectly on the first try.
Closeup of the buttons. The protective coating is still on the plexiglas.
Here’s the rat-nest of wires in the back. I don’t have cable ties on anything yet. The keyboard encoder is just taped to the side with double sided foam tape. The terminal strip is screwed to the bottom.
Shiny things are pretty, so the jukebox is going to be shiny on the front.
The test piece turned out really well. It’s almost like a black mirror or something.
I painted the back side of the plexiglas with Krylon Fusion. It coated well and isn’t a bad paint job, but the front looks really nice.
It’s not very shiny in this picture because the protective coating is still on the front of the plexiglas.
I set the front on the rest of the cabinet. It finally looks like something I would be proud to own.
It’s starting to look good!
The sides are wrapped with a random cloth we found at wal-mart.
The vent holes are wrapped around for a cleaner look. You can see there is padding behind the fabric to make everything look smoother.
The vent holes in the top will be covered with shiny metal fan grills and will have fans attached to the inside to keep everything cool.
The jukebox is coming together quite nicely.
Plexiglas is cut to correct size for front
Here’s what I accomplished last night:
Laptop support/mounting pieces
View of front. All holes are drilled and bolts now hold the front on.
It boots! I didn’t kill it!
The jukebox program runs! Chris La Mantia is awesome!
I am using DWJukebox to run the jukebox I’m building. I liked the Chrome skin, but its labels were off. Here’s a quick fix. Put in the skinsbgrounds folder and that’s it.
So… with the screen strapped to the back of the craptop, I’ll need some way to control the jukebox. Cheap momentary pushbuttons from RadioShack seemed like a good way to go. This picture isn’t a finished piece, but it shows the buttons wired up into a spare piece of plexiglas for testing.
The buttons do no good without something to connect them to. So I dismantled a keyboard, de-soldered the connectors, and soldered a ribbon cable into the holes. I connected the other end of the ribbon cable to a terminal strip so it’s easier to wire up the buttons.
Having a terminal strip wired up to a keyboard encoder doesn’t do any good if you don’t know which pins to short together to create a keypress. I dug out my scanner and scanned both layers of traces for the keys. I then used my image manipulation program of choice and made the traces colorful and figured out which key shorted which pins.
The keyboard encoder pinout is probably different between different models/brands of keyboards, so there isn’t much point for me to post that here. Another method of figuring out which pins go where is to partially disassemble the keyboard and use a multimeter on continuity test with alligator clips to figure out which key shorts which 2 pins. Yet another method is just plugging the keyboard encoder into the computer and shorting pins and seeing which keypress it caused.
So, here’s how it went down:
Since I have an older craptop, I have all the drivers to run Windows 98SE. Windows 9x is great for embedded applications like this. I remember from when I was scheming to build a MAME cabinet with nice arcade controls wired up to a disassembled keyboard. I saw a link on someone’s project page to DWJukebox. I thought it was pretty neat. A recent episode of Systm made me remember MAME and all the cool hackery people have done around it. Anyhoo, Friday evening boredom led to this project.
Here was the plan:
- Install Windows 98SE
- Install all required drivers
- Map a drive to network share containing mp3’s
- Install and configure DWJukebox
- Replace explorer.exe with “C:pathtowincab.exe” in the shell= line of C:windowssystem.ini
DWJukebox should now be the only thing running when the computer is turned on. Brilliantly simple! In theory…
Since nothing works as well as originally planned, I had a few snags.
Installing the OS and drivers and mapping network drive all worked perfectly.
Wincab failed to load. It could not initialize digital sound driver or something… I’ve had issues with sound cards before, so one of the first things I tried was reducing the hardware acceleration of the sound card. I adjusted it one increment at a time, and it only works on the no acceleration setting. So, finally, Wincab.exe worked pretty well until I tried to set it as the shell.
It failed with a message about it not finding jbdefptr.ptr. I had been cruising around the support forums for DWJukebox and many posts had portions of jbdebug.log attached, so I enabled logging, but it didn’t put the jbdebug.log in the program folder like I expected, it put it in the root of the C: drive!
Since this is a dedicated computer that I’m not going to be using for anything else, I just moved DWJukebox to the root of the C: drive, updated the C:windowssystem.ini and rebooted.
It’s ALIVE! Er… well, it boots into DWJukebox and plays mp3’s from a network share.
The internet is filled with very helpful people. Almost any project you can imagine has been at least attempted by someone somewhere. These links might be useful:
This link has a great explanation of how to use a keyboard for arcade controls.
This is an example of someone that has already done what I plan to
That’s the rough idea.
I have a laptop with a broken hinge that refused to run the latest version of Xubuntu. It annoyed me and was approaching useless.
Here’s the plan:
Spare Parts (Better than the money-cost kind)
- Acer TravelMate 515TE Pentium 2 300MHz laptop
- 3Com PCMCIA NIC
- Old keyboard
- Miscelaneous wires
- Soldering Supplies
New parts (The money-cost kind)
- Misc connectors (screws/nails/bolts)
- Krylon Fusion Spray Paint
- Radio Shack momentary pushbuttons
- Terminal Strip
Mix with a healthy dose of free time and cook in the basement until completed.
Of course I don’t need a jukebox, but I think it would be a neat project. This blog will hold the details.
The reasons for building a jukebox:
- I had a pile of old hardware
- I like to make things
- My roommate and I have parties
- Party guests bitch about the music and make too many requests
- TV sucks lately, so I have some free time