Hello - I have some problem

I have a project with an Arduino to college and do not know how to make a comeback in the program. I'll describe a little known project that you do not know what to do.

My project is to simulate a burglary and fire stations, and using an Arduino uno, 4 buttons, magnetic door contact, a serial LCD, a temperature sensor LM35DZ, and a motion sensor ePIR (50+ Senzori pentru Placi de Dezvoltare - Robofun.ro) and 2 LEDs

4 buttons we divided into two parts: one button causes the alarm to start immediately, and the other 3 I did a keyboard buttons. My problem is that when the alarm I can not get out of it than the reset button, and I would not want to leave the alarm with a combination of three buttons.

attach with the code they use, say I'm not speaking English, and source code can be found with words from another language as comments or showing on the LCD.

My desire is to help me I really need help ... thanks

program_timer.pde (8.01 KB)

The problem is that you use many calls to delay() and wait inside while loops in the loop() function. This will it make impossible to handle input meanwhile.

Fix that. For more informations, look at the tutorial here: http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay

As an alternative you could also use interrupts, but from the way your code looks is way beyond your programming skills to do successfully. And you would have to rewrite most your code too.

Korman

hello! Thanks for the suggestions but for me the first time you use Arduino and not otherwise know how to schedule it. more please give me a helping hand and show me a model on my code even more concise. Thanks again and wait for your answer.