The Final Code
Post date: May 26, 2015 10:36:35 AM
Schematic:
Conclusion:
According to IDE the current sketch use the following memory:
Sketch uses 12,298 bytes (38%) of program storage space. Maximum is 32,256 bytes.
Global variables use 912 bytes (44%) of dynamic memory, leaving 1,136 bytes for local variables. Maximum is 2,048 bytes.
it's more than 1/3rd of the program storage space and almost 50% of the dynamic memory.
My code is of course not the most efficient one but that show the limit of the memory size of the arduino uno.
I need to find a solution for external storage on SD card or via serial or network.
The way the PIR sensor trigger according to movement is not very clear yet for me. I tweak a bit the 2 pot on the board but without much success. The best result was with the original pot position. The sensor trigger very well the start of movement but struggle to re-trigger in case of continuous movement.