@SiLeX So it may be due to an incorrect connection? Pins of module are untagged and I connected them according to the positions of schemes that I found online. All modules have same pinout?
I built a trip wire for the post box that I'm connecting. It's however based on a mercury tilt sensor so I'm really not sure whether I think it's a great idea putting it to use (at least not with a sturdy case...). However, I can share my code:
#define DIGITAL_INPUT_SENSOR 2 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!)
#define INTERRUPT DIGITAL_INPUT_SENSOR-2 // Usually the interrupt = pin -2 (on uno/nano anyway)
MyMessage msgTripped(CHILD_ID_TRIPPED, V_TRIPPED);
void setup()
{
gw.sendSketchInfo("Postal", "1.0");
gw.present(CHILD_ID_TRIPPED, S_MOTION);
pinMode(DIGITAL_INPUT_SENSOR, INPUT); // sets the motion sensor digital pin as input
}
void loop()
{
boolean tripped = digitalRead(DIGITAL_INPUT_SENSOR) == LOW;
if(tripped) {
gw.send(msgTripped.set("1")); // Send tripped value to gw
}
gw.sleep(INTERRUPT,FALLING, SLEEP_TIME);
}
Thanks again, learned a lot... I decide to give a try there, I also had a look on some components' datasheet and seems to be what I need... Let's see, if end up getting the boards I'll publish a review here later.
@lrtsenar
The MySensors Libraries were designed around the nrf24l01 transceivers which have much more built in capability than a simple 433Mhz Tx/Rx pair. You can make a node which contains a nrf and 433 Rx/Tx and it can transfer messages between the MySensors architecture and common 433Mhz devices. If you are only interested in 433Mhz devices with Domoticz, see the RFLink project for more info. I believe it requires a mega to fit their libraries.