Garage Door Monitor

July 31st, 2008

Garage

Since my last posting, Synoptic Labs has been transplanted to new, larger digs in Sacramento, CA. As a feature of the new location, we now find ourselves with a full garage which has substantially increased our storage and work area. However, this garage opens up onto a busy downtown street with a lot of foot-traffic and a bit of that traffic is from scavengers — people who routinely comb the neighborhood (usually early in the morning) looking for recyclables or, frankly, anything that isn’t nailed down.

The door is opened by remote control and, as we’ve found on numerous occasions already, it’s all too easy to inadvertently hit the remote and open the door without realizing or just forget to close it. More than once we’ve woken up and found that the door has been wide open all night long; the fact that we haven’t lost any tools or equipment because of this astounds me.

Knowing that our luck wasn’t going to hold out forever if we keep leaving the door open, I decided something had to be done. So I hacked together a internet/mobile-phone enabled garage door monitoring system which will notify us if the door is left open during the night.

Read the rest of this entry »

Serial LED Strip pt4

May 11th, 2008

Testing Serial Strips

Progress continues on the Serial LED strips project. I’ve assembled a fair number of the prototype strips and have been experimenting with a few ideas. I’m really excited about this project… I keep thinking of new projects I can do with these little strips. However for now my focus is on testing the ones that I have in prep for a larger scale production run.

Also I got a lot of positive feedback from people at the Bay Area Maker Faire on the prototype strips I brought mounted on black acrylic (slapped together at the *very* last minute).

Today I set about testing the resistance on the power and ground rails. The resistance on these rails imposes a maximum length of serial strips that can be chained together before power needs to be re-tapped into the chain. Much to my pleasant surprise, the resistance that I measured closely matched my predictions. I had predicted a resistance of 5.70 mOhm on VCC and 6.48 mOhm on GND and I measured 5.79 mOhm on VCC and 6.42 mOhm on GND respectively. Not bad.

Video of the prototype strips in action after the jump.

Read the rest of this entry »

My Breakfast with Reflow

April 18th, 2008

My Breakfast with Reflow

My prototype boards for the striplight came in this week, woohoo! Now starts the process of putting the design through its paces and making sure it works but before that can begin the boards have to be first assembled.

According to the guys over at SparkFun there’s no better way to do bulk surface-mount soldering in the home than with skillet reflow. According to universal truth, there’s no better use for a skillet than for making delicious fluffy pancakes. Thus it follows that any activity combining the two must be a doubleplus good.

Besides, heavy metals poisoning is the sweetest sauce.

Read the rest of this entry »

Talking to a Cypress CYM6935

April 8th, 2008

Talking to a Cypress CYM6935

Rob and I have recently been talking about doing some wireless projects. A friend loaned us a Cypress CYM6935 module which is an evaluation module for the CYWUSB6935 chip and today we attempted to hook it up. We chose an Arduino board simply for convenience though connecting the module to it actually took the bulk of our time today since the 2mm pitch pin headers on the module won’t fit into a breadboard. Also, the Arduino runs at 5V and the Cypress chip can’t tolerate voltages that high so we had to drop the 5V signals from the Arduino down to 3.3V. Fortunately I had a Futurlec 5V to 3.3V level shifter board on hand so that problem was easily solved.

Once we got the module wired into the Arduino we had to figure out how to communicate with it. Thankfully, that work has largely been done already and we borrowed code written by Lars Englund (available here) to test the communications with the chip. This code was written for an ATMega8 so a few of the port definitions needed to be changed to make it run on the Arduino’s ATMega168, but this was fairly painless.

It should be noted to avoid possible confusion that, while we used the Arduino board, we did not use the Arduino programming environment to compile and run Lars’s code. His code is not compatible with the Arduino framework and would require significant porting. (this is not a criticism of the code but rather a disclaimer intended for those who may find this post. It’s not commonly understood that the Arduino hardware is perfectly happy functioning without its development environment).

Anyways, once we got the code to compile and talk back to us via the USART and once we got the Cypress module wired up to the board, we were pretty much done. Much to our surprise the software found the chip and was able to talk to it on the first try. Honestly, we had expected to be chasing stupid wiring mistakes for another few hours so this was a pleasant shock.

That’s pretty much where we left it. We got the software to recognize the chip and talk to it and we called it a productive day. Now what’s left to do is get it to scan the wireless spectrum and send that data back to the host computer for analysis and display.

Explody Easter Peeps (High Speed Photography)

March 23rd, 2008

Explody Easter PeepExplody Easter Peep

(Note: these photos were taken not by me but by my friend David Lindes, who has a ton of other amazing photos on Flickr)

It’s 3 a.m. and a phone rings in the White House…

