I am working on a time critical project. I use an optical sensor. I would like to know the initialisation or boot time the sensor after power given which will be in µS. How could I measure that?


closed as off-topic by Mark Booth Nov 13 '18 at 10:29

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions which are not specific to robotics are off-topic, but can be asked on other Stack Exchange sites: Stack Overflow for programming questions, Electrical Engineering for electronics questions and Arduino and Raspberry Pi etc. for their questions. Even questions which are on-topic here may still receive quicker and better answer on a more appropriate stack exchange site." – Mark Booth
If this question can be reworded to fit the rules in the help center, please edit the question.


First crucial thing to know is what is your sensor - its part number, to be clear. If your sensor is digital, its initialization time is probably given in the datasheet.

If you are using analog one, check datasheet too - settling time might be one of values documented. If you can't find anything in the datasheet, you can perform simple test using oscilloscope:

  1. Place sensor in some stable state, ie. looking at uniform surface from a fixed position,
  2. Connect the probe to analog output of the sensor and probing ground to sensor's ground,
  3. Set oscilloscope to single trigger mode,
  4. Power up the sensor.

That way you can observe analog voltage rising from zero to some value, determining its initial settling time.

  • $\begingroup$ +1. The information should be published in the datasheet. $\endgroup$ – Chuck Nov 13 '18 at 18:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.