Category Archives: Projects

OPP: ControlMyPi.com

Thanks to Jeremy Blythe, you can check out the status of my Pi, uh, if it’s on… which it is most likely not.

Head on over to www.controlmypi.com to learn how to control your Raspberry Pi from the web.  See you there!

Jeremy’s instructions are great, but I’m a Linux newbie so I ran into problems fast… if you’re like me don’t have pip installed on your pi (and you don’t know what pip is), then your first step would be something like:

sudo apt-get install python-pip git-core python2.7-dev

Audio Spectrum Analyzer

There is a great tutorial on how to setup and use a 2×16 LCD on the Arduino website:
http://arduino.cc/en/Tutorial/LiquidCrystal

Here’s a good explanation of FFT theory:
http://www.arduinoos.com/2010/10/fast-fourier-transform-fft/

My pinout is a little different because I wanted to save as many PWM pins to add servo control for the next stage of this project.  I’ve been tinkering with the idea of moving physical objects around based on audio input, instead of just showing levels on a display.

To visualize the frequency levels of the incoming audio signal I use the 8-bit Fast Fourier transform code which is discussed here:
http://forum.arduino.cc/index.php/topic,38153.0.html

Honestly, I’m not convinced that what I’m seeing on the display is an accurate representation of the audio spectrum that I’m listening to, but it looks pretty cool and that’s all I really care about at this point.  There is hardware available that would produce much more accurate results than this software.  There is a “Color Organ” project on the Make website that I’d like to build someday:
http://blog.makezine.com/2010/10/18/circuit-skills-led-color-organ-spon/

Additional Reading:
http://forum.arduino.cc/index.php?topic=38153.0
http://forum.arduino.cc/index.php?topic=182169.0

Code and libraries on GitHub

Arduino to TV Adapter

You can send all kinds of fun stuff to a TV from an Arduino using the TVout Library. All you need is an RCA cable and two resistors (470 & 1k).

TV Ground to Arduino Ground
TV Signal to 470 to pin 7
TV Signal to 1k to pin 9
(Audio to pin 11)

http://code.google.com/p/arduino-tvout/
http://www.instructables.com/id/TV-Out-with-Arduino/

Here is the one I built to experiment with:

P1020845P1020846  P1020847

It works!  When I get another long RCA I’ll add audio support.

Here’s some code that makes this using a Line In Adapter:

or use this code for this result:

audio is Trash 80

or use this code for this result:

audio is B.L. Underwood (no relation)

and you can do what with what!!!

 

NFC (RFID) Tag Reader

photo

I get the feeling that NFC and RFID will play a larger part in our lives in the years to come.  I decided that I wanted to find out more about the technology and its uses.  I acquired a Seeed Studios NFC Shield V2.0b for Arduino to experiment with.  It comes in a cool looking box.

The board and example code work great so I decided to put it all in an enclosure to make it less vulnerable, and a little more useful.  I added an RGB LED, a Piezo buzzer, and hardwired a 9 Volt adapter through a switch to an Arduino Uno.

P1020852

You can see where I accidentally melted the plastic case near the power switch.  It looks like I did it with the hot glue gun, but it was actually from the Heaterizer.  You can’t see in these photos but there is a 220k Ohm resistor under the heat shrink connecting the LED to ground.  The antenna is taped to the top of the case and it’s wire clips on/off easily.

P1020851  P1020855 P1020853 P1020857

Enclosure:
http://astore.amazon.com/varindustries-20/detail/B004G51HCK

NFC Shield:
http://astore.amazon.com/varindustries-20/detail/B00C15ALBA

NFC Tags:
http://astore.amazon.com/varindustries-20/detail/B009WFOLR2

Code on GitHub.