Update : Day 3 and still all PIR nodes are working
I´m using the given sketch here.
Komaandy
@Komaandy
Best posts made by Komaandy
-
RE: My Slim 2AA Battery Node
-
RE: My Slim 2AA Battery Node
Still up and running stable.
8Mhz Bootloader did the trick for me -
RE: Slim Node as a Mini 2AA Battery PIR Motion Sensor
@siod
I removed both to make the smaller ( HC-SR505 ) work with ~3Volt and bridged these contacts as shown in the picture
They work perfectly fine for me and are not too sensitive.
Actually they dont even react on my cats, which is nice, because the "bigger" HC-SR501 always did...
Latest posts made by Komaandy
-
Inlcusionmode crashes FHEM
Hello, i have a strange problem.
I have a lot nodes working properly, but when trying to connect another node ( i tried several) it crashes FHEM.These nodes i want to connect have been working, but due to a new Gateway i needed to reconnect all of them.
So, 10 out of 14 are connecting just fine, but as i said, there are some nodes that crash the system when i enable autoinclusion and power the node on.Any suggestions ?
I already installed FHEM on a new machine and restored from a backup, but the problem persistsKR
Komaandy
-
RE: Slim Node as a Mini 2AA Battery PIR Motion Sensor
I am having the exact same issues with the Mysensor2.0 version ... (!)
When using Arduino IDE 1.65 and Mysensor 1.54 librarys and the sketch that is pinned in the header it works .
-
RE: Slim Node as a Mini 2AA Battery PIR Motion Sensor
And with the "bigger" HC-SR501 all one need to do is obviously to connect the VCC to the pad or pin.
For me at least it is working pretty fine as well. No false positives or anything else negative.
Of course you have to remove the jumper first. -
RE: Slim Node as a Mini 2AA Battery PIR Motion Sensor
@siod
I removed both to make the smaller ( HC-SR505 ) work with ~3Volt and bridged these contacts as shown in the picture
They work perfectly fine for me and are not too sensitive.
Actually they dont even react on my cats, which is nice, because the "bigger" HC-SR501 always did... -
RE: My Slim 2AA Battery Node
@m26872
thanks again for this great idea and that you developed these fine boards !
And by the way...
As you are using fhem as well...
How do you manage to reset the tripped "1" in Fhem ?
I just added a delay and a gw.send"0" to your sketch :), but using fhem would be more sophisticated actually ...
Thanks -
RE: My Slim 2AA Battery Node
Still up and running stable.
8Mhz Bootloader did the trick for me -
RE: My Slim 2AA Battery Node
Update : Day 3 and still all PIR nodes are working
I´m using the given sketch here. -
RE: My Slim 2AA Battery Node
So, it seems i made some progress.
After changing to the @GertSanders bootloader ( https://www.openhardware.io/view/33/Various-bootloader-files-based-on-Optiboot-62) all the PIR nodes seem to be stable.
I´m using these settingsWish me luck
-
RE: My Slim 2AA Battery Node
@gohan
maybe like this ?void loop() { wdt_enable(WDTO_8S); // Read digital motion value bool tripped = digitalRead(DIGITAL_INPUT_SENSOR) == HIGH; Serial.println(tripped); send(msg.set(tripped?"1":"0")); // Send tripped value to gw wdt_disable(); // Sleep until interrupt comes in on motion sensor. Send update every two minute. sleep(digitalPinToInterrupt(DIGITAL_INPUT_SENSOR), CHANGE, SLEEP_TIME); }```
-
RE: My Slim 2AA Battery Node
@gohan said in My Slim 2AA Battery Node:
LDO
@gohan
Hi, i added a WDT now into the MotionSensorSketch.
Well at least i guess i did. I just read about it , never used it before. Does the 1Mhz Optiboot boatloaders support this ?Unfortunalty I didnt recieve my 3,3V boosters yet and i dont have LDO´s around.
Concerning the bootloaders. Do you have a suggestion which one to use ? As I read that sticking to 1Mhz is important when using only 2AA batteries because of instability when voltage goes belowe certian values.
Obviously i could use more batteries, but then i cant supply the nRF2401 from the board right ?// Enable debug prints #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 #define MY_NODE_ID 40 #include <MySensors.h> #include <avr/wdt.h> unsigned long SLEEP_TIME = 120000; // Sleep time between reports (in milliseconds) #define DIGITAL_INPUT_SENSOR 3 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!) #define CHILD_ID 1 // Id of the sensor child // Initialize motion message MyMessage msg(CHILD_ID, V_TRIPPED); void setup() { wdt_enable(WDTO_2S); pinMode(DIGITAL_INPUT_SENSOR, INPUT); // sets the motion sensor digital pin as input } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Motion Sensor", "AndyWasHere"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID, S_MOTION); } void loop() { // Read digital motion value bool tripped = digitalRead(DIGITAL_INPUT_SENSOR) == HIGH; Serial.println(tripped); send(msg.set(tripped?"1":"0")); // Send tripped value to gw // Sleep until interrupt comes in on motion sensor. Send update every two minute. sleep(digitalPinToInterrupt(DIGITAL_INPUT_SENSOR), CHANGE, SLEEP_TIME); wdt_reset(); }```