I'm working on a project using an array of IR phototransistors an lm353 op-amp and an Arduino Micro board connected to an alarm. I have
never worked with an Arduino board before, but was told they are relatively easy and very versatile. The input to the Arduino board will receive a voltage value based on how many phototransistors pick up IR light coming in. I need to write a program that will compare the voltage value recorded, to the previous value and if they are different, do nothing. If they are the same, start a timer that after 20 seconds will trigger an alarm. If the voltage values vary inside of the 20 seconds, the timer will reset.
Can anyone give me some guidance on how to do this, I would appreciate help on both the physical set-up and coding because I am a complete newbie!
I'm working on a project using an array of IR phototransistors an lm353 op-amp and an Arduino Micro board connected to an alarm. I have
never worked with an Arduino board before, but was told they are relatively easy and very versatile. The input to the Arduino board will receive a voltage value based on how many phototransistors pick up IR light coming in. I need to write a program that will compare the voltage value recorded, to the previous value and if they are different, do nothing. If they are the same, start a timer that after 20 seconds will trigger an alarm. If the voltage values vary inside of the 20 seconds, the timer will reset.
Can anyone give me some guidance on how to do this, I would appreciate help on both the physical set-up and coding because I am a complete newbie!