Question: Specific loop duration

Hey folks,

I'am trying to program a temperature logger:

  • 1 Rasperberry Pi
  • 2 or more Arduino Uno (collecting measurements from OneWire temp probes)

The Rasperry Pi reads the serial data. Here comes the question: How do I program the Arduino, that it sends data every two minutes.

every two minutes:
send sensor 1 data
wait 3000 ms
send sensor 2 data
wait 3000 ms
send sensor 3 data

The program should run every two minutes and not for example every two minutes + duration of the measurement sending. Is there any solution for this approach?

Thanks in advance!

frdr

Yes, look at the blink without delay example in the IDE.
It may need a very small correction