Do any of you have any experience with using such module, or can tell me what you think I might be doing wrong? I've tried a lot of things so far, but honestly am running out of ideas already.
What type of wall sockets are you trying to sniff
The Arduino RF switch library only works for devices that use the SC2262 / SC 2272 type decoding chips.
Not all wall sockets however use these chips.
I am trying a similar thing: trying to sniff the signal that a cheap chinese made LED controller remote is sending out of 433MHz. I've tried various libraries, and checked that I can send and receive between 2 Arduinos using the VirtualWire library (http://www.airspayce.com/mikem/arduino/). This works fine.
/*
* Demo for RF remote switch receiver.
* For details, see RemoteReceiver.h!
*
* This sketch shows the received signals on the serial port.
* Connect the receiver to digital pin 2.
*/
#include <RemoteReceiver.h>
void setup() {
Serial.begin(115200);
// Initialize receiver on interrupt 0 (= digital pin 2), calls the callback "showCode"
// after 3 identical codes have been received in a row. (thus, keep the button pressed
// for a moment)
//
// See the interrupt-parameter of attachInterrupt for possible values (and pins)
// to connect the receiver.
RemoteReceiver::init(0, 3, showCode);
Serial.println("setup done");
}
void loop() {
}
// Callback function is called only when a valid code is received.
void showCode(unsigned long receivedCode, unsigned int period) {
// Note: interrupts are disabled. You can re-enable them if needed.
// Print the received code.
Serial.print("Code: ");
Serial.print(receivedCode);
Serial.print(", period duration: ");
Serial.print(period);
Serial.println("us.");
}
When I measure voltage on the data pin I see it fluctuate between 0 and 1.5V depending on pressing a button on the remote. So it is definitely seeing signals!
Has anyone been able to do this? This is the module set that I am using:
(you can find many of these and similar on Ebay when you search for "433mhz")