arduino UNO using I2C bus boot time

Hello,

I successfully design a software using the I2C bus.
This software don't use the serial port, just one wire bus, SPI and GPIOs.

Device are powered by a relay, I have to know the boot up time.

I just need to know the boot time before I can send and request data on the bus with a margin.

Best regards.

Thierry

Depends on the code you wrote...

If you want to measure, just set a pin high when you're done setting up everything and measure the time between power on and that pin going high. Easiest with a 2 (or more) channel scope.

Or just use a arbitrary time based on trail and error...

Hello,

The arduino uno is connecting in the I2C bus as a client.

The setup fuction is very short.

I have to need the time the master in the I2C bus have to wait before sending the first data....

I can wait but the delay should be suffisiant in all case.

Many thanks in advance.

Best regards.

Thierry

One thing you can do, is include code to send a client status response message in response to a poll from the master. Then when you initialize the master, have it poll the client for a ready status.

Then you don't have to measure the startup time or estimate a safety margin.

Hello,

Yes it's a great idea !

I can do it easly !

Thanks for the idea !

Best regards

Thierry