With all the natural disasters in the news today, I thought about how so many people are becoming more self-reliant and how that's such a great thing. But then I thought about how many people must go through their day without even giving thought to what would happen if they found themselves in the middle of such disasters. Heck even the government stepped up it's attempts to educate Americans on being prepared when disaster strikes.
Being prepared is being American in my opinion and I have always striven to ensure my family was prepared for the unknown that mother nature (or fellow man) could throw at us. While I'm certain we are nowhere near as prepared as others, I do try everyday to do something to help us become more prepared.
If anything good can come from the disaster hurricane Katrina bestowed upon Louisiana, it's the knowledge that you can't count on the government to take care of you and your family in a crisis situation and you can always count on mother nature putting a whooping on ya when you least expect it. Since Katrina, I must say I stepped up my knowledge on being prepared as well as actually investing in what it takes to be prepared.
One way I've invested, is with Shelf Reliance's Thrive Q program. It's a program that lets you build (with the help of their online calculator) a food storage program for your family and then either you can purchase it all right away or set a budget and get it shipped monthly. I opted for the monthly shipments and I'm quite happy with the program. I get a shipment of food (#10 cans) each month delivered to my door, that is as close to my set budget as possible without going over. The food has an incredible shelf life (most foods are ~25 years unopened) but it's really meant to be rotated through your normal pantry items. We open and use cans from time to time, replacing them on the list as we consume them. Of all the options for food preparedness, I honestly think these guys have the best solution. The food is excellent and it's reasonably priced.
If you don't have a food preparedness plan yet, you should really check them out, it's one less thing to worry about when mother nature finally gets fed up with your polluting ass. If you don't have any idea how to even start getting prepared, you should start here.
I think it's probably a name most folks in the hobby electronics world already know, but if you have no idea who PanaVise is, you should! PanaVise is the company that makes the most amazing vises and holders for all kinds of things. They have expanded the product lines over the years to include all kinds of mounts for nearly any gadget or gizmo you could ever want mounted. I think the best thing about PanaVise besides the fantastic high-quality products they make is the folks that work for them, what a great group of employees they have!
I got an email today from one of those great employees letting me know they were throwing a little contest on Facebook to promote their product page and the prize is apparently gonna be pretty cool! All you gotta do is post a picture on their Facebook product page of the most creative use of your PanaVise project and you could win. I'm all for free stuff, especially when it comes from PanaVise.
Folks who are just starting out in electronics always ask what is the "must haves" regarding equipment, well I'd immediately say a high-quality, sturdy vise. Specifically the PanaVise models, either the 201 or one of the 3 series. I bought my 201 vise and 308 weighted mount from AllSpec about 5 years ago and I haven't worked on a single project since that didn't utilize it. The only gripe I had about my beloved 201 was the time it took to screw the jaws in and out. Well, PanaVise was paying attention (the president of the company no less) when a very smart gentlemen created a home-brew solution. In fact, they worked with him to create an even better version and now they sell them for folks who already own a 201. Now that's listening to your customer base! If you work on electronics, do yourself a favor and pick up one of the PanaVise vises, you won't be sorry you did.
Sadly, my Amazon wish list does have a few PanaVise products on it that are still marked as "Not Purchased". I really want the low profile 305 model with another 308 weighted base. My wife purchased me the 315 circuit board holder thinking it'd work with my 201, but alas it doesn't.
I have not received any sort of compensation for writing about these guys, when a product works as well as the products they make, it's no effort to blog about how great they are!
I've never really "stocked" up on parts for my projects as I always just ordered the minimum parts I needed for each project. I guess I did buy the pack of assorted resistors from Radio Shack back when I first started working with electronics. Identifying the parts I used the most and buying them in bulk up front never was something I had given much thought to, well, that is until I read this blog post from the guys over at Dangerous Prototypes. They blog weekly about parts and how they use, source and stock parts for all their work. I guess that's what it took to finally realize I could save myself some serious cash and even some time buy identifying the parts I use the most, determining a standard package type for them and buying them either by the reel or in large quantities.
I've started doing more and more project with SMT only parts so I knew I really wanted to stock only SMT parts for now. A quick search on eBay netted me a few "kits" for resistors and capacitors in the 0805 package which is what I really wanted to standardized on for all my passives. I like the fact that I can get standard 1/8 and 1/10 watt values in addition to 1/4 when I need it in this package and the cost is minimally more than the 0603 package in most cases. I also picked up a few storage boxes for all those tiny parts, highly recommend them! Finally I made a few orders to Mouser and DigiKey to start stocking up.
I ordered 4,000 .1uF ceramic caps from Mouser (actually got 0603 package for these as they were the right price and 0603 isn't much harder to work with than 0805), got the reel for $12. Should never need decoupling caps again! I ordered 50 ATMega328's and 50 ATTiny2313's from DigiKey and 500 each of the standard 0805 resistors in 1/8W 0805 package.
The kits I got from eBay helped fill out the voids in the values for my cermamic capcitors and resistors. I think I paid a total of $50 for both kits and shipping, way worth the price.
Update: This board design and firmware were just far too buggy. I was very excited to see the Arduino team had answered everyone's request with a WiFi shield and it rocks. http://arduino.cc/en/Main/ArduinoWiFiShield
Just wanted to let folks know that I've forked the alpha 2 library for the WiFly shield to add support for the latest firmware (which happens to fix lots of bugs) but it breaks the library. I've also added additional functions as well as enabling the NTP server sync for the on board RTC chip. You can find my fork of the library here:
I've been working on this project for some time, I had originally read about the concept of hacking the Asus WL-520GU to use as a base for a wifi radio over at MightyOhm.com. In fact, I was so taken by the concept I decided I wanted to build my very own. That was nearly eight months ago....
Jeff over at MightyOhm.com has written a highly detailed step-by-step guide for building a wifi radio just like his and I followed his guide to build mine, with a few major exceptions. First, I wanted to use the Arduino development board. Secondly, I didn't quite like the feel of the user controls with the original design. My goal was to make this really amazing project even easier for folks to build and modify, I figured releasing an Arduino port of his code would accomplish that. If your interested in building one of these radios, I would first suggest you read through his guide and familiarize yourself with the overall concept of how the radio works. Once you have a good understanding of that, you'll be able to better understand my deviations from his project.
The first major change from Jeff's radio is the fact that I used the Arduino development board (with an ATmega328) for my radio and he uses just the bare brains of the Arduino, the ATmega168. While the chips are nearly identical, I've chosen to write all the code in the native Arduino coding language and he's using WinAVR and C to program the chip. The second major change is the fact that Jeff's radio has the LCD display the radio station information on a 20X2 LCD display with data coming from the router. I've opted to use a 20X4 LCD display and have the station information statically coded in the Arduino sketch.
The reason behind the first deviation from his project, is that I felt it would be easier for folks to build off the project if I used the standard Arduino development board. I also wanted to simplify the logistics of all the auxiliary electronics in the radio by utilizing a custom-built shield for the Arduino. The rational behind my second deviation to have the radio stations statically coded in the Arduino sketch was driven by the fact that I felt like the user interface was too slow to update the LCD with information for the user. It felt sluggish to me and tedious. I wanted something snappier and with a bit more tactile feel to it. Switching his 10k potentiometer to a 12 position rotary switch and utilizing some nifty voltage dividers on the shield, I was able to accomplish what I wanted.
The code has been through quite a few revisions, it taught me alot about the importance of minimizing your use of SRAM in a micro-controller, the Arduino (ATmega328) only has 2k so it's a precious commodity and I didn't appreciate that in the first few revisions of the code. It left me with a radio that would randomly crash, once I developed an appreciation for the use of SRAM and rewrote the code to eliminate my wasteful use of it, I was awarded with a rock solid radio. Be very careful when working with strings especially, you'll use up the RAM and it'll cause your code to behave in some really weird ways. I found a few great blogs about the subject which I think anyone who is serious about the Arduino should read and FULLY understand.
Also you should be aware that I've changed the two router scripts that Jeff used, I did this to facilitate the Arduino already having the station names and I wanted to offload some of the work to the Arduino from the router. They are included in the zip file I've attached to this post. Just replace his with these if you decide to use my Arduino sketch.
The Radio Box
I purchased my radio box on eBay for approximately $30 US. It was a destroyed 1940's era portable radio which looked much smaller in the pictures, thus the "Retro" in the "Retro Wifi Radio". As you can see from my pictures of the completed radio, it's actually quite large. I'd suggest you find something a bit smaller, although the roominess is nice since I didn't have to worry about squeezing in the speakers and electronics. My primary search criteria for the radio enclosure was one that would allow me to fit the 20x4 LCD in without modifying the box, I'm handy with electronics and mechanical things, not so much with the wood working! Thankfully my father is and he was able to refinish this radio, it looks brand new now and I couldn't have done this project without him, he is after all the man who taught me the basics of mechanics and electronics.
I decided very early on that I wanted to build a custom shield for this project. I've since built numerous shields for the Arduino and some day I'll go back and tweak this one with what I've learned. For now, however, this shield works perfectly. The primary purpose of the shield was to allow me to easily connect the LCD and rotary wires to the Arduino, it also helped to keep things a bit more organized. First, the rotary switch; I decided I wanted tactile feedback when switching stations, the rotary switch was my first pick and the 12 position switch was the largest number of positions I could find so that determined the number of radio stations I could have. It also meant that I'd need a few voltage dividers so I could tell which position the switch was at. Tying up 12 pins on the Arduino was out of the question since I had to use 8 pins for the LCD. The voltage divider concept allowed me to only tie up four of the analog pins. Basically each of the four analog pins has three voltage dividers which are easily differentiated using the ADC values. You can refer to the code to see that I look through the four pins to see if they are within one of the three voltage ranges, based on this, I know exactly which position the rotary switch is at.
The shield also has the LCD contrast trim pot, the router serial connection, 5V power in and I brought out a few other pins for future use in addition to a reset button. Like I said, I'd do things a bit differently with this shield given the knowledge I have today but the shield works without issue.
The LCD Display
The LCD display is nice, having the four rows of display makes the information easier to read, I think. I also opted to truncate the data if it's too large to fit on the LCD rather than having it scroll. I personally never liked scrolling text but perhaps someone will take this project and add that feature. I've broken the four rows into:
- Station Name
- Song Name
- Pre-set radio station number (from 1 to 12 of 12 possible stations)
The idea is that with the Arduino already knows the radio station based on the preset station number so the user gets to see the station names immediately upon changing the rotary switch. Once they leave the switch on a station for a second, the Arduino will display the "Refreshing info" text on the LCD until it can acquire the information from the router. I felt like this makes the interface super intuitive and overall I'm very satisfied with the results.
The Speaker and Audio Amp
For the speaker and audio amp, I decided to hack up some existing speakers I had laying around. The speakers had a volume/on-off switch control had a built-in audio amp and required 12V DC power. This was perfect since the power supply they used was rated for 3.5 amps and I wouldn't have to worry about building an audio amp. I tore out the audio amp board and desoldered the volume control, I used this as the left control knob on my radio to turn the whole system on and off in addition to adjusting the volume. Since I was having a shield manufactured, I decided I'd build a power break-out board with switch control, this way I could have 12V DC coming in to power the speakers and then I could use separate voltage regulators to get the other voltages I needed. Overall, I'm quite happy with the quality of the sound from this setup.
Powering the beast
The speakers that I chose came with a nice power supply that had a current rating that exceeded my calculated requirements by more than 30% which is a design rule I try to use as a minimum. I knew I needed 5V DC for the Arduino and looking at the router's power supply it required 5V DC as well. I measured the current requirements of both the Arduino and the router with my multimeter and decided to use some 5V 1.5A power supply boards I had built for an earlier project. Since I was already using a linear power supply I really could have just used a couple of 5V 1.5A voltage regulators with a heat sink. As I found out after the whole radio was built and used for a few hours, however, some active cooling is necessary for those heat sinks. I had some 5V 40mm fans on hand so I just installed one of those after the fact. You may be wondering why I didn't just use a single regulator setup for both the Arduino and the router? Well, I knew the router would hit ~800mA when streaming and I knew that the Arduino's requirement for ~500mA would push a single 1.5A regulator too hard, besides I have tons of them already and since I had to boards, I used them. If I ever build another one, I'll build a single board with all the regulators and hookups for the different components, I think it'd be cleaner looking and easier to cool with passive cooling.
The Radio in Action
Here is the radio booting up (the router does take that long to boot and start talking to the Arduino) and listening to a few radio stations....
Now that I have my working radio I've had time to dream up some enhancements that I think would make it even neater.
1. I want a web interface to change the radio stations that are preset. Would be able to set the station name and enter the URL for the audio stream.
2. Update the shield to put the incoming power on the VIN pin and not the 5V pin.
3. Design build a single board for all the regulators, power requirements of the components. Eliminate the need for active cooling.
4. Perhaps add the option for scrolling text on long artist/song titles.
5. Add an AM/FM tuner chip to shield to allow internet streaming or local radio.
6. Change left knob from a rotary switch to a rotary encoder.
As always, I've included all the schematics, hi-res photos and the Arduino sketch in the attached zip file.
I completed a new controller board which includes all the enhancements above and built a PDU (Power Distribution Unit) board as well. I've uploaded all the design files which you can download below. Download "UpdatedWIFIRadio" below.
I've always been a big fan of hot foods and hot chilies have always been a staple in our garden. This past year, however, I was educated by the inter-webs that I had always assumed incorrectly that Habanero chilies were the hottest on the planet. In fact, the Bhut Jolokia is by leaps and bounds the king of heat. The Habanero chili is about 300k scoville while the Bhut Jolokia is nearly 1 million scoville. Yeah, while I haven't tried one yet, I'm expecting the worst!
I grew these plants from little seedlings and I'm super excited that I've started seeing the first round of chilies already! Apparently I'm either talented as a gardener or super lucky, these guys don't typically do well in my zone and are supposed to take forever to produce the first chilies.
I'm actually gonna try to whip up some homemade sauce with these guys as they are suppose to have a mango-like flavor under all that heat which should make for some great sauce.
Update: Well, heck fire. While I was researching a bit on the Internet for information regarding the Bhut Jolokia, I found out that there is already a new king...guess I"ll have to hunt the world over to find some Trinidad Scorpion Butch T chilies for next year..