![]() For example, a photoresistor may give you a minimum value of 30 and a maximum value of 600 depending on the ambient light available at the time you do the measuring. The problem is that your sensor might give you different minimum and maximum numbers inside that range. Why you need to calibrate your analog input sensorsĪrduino will always return a number from 0 to 1023 when you call analogRead() on a pin. If the sensors have gone through calibration (which this library provides) then you can always assume that the values you get range from 0 to 1023. The philosophy behind this library is that you never work with the sensor values directly but rather with the values provided by the library. I'm not claiming that this is the fastest calibration method nor the best it's just my take on the subject. I know there are dozens of ways to calibrate sensors but I wasn't too happy with the ones I found online so I decided to write my own. Version 1.0 Created by Julian Vidal Why use this library Calibrator Arduino library for calibrating sensors hooked to analog inputs ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |