Hello People.
I'm about to get started on a Arduino project, that uses the Arduino as an I/O device connected to a KNX bus coupler - and on that way integrate the I/O to the KNX BUS.
But i was planning, to have different tasks, could be:
- Measuring S0 pulse from energy meter
- Sending digital inputs to the Bus
- Sending analog / I2C values to the bus
But when doing this, i need different times, like the Analog values must only be updated once per 5 min, but the S0 pulse is only active for about 40ms which i also need to catch, same as the other digital inputs i need to catch and evaluate....
I was thinking about doing something with a loop, and then read out the actual time, and add 5 min to that, and then it only ran some of it everey 5 minutes, while the rest is on full speed? What can you guys suggest?