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
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:
- Place sensor in some stable state, ie. looking at uniform surface from a fixed position,
- Connect the probe to analog output of the sensor and probing ground to sensor's ground,
- Set oscilloscope to single trigger mode,
- Power up the sensor.
That way you can observe analog voltage rising from zero to some value, determining its initial settling time.