Like many kids of my generation with a geeky slant, I gravitated towards electronics. I’d take apart whatever junk I could get a hold of, and with my next door neighbor being a ham radio operator with lots of junk to get rid of, that was plenty. VCRs, televisions, radios.. They all fell to my screwdriver and soldering iron. Soon I’d amassed a huge collection of components.

My understanding of what I was doing– what all those parts meant. What you could DO with them– was limited, though. I never tried to make anything with them; I just collected.

All my electronics education at the time revolved around the 555 timer. It’s a fine chip, but it’s just a timer, an oscillator. Since that was the only “active” component I’d ever been exposed to, I looked at all problems through that lens, and eventually shrugged my shoulders and followed the path of software.

15 years later, I decided to try picking it up again. I had a project in mind: Making the stars in a painting I had fade in and out. I decided to make a concerted effort to pick up electronics again. What did I do? I picked up “The Art of Electronics” and a 555 timer again. Ugh. Art of Electronics is not for beginners. It’s a text book and it reads like one. Once again, I got frustrated and set down the iron.

7 years later, and I come across “Intro to the Arrr-duino”, a short video from MAKE Blog. It explains that making that light blink is just a simple matter of loading a microcontroller with a short bit of C code! C! I know this! Suddenly, all that pent-up 9 year old enthusiasm for electronics jumps into gear again, as though I never left it. I got the Arduino, I got some parts. I tore through the Arduino Playground, harvested any random piece of hardware from the trash bins at work and tried to figure out how to interface it. Motors! Memory chips! LCDs! Rotary encoders! So much learning. So much fun.

I guess what this blog entry is, is a big thank you to the Arduino team. By making a toolkit that makes electronics accessible with a minimal investment in time and money, they’ve jumpstarted a generation of makers, me included.

For dorkbotpdx last night, I made this little toy:

WiiMatrix

It’s an 8×8 red+green LED Matrix, driven by three shift registers driven by a Bare Bones Board Freeduino by Modern Device Company.

Before the meeting I just had it flashing fun patterns based on odd bit-math equations. During the meeting, I was urged to add some code to make it controllable by the Wii Nunchuk. So, I wrote a simple program that takes the X and Y of accelerometer and plots it on the matrix.

I drove the LED Matrix with three shift registers: One 74HC595 8-bit register gave power to the rows of the display, and one Maxim-IC MAX6969 sank current for the columns to the display. To turn on row 1, column one, you shift “B10000000″ into the row register, and “B10000000″ into the column register:

  1 0 0 0 0 0 0 0  
1 x o o o o o o o
0 o o o o o o o o
0 o o o o o o o o 
0 o o o o o o o o 
0 o o o o o o o o 
0 o o o o o o o o 
0 o o o o o o o o 
0 o o o o o o o o 

Altogether, it was about 30 lines of code to drive the matrix with some fun patterns.

In order to encourage us to play with electronics more, JWA and I have begun doing monthly challenges. For our inaugural challenge, we decided upon an LED Birthday Candle. This is my entry to that challenge.

LED Birthday Candle

You blow the center pole towards one side, and the LED shuts off. To turn it back on again, blow it the other direction. It’s a circuit known as a bistable multivibrator, or “flip-flop”.

I do like that it’s so simple and cheap, though.

My parts list is simply:

2 – 10k ohm resistors
1 – 1k ohm resistor
1 – 220 ohm resistor
2 – 2n3904 NPN Transistors
1 – LED
3 – AAA batteries (this thing’ll last forever!)

Not including the batteries, this thing costs less than 15 cents in parts. If I could work out the “blow” mechanism a little better, I think this would be a marketable product.

Okay, now for some photos:

On the breadboard:
LED Birthday Candle

Before being shoved in the pill bottle:
LED Birthday Candle

I had originally wanted to be able to shove this thing into a fat straw, like you get with a bubble tea, so I made it as small as possible, and soldered the pieces together straight rather than using protoboard:
LED Birthday Candle

Next: Brighter LEDs!

My Wiichuck adaptor arrived a couple of days ago, and I just hooked it up.  As my first project, I’ve written this, which uses the Wii nunchuck as a musical instrument.

Source code: Freqin’ Wii

Hook a speaker to the output pin (defined below, 13 by default), and hook the Wii adapter up to analog pins 2-5, preferably using the Wiichuck adapter. Tilt the wii from side to side to adjust the tone, and tilt forward and back to adjust  the octave.  Push the joystick forward and back to adjust the length of the note.  Push the Z button to play the note.

I’m trying to think of what else I could do with this.  There’s just not a lot of data out there that can use three dimensions of acceleration data and two dimensions of joystick data.

Awed By The Beauty Of The Light The electronic man holds his joy aloft.  He loves it, because he was built to love it.  It shines with the energy that courses through his body.  He wants to share his Light with the world, but fears that if he lets it go, he’ll never know it’s glow again. 

I’ve recently become enraptured with a little microcontroller development board called the Arduino (pronounced “Arr-dwee-no”).

Arduino Diecimila

This little thing is a great way to get started with electronics. You hook some electronic component to it, write a little bit of C, upload it to the board, and “tada!”, you’ve invented some new Gizmo.