Why don't I have a letterman jacket?

When I was in high school, I was in Show Choir, Theatre, Model United Nations, German Club and I was a Manager for the Marching Band. I didn't get a Letter in anything. But then, while reading about a poor guy who got shot after wandering drunk into someone's house who wasn't his girlfriend, I learn that you can get a letter in Peer Counseling these days. Not to be insensive to the dead, but ... really? Peer Counseling?

 Please, will someone send me a letter jacket?

1 comment
Tags: thoughts

Read a Book by Remote Control

Array of LED modulesThe center-mounted ceiling fixture found in most homes is a lighting fixture whose best use is perhaps to provide enough light to install other lights. You are virtually guaranteed to cast a shadow on whatever task you undertake, or have the light source in your field of vision, or in some cases, both.

That's the case in my small apartment where the single futon that I use for reading and watching television sits against the wall, facing in. During the day, the window behind it lets plenty of sunlight in, but at night, the only light source is that ubiquitous ceiling fixture which, by virtue of being behind the book I'm reading (rather than behind me), doesn't do much to differentiate the type from the paper.

Of course the solution is to put a lamp beside the futon. But this isn't that kind of apartment. A lamp would take up precious floor space, and I'm using the floor for other things like standing and walking. I do have wall space though.

In fact, the ideal lamp for my situation would not take up any space, so that one isn't even aware of it if when off. It should be energy efficient, but not an ugly, toxic fluorescent lamp. A string of LEDs perched on the window frame would be just about right.

There are two lighting goals for this project. The first is to provide back fill light for reading a book. Most of the light in the room would still come from the ceiling fixture, but the LEDS will bounce extra light on the ceiling behind the reader and illuminate the page. The second goal is to have house lights for watching TV and movies. Lights that can be controlled by remote, so that after watching a movie in the dark, I don't have to stumble across the room to turn on the lights. The LEDs alone achieve the first goal. The second needs some computer automation.

A single LED module

The easiest way to control the LEDs and provide a nice dimming function to ease transitions in and out of black is to do pulse width modulation (PWM) which is electronic-speak for turning something on and off real fast. You could do this with just a parallel port on a computer, but it makes more sense to have a programmable controller like the one on an Arduino handle a task like that.

To construct the system, I bought 20 white LED modules from SparkFun, and strung them together in two channels of 10 modules each. The mounting brackets they provide (I broke off the screw attachment and just used the double sided tape) have enough room to thread the jumper cable for the second channel through the brackets for the first. With this method, alternating modules are on channels in an odd/even configuration. This is helpful in the low end of the dimming range where the ability to have the different channels at separate levels gives the appearance of smoother dimming.Graph of output functions

The Arduino is very simple to use. It has a Java based IDE so that you can instantly upload your programs to the controller and test them out. I wrote a program that receives input over the USB connection and sets PWM values appropriate for the desired light level. Setting the values linearly didn't produce a fade that felt linear, so I applied a simple exponential function to adjust the output to appear more linear. I used different functions for each channel so that in the lower part of the fade, the channels have values with different luminosity to smooth the lower end, but as they increase in value, they approach 1 and the output values are not much different in luminosity.

  • int(255*pow(x/255.0, 2.0))
  • int(255*pow(x/255.0, 1.6))

The next component is the software that controls the system. It listens for IR events from an IguanaWorks USB IR tranceiver via LIRC and fades the lights appropriately. It responds to direct on/off commands, but it also watches for commands sent to other systems to infer what is going on in the room. For instance, if it sees the TV turn on, it fades the lights up, then slowly to half. After seeing further IR activity, it fades the lights out on the assumption that everyone has found their seat. When the TV turns off, the lights come back up.

I could hook up a physical button or switch to the Arduino to control the lights as well, but since my remote is programmable, why add more clutter? I have a Harmony 880 universal remote, which is activity based. To use it, one begins by pressing a button for an activity such as "Watch a DVD" or "Watch TV". I added a new activity, which may be unusual for a remote control: "Read a book".

 Remote control

0 comments

Unicorn Chaser


The Unicorn Chaser airliner

We were happy passengers on the fabulous Unicorn Chaser.  The entertainment system, which runs under Linux, worked fairly well.  It had the usual assortment of free games that come with any GNU/Linux system, Creative Commons licensed videos, and unsurprisingly, some fun problems involving video overlay colors.  But really, should anything on an airplane be "beta"?

 

 

0 comments

The world learns a great deal about Sichaun (四川)

bambooBy now you all probably have read the news of the China earthquake. What most foreigners know about the region is that it has world famous food, it is the gateway to Tibet and it has the world's remaining population of wild pandas. But in the past week Sichuan has been thrown into the spotlight. The world is learning a great deal not just about the region but about its people, and I am proud to say that I am one of them.

Sichuan is considered a poor province mostly because it's landlocked and is mostly agricultural. Though with the recent economic boom it is becoming more prosperouse. It is surrounded on three sides by mountains and is abundant in rivers that flow down from the higher plains. It was also one of the most populated provinces in China. It is said that one in every 50 people on earth is from Sichuan. Historically Sichuan has suffered many natural disasters, and because of the geography the people have learned to rely on each other. The out pouring support from people less affected within Sichuan has been overwhelming. People bringing food into some of the hard hit areas, digging with nothing but their hands. It breaks my heart to read that some people think this is karma. We're all human, if we don't have eachother to rely on during a crisis such as this then we are hopeless as a species.

With any natural disaster, when it doesn't affect you directly, the numbers are meaningless, people become statistics. Our family was lucky. Everyone is accounted for and safe. A little shaken but not stirred. Send good thoughts to those who are in mourning, and to those who are still hoping.

NPR's All Things Considered was in Chengdu doing a piece about China when the quake hit. They have a blog set up at http://www.npr.org/blogs/chengdu/
0 comments
Tags: places

Monte is not pronounced Mont-ee ... and neither does it refer

Stewart has apparently been inappropriately mis-named by some folks. I can sympathize. While I don't always expect the folks at Starbucks to spell my name right (except for, seriously, Bonti is going to be your guess as to what I said?) When you are emailing me and it's there in the To: line, please don't call me Monte. I don't even recognize that spelling of the name, as Monte doesn't phonetically produce the sounds Mont-ee in any interpretation of English. The closest thing it might sound like would be a rather German Mont-uh, but not a final Long E.

And under no circumstance is it my name.

1 comment
Tags: db