Zapit-Optostim / zapit

General purpose optostimulation system
GNU Lesser General Public License v2.1
6 stars 1 forks source link

Laser power calibration procedure needs to be optimised #67

Closed raacampbell closed 1 year ago

raacampbell commented 1 year ago

The good news is the the existing procedure seems accurate to around 0.1 or 0.2 mW. We can do better, though, and there are issues such as the quantization the current approach creates.

It does not make sense to calibrate over the whole range. So we need a nice calibration procedure for handling only the range we care about. e.g. This can be as easy as setting the max control value to a lower number. This will increase accuracy of the fit, likely.

How good is linear, actually? Test it. Might not need the photodiode at all. I suspect it could work very well with a linear laser like the Obis to simply define a maximum control voltage, measure the power associated with it, assume zero intercept, and work off that.

raacampbell commented 1 year ago

Seems better now. Just a straight line and no calibration curve for Obis: 97b3a7299bee738b585bd6a5135138eb9200fee8 and 2d105cbe87a4f94e2bcd36a023a1fb669acec95b