Hello,
I Need a simple Setup:
- Analog Input 0-5V A1
- Hardware Switch S1
- Digital Output D1
- Digital Output D2
When S1 is closed I want to read the values of A1 and store the highest and lowest value during S1 is closed. Lets say I measured 1,2V and 3,6V.
When S1 is open I want to read A1 and when A1 reaches 1,2V I want the D1 to be HIGH. When A1 reaches 3,6V I want D2 to be HIGH.
This is all simple and I have no any questions about this. My question is: how can I store the measured values 1,2V and 3,6V in a way, they stay in Memory even if there was no power to arduino for a while?