The Raspberry Pi was built as a cheap, educational computer platform for students. But it’s exposed GPIO pins, linux support and prices comparable to an Arduino, have all contributed to it’s meteoric rise as an ‘internet of things’ style embedded computer. Many projects have used it’s small form factor to control all types of things. For example, the Cloud Lamp project, that I recently built!
In the past, when I’ve wanted to connect a hardware project to the internet, I’ve gone with Arduino and an ethernet shield. The problem with this solution is that the price was high and the available space for software was limited. This is where the Raspberry Pi really shines! But in order for the Raspberry Pi to provide these great benefits, you’ll need your program to be able to communicate. In particular, a web-based API will make it a snap to communicate with. Python is a popular language for using the GPIO pins and so pairing that with the Twisted networking module makes for a powerful program.
First check out what I was able to accomplish using this technique, then, after the video, stay tuned for a simple, pared down and detailed tutorial of the basics. After that I jump into the code that powers the actual lamp!
Check out the full tutorial here!
Each Friday is PiDay here at Adafruit, be sure to check out our posts, tutorials and new Raspberry Pi related products. Have you tried the new “Adafruit Raspberry Pi Educational Linux Distro”? It’s our tweaked distribution for teaching electronics using the Raspberry Pi. But wait, there’s more! Try our new Raspberry Pi WebIDE! The easiest way to learn programming on a Raspberry Pi.
We now have Raspberry Pi Model B with 512MB RAM in stock and shipping now!
Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground” – Adafruit’s Apps!
Maker Business — “Nerds and Rockers to Face Off in a Queens Parking Lot”
Wearables — Resistance is futile
Electronics — 1, 2, 3, Freeze!
Biohacking — Biohacking Events this Week
No comments yet.
Sorry, the comment form is closed at this time.