The Final Code

Post date: May 26, 2015 10:36:35 AM

Components:

    • 1x Arduino Uno Board

    • 1x Breadboard

    • 1x LCD Display WH 1602

    • 1x PIR sensor FIR800

    • 1x Ultrasonic sensor HCSR04

    • 1x photoresistor VT90N2

    • 1x Temperature sensor TMP36

    • 1x Temperature sensor LM35

    • 4x 220 Ohm

    • 1x 10K Ohm

    • 1x potentiometer 10K Ohm

    • 1x Tilt switch

    • 2x Micro switch

    • 1x buzzer

Breadboard:

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.

Previous:The display