Or actually, it was about 3 p.m. and a phone rang in my pocket. By luck the phone happened to be mine and on the other end of it was 3ric asking if I’d be able to help with a project that evening. Seems he had acquired about 10 liters of liquid nitrogen and among other things was hoping to use it to do some high-speed flash photography of frozen things shattering into a million pieces upon being shot with a pellet rifle.

All was well and good and according to plan, except for the flash trigger, which was stuck in the mail somewhere. Could I hack one together by evening? Thus is how I got my project for the day.

A flash trigger for high-speed photography is a really simple device. Basically all you need to do is take an audio signal and use that to trigger a flash if the signal exceeds a certain level. Rather than muck about with $10 worth of op-amps, transistors, voltage dividers and a bunch of so-called “electrical engineering”, I splurged for the $2 solution and threw the equivalent of a mid-1980’s personal computer at the problem… i.e. a microcontroller. Specifically, a AVR ATMega168 (mounted on a $30 Arduino).

Long story short and after overcoming two rather significant obstacles (#1 being not having a microphone, #2 being not having a flash) we were able to kludge together a workable flash trigger in just a couple hours. With the flash trigger in place and David at the camera, by the end of the evening we had walked away with some decent shots.

(and made one *hell* of a mess)

(our peep torture from last year)

Read the rest of this entry »

Serial LED Strip pt3

March 18th, 2008

Here’s a crude mockup of one particular idea I’ve had in mind for the serial LED strips. One particular idea would be to use this as a network traffic visualization.

This was all done in Processing which I have to say, this being the first time I’ve used it, is really pretty awesome. Thanks to Phil for turning me onto it.

Serial LED Strip pt2

March 13th, 2008

LED Striplight pt2

It truly astounds me sometimes how much work can go into a PCB layout, even a relatively simple one. I’ve spent a better part of this week refining the design of the serial LED striplights I’ve been working on. I believe they’re just about ready to be sent off to a board house for a prototype run. Infinite thanks to Dan for helping to catch my gotchas before they became design show-stoppers.

Note the bendy circuit traces and teardropped holes. These are apparently things you have to do when you’re designing with flexible circuits in mind.

A Perfect Date

March 10th, 2008

IMG_0967.JPG

There’s nothing like spending the evening with your favorite lady sipping homemade vodka infusions and building a capacitor bank to blow stuff up with.

It was totally her idea, too.

Revisiting Old Projects

March 2nd, 2008

IMG_3833

Today while cleaning up the lab I came across a little blue ball lamp thing which was my first ever LED project some many years ago. I had found the little guy at a garage sale and later swapped out the incandescent light bulb inside of him with a small array of 22 blue super-bright LED’s.

Not really knowing any better at the time, I had wired all 22 LED’s up in parallel with each other, all of them “sharing” one resistor. Ah how naive. No wonder the lamp got progressively dimmer and dimmer over the years as the LED’s fought each other over current, seeing which of them could burn itself out first.

For fun and nostalgia today I decided to revisit my little blue ball lamp and do it proper (or at least more proper). I yanked out the (now half-dead) 22-LED array and replaced it with a 5-watt blue power-LED.

Read the rest of this entry »

The Incredible Shrinking Capacitor

February 27th, 2008

Projector Repair

I had always heard that when a piece of electronic equipment fails, the electrolytic capacitors are often a prime suspect. I got a much better sense of that today as I tried my hand at fixing an old digital projector I had gotten from a friend.

The unit wouldn’t even power on and while I suspected the power supply, I wasn’t able to figure out why it wasn’t working. That is, until I went online and found a post on Fixya.com where other people had run into a similar issue. One poster pointed out that there are four aluminum electrolytic capacitors on the power supply board which are rated at 85 degreesC and, because the board gets so hot in normal operation, these are often the first to fail.

I found the capacitors and they looked ok; their tops weren’t bulged nor did I find a short circuit across their terminals. I needed a way to test their capacitance (since I don’t have a multimeter with this function) and so I set up your typical 555 timer circuit where you use an unknown capacitor with two known resistors and you calculate the capacitance from the resultant frequency. When I did this, sure enough, I found the capacitors in question were significantly below their rated capacitance values and were in need of replacement.

One capacitor in particular, a little 100uF one, was particularly strange in the fact that it’s capacitance changed dramatically while I was watching it on the oscilloscope. I watched it start from around 40uF (still too small) and dwindle down to mere picofarads in the span of a minute or two. I thought it was so neat that I captured a video of it.

(a definition of the word “neat” you weren’t previously aware of, I bet)

I later found out that the whole shrinking thing was a function of it having being heated by the soldering iron and cooling down. Still, I thought it was cool.

Anyways, I replaced the capacitors and plugged the projector in and…. nope, still doesn’t work. However, the fans *do* spin up which is way more life than it had previously and also I’m seeing some stable voltages on the power supply for once. Looks like there’s some other issue at work as well.