nikouz
Junior Member level 2
- Joined
- Feb 5, 2021
- Messages
- 20
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 175
Hi to every one.
I am building a project which monitoring the enviroment polution. The project except the sensors includes an RTC and an SD card to write the values 3 or 4 times in 24h period. The project works but the issue i have is how to determine these 3 or 4 times to write in the card. First i thought to use timer with a call back function, then i thought to polling the RTC square wave of 1Hz and last i thought to just compare the RTC time array with my preferable sampling times. I am thinking that all these ways looks primitive and i wonder if someone has done something similar or there is another solution.
best regards
I am building a project which monitoring the enviroment polution. The project except the sensors includes an RTC and an SD card to write the values 3 or 4 times in 24h period. The project works but the issue i have is how to determine these 3 or 4 times to write in the card. First i thought to use timer with a call back function, then i thought to polling the RTC square wave of 1Hz and last i thought to just compare the RTC time array with my preferable sampling times. I am thinking that all these ways looks primitive and i wonder if someone has done something similar or there is another solution.
best regards