Author Archive for raging

1wire attic cooling

The attic was hot. Mounting a large fan in the vent seemed to help, but it was drawing 5.5A continuously, which is too much for the thermostat/humidistat my roommate bought. He left it on all the time, which is quite a bit of wasted power. I’ve seen 1wire devices online for quite a while and I’ve always wanted to play with them. The easiest way I can afford to connect sensors to computer is with 1wire. I’ve found my excuse.

Temperature Graph.jpg

Continue reading ‘1wire attic cooling’

HakHaus Air

I got bored and started looking at adobe air. I made a clone of HakHouse air using the same chat as hakhouse.com. Since there’s already a HakHouse air app, I named mine HakHaus. Download HERE

How’d I do it? It turns out that getting started with Adobe Air is ridiculously simple. Just…

Install
http://get.adobe.com/air/

Install
http://www.adobe.com/products/air/tools/sdk/

Unzip and read devappshtml.pdf
http://help.adobe.com/en_US/AIR/1.5/AIR1_5_html_docs.zip

Also cool
http://www.adobe.com/devnet/air/ajax/articles/air_ajax_developers.html

I followed the “Hello World” example to get started. Pretty simple!

This is what I ended up with… if you wanna take a look
http://www.ragingcomputer.com/helloworld.zip

Time Lapse Webcam

Project Requirements
At work we needed a time lapse camera of our new student center construction project. It needs to run continuously for entire length of construction project - approx 18 months. It should run mostly unattended.

Features
It captures 1 picture every 5 minutes. Storage capacity is cheap, so after using excel to make some projections, this worked out to be a reasonable rate for our resources. After some more research, I came to the conclusion that flash video has compatibility with most visitors while being relatively bandwidth efficient, but other codecs could be used. I originally got the idea from http://mydebian.blogdns.org/?p=261 but it wasn’t quite awesome enough, so I rewrote using Perl and expanded upon it. Continue reading ‘Time Lapse Webcam’

Touch Screen Jukebox

My friend Derek wanted a touch screen jukebox… So we built him one!

Check out the pics.

P1010057.JPG

Almost Done!

It’s almost done!

DSCN2204.JPG

Hanging on the wall, doin its thing.
DSCN2209.JPG

Inside view. Made hole in wall to run wires into other room for power/network/audio out.

DSCN2207.JPG

Computer case fans, running off +5v from the only USB port on the craptop.

DSCN2206.JPG

Using a hasp to keep it closed.

Now that it’s done, what music should I put on it? I’m looking for party music. Please IM/Email/Call Me/TXT Cell/Leave suggestions in comments!

Coming Together

The jukebox is coming together quite nicely.

Plexiglas is cut to correct size for front

Here’s what I accomplished last night:

Finally Mounted - Behind

Laptop support/mounting pieces

Finally Mounted

View of front. All holes are drilled and bolts now hold the front on.

First Boot in Cabinet

It boots! I didn’t kill it!

It Still Works!

The jukebox program runs! Chris La Mantia is awesome!

DWJukebox Chrome Skin - Fixed

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 skins\bgrounds folder and that’s it.

Chrome Skin Background

Jukebox Controls: In Progress

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.

IMAG0024

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.

IMAG0027

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.

kbd-layered

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.

Jukebox Software Overview

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:

  1. Install Windows 98SE
  2. Install all required drivers
  3. Map a drive to network share containing mp3’s
  4. Install and configure DWJukebox
  5. Replace explorer.exe with “C:\path\to\wincab.exe” in the shell= line of C:\windows\system.ini
  6. Reboot

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:\windows\system.ini and rebooted.

IMAG0021 IMAG0023

It’s ALIVE! Er… well, it boots into DWJukebox and plays mp3’s from a network share.

Jukebox Controls Research

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.
http://www.dribin.org/dave/keyboard/one_html/

This is an example of someone that has already done what I plan to
http://www.hellspark.com/dm/mame/deprecated/keyboard/

That’s the rough idea.