A few months ago, I saw this blog and video. The gentlemen had hacked a Lampan light from IKEA with LEDs, I was immediately enamored with the idea of building it and giving a few of them to my young nieces for Christmas. I figured they'd be far more excited about a one-of-a-kind light than a few more dolls in the 'ole toy box.
I also wanted to further my design knowledge of PCBs as well as better understand using PWM in AVRs, until this point I'd really only played with my Arduino and a few ATTiny13s. I quickly came up with the following design to suite my requirements.
1. AVR with at least 3 PWM channels. (I used the ATTiny2313)
2. Super bright RGB LEDs.
3. Warm white light for normal use, not the normal blue hued white LEDs.
4. In-circuit programmable design.
5. Fit in the base of an IKEA Lampan.
6. UL approved power source.
The lamp uses a single momentary button to switch (you need special drill bits to drill the hole in this thin plastic, trust me, check Harbor Freight for them!) between the colors and the two color mixing modes (one, I jokingly refer to as "light switch rave" and the other a slow color changing mode). My wife absolutely hates the blue hue of normal LEDs, so I knew my design would have to incorporate a few warm white LEDs in addition to the RGB LEDs, thus the 3 warm white LEDs in the middle of the board.
I got the 5mm RGB LEDs from here, highly recommended! And yes, I did use a single resistor for each color, typically a no-no in design, but the trade-off was worth it for me. I wasn't overly concerned with exact color intensity from each LED.
Anyhow, this was a fun build and Christmas was a hit, the family loved them. I've attached the Eagle schematic and AVR Studio files to the post if anyone is more interested in the design.
Let me start by saying I found out a few weeks ago that I'm going to be a father. This is my first child and as you can imagine I'm filled with excitement and nervous energy. Both my wife and I both agreed that we wouldn't start actual preparations for the coming baby until the 12th week to ensure all was well (1 in 4 pregnancies end in miscarriage). I just couldn't sit still and wait, I started reading about what to expect, how to care for a newborn, and so forth.
It was while I was reading about SIDS (sudden infant death syndrome) that I saw a few articles discussing the proper temperature for a nursery to help prevent the SIDS. The articles all agreed that cooler was better, ideally between 64 and 74 degrees Fahrenheit.
I was immediately struck by the idea of creating a visual indicator to allow both my wife and I to easily ensure the room was within this range! I grabbed up my Maker's Notebook and starting drawing what I was envisioning. What did it look like, you ask? Keep reading, you'll soon be rewarded with the answers you seek!
My idea was to utilize a diffused RGB LED, an analog temperature sensor (really wanted to expand my working knowledge of the ADC on AVRs) and a frosted glass sphere to create a highly visible temperature indicator. I quickly sorted through my parts bins and found most of what I would need. A quick search on eBay and a short drive to Lowe's provided the rest.
Here's what you'll need to build one yourself:
1. Wooden base, use your imagination.
2. Frosted glass light shade.
3. LM335 Analog Temp Sensor
4. Atmel ATTiny45/85 micro and appropriate socket.
5. Common anode RGB LED (doesn't have to be diffused, you can do that yourself with sandpaper).
6. Two (82 ohm) , one (150 ohm), one (10k ohm) and one (2.2k) 1/4 watt resistors.
7. A 10k potentiometer.
8. One (.1uF) capacitor.
9. A power source. I used an old Netgear router power supply. 5V regulated output at 2.0A.
10. Some wire, heat shrink tubing, Velcro and appropriate soldering equipment.
11. Firmware and schematic.
I typically breadboard all my designs then move them to PCBs once I've worked out all the kinks, but I had recently purchased a mini drill-press and PCB development kit from Jameco and decided the simplicity of this design would allow me to go directly to a DIY PCB (it also gave me an excuse to try my newHad to calibrate the temp sensor using the 10k pot and my Fluke with attached thermocouple.
Once done, I sat down and wrote up the firmware using AVR Studio 4. After a few more hours, I was all set to try it out. And TADAAA! A fully functioning accurate temperature indicator for the new nursery. I'll paint the wooden base once we decide on colors for the nursery!
AVR Freaks (ADC For Newbies)
Convert Kelvin to Fahrenheit
Today, I decided I would try my hand at a simple Irish home remedy that turned into a popular soft drink. GINGER ALE! Ginger ale was used some time ago to treat anything that ailed you but now thanks to John McLaughlin, it's more commonly associated with a refreshing soft drink.
Ginger has long been used to help settle upset stomachs and ease nausea, it's these proposed properties that really made me want to give it a try. My wife has been suffering from nausea quite badly lately and I thought this would be a fantastic solution (if it works). It's all natural and quite easy to make.
Here's my recipe for Ginger Soda:
• 2 Cups Fresh cut ginger (slice into about 1/8 inch slices)
• 2 Cups filtered water
• 2 Cups white sugar
• 1 tsp Pure Vanilla Extract
• 2 tsp Dry Ginger Powder (not required but adds to the zippyness)
Combine the ginger, sugar and water and heat until simmering. You'll simmer the mix until the liquid has reduced to about 1/2. It'll be syrupy in consistency. Add the vanilla and dry ginger powder and stir well. Remove from heat and strain mixture. Let the syrup cool to room temperature and then add about 3 tablespoons syrup to 16 ounces soda water (this will vary on individual tastes), stir well and enjoy! If you want, you can add a bit of fresh Mint and a squeeze of lime to zest it up a bit!
But WAIT! Don't throw away that ginger! It will make a fantastic treat and here's how. Take the cooked ginger from the recipe above and mix it well with 1 cup white sugar. Make sure each slice is liberally coated with sugar. Place the coated ginger slices on a cookie tray evenly spaced out and put in a preheated oven at 225F. Let them dry for about 3 hours in the oven, they should be dry but still chewy! Yum-O!
I finally received my vintage radio today. I had purchased it as a "non-working" radio and really only wanted the wood case for one of my other projects which I will talk about later when I get it completed. Anyhow, I couldn't resist looking through all the amazing components and it wasn't long before I started wondering how such a fantastically built radio could be broken... The tubes looked good and it wasn't until I pulled them out to clean them up that I noticed a loose wire which was easily fixed. Well, after an hour and half, I've got the old radio working! I never planned on refurbishing it, now I am thinking twice. It's an all-American, beautiful piece of history and I almost feel drawn to bringing her back to her full potential....more to come....
Man's best friend is a saying that couldn't be any truer than it is in my house! Recently, Rox, the monarch of our pack had bladder surgery to remove some stones. Poor dear has had a rough time recovering so I thought I'd try to cheer him up with a new paracord dog collar. These collars, also known as soloman's bars have been on my learning radar for some time now and I could learn how to make these while cheering up my boy Rox, let's do it!
I actually made two and should finish up the last tomorrow. Can't leave out the other dogs after all..I've attached a few pictures at the bottom of this post of the finished product, solid blue and a two-tone, which I really liked!
Well, this weekend I had planned on knocking out some 12GA shot-shells but found that I had failed to restock my shot, oh well. Our local Sportsman's Warehouse reopened and while I was there this weekend, I picked up some Hornady Critical Defense for my .38 special. The ammo has fantastic reviews and even better specs but at $23 for 20 rounds, I decided it was time to sit down and build myself a equally fantastic self-defense load. I've triple checked the cases, length, thickness, pocket uniformity, etc. Ready to start working up some loads this week!