In this blog post I'll show you how to add RF 433MHz to your Raspberry Pi.
- A Raspberry Pi (ORLY?) I'm using the revision 2 Pi, but if you have the revision 1 board, you'll just need to be mindful of the different pin numbers. As you'll see, the code uses *wiringPi* numbers and these haven't changed between revisions (thankfully!) but be aware that the RF receive pin we use will be BCM GPIO pin 27 in revision 2, and 21 in revision 1. That little tidbit is just for the curious; as I say the wiringPi pin numbering system abstracts this for us nicely.
- A 433MHz Transmitter module
- A 433MHz Receiver module
- The code! https://github.com/ninjablocks/433Utils
The step from making a Driver work within your own development environment to making it work for anybody is a larger one than most would expect. One crucial step in that respect is deploying your code somewhere that is publically accessible. Git is not the only version control system out there, nor is github the only hosted repository, but it's the one we use, and as such will be the focus of this How-To.
Here's a quick guide to deploying a Node app to Heroku. It's a good place to start and allows you to separate issues you might have with an app you're working on from issues related to deployment.
It's accompanied by a script that's available on github: https://github.com/justy/node-express-heroku
If you've ever wanted to pull apart your Ninja Block to get at the goodies inside, we've made a short video showing you how to do exactly that.
Why might you like to do that?
Have a look at the video and let us know in the forums what you'd like to see in future blog posts and videos!
This mod has been out there on the Interwebs for some time now but I have never tried it myself and decided to give it a go. I'm glad I did- a motor that's controllable in this fashion is incredibly useful.