http://code.google.com/p/rc-switch/
Here is a example of what can be done with it.
http://www.youtube.com/watch?v=TlHfjvLdaBA
I'm working on an easy and cheap method to communicate between an Arduino and an Raspberry PI
The code is everything but pretty, still it works pretty well and it is very easy to modify to suit your needs.
For now, you can only control Digital Pins of Arduino with the Raspberry PI, but i will be working on a way to sends sensor informations to the Raspberry PI.
You just need an 433.92Mhz emitter (on the pi) and an 433.92Mhz receiver (on the Arduino)
It costs me 6€ (for the two).
How to make it works:
Arduino side
Code: Select all
#include <Piwi.h>
//Initialize Piwi with Receiver Data Pin on Digital Pin 2
Piwi piwi(2);
void setup()
{
}
void loop()
{
// Listen for Rpi
piwi.listen();
}
Code: Select all
./ardwl_cs.sh 6 1
https://github.com/maditnerd/433wireles ... z?raw=true
You just have to extract the arduino part in arduino/librairies and to copy the Raspberry PI part anywhere you want on the Rpi. (There is an example in the arduino library)
The git hub is here:
https://github.com/maditnerd/433wirelessPI
An old version running (Code was really improved)
https://www.youtube.com/watch?v=YRHWZOO ... re=g-all-u
EDIT:
How it works (disregard what said in the video)
When you send the number 6 on the raspberry PI it will sends 65 times octets of 1 (11111111)
Why 65 times ? So we are sure the message was correctly transmit even if the arduino received 63 times the messages or 61 times, it will undestand 6.
The bash script just sends two times a message.
If you want to send just an number use arduino_wireless number
If you want to use the information sends for others purpose you will have to modify the library (or ask me to do it).