FAQ

During the first calibration, the calibration always failed. What could be the reason?

userHead Tonny12138 2024-07-11 06:04:28 53 Views0 Replies
During the first calibration, the calibration always failed. What could be the reason?
2025-07-24 14:51:05

When calibrating, the relevant parameters are stored in the specified position in EEPROM. If other data previously saved in the same position in EEPROM, there may be a conflict, resulting in an inability to calibrate properly. Use the following code to erase the contents in the specified position in EEPROM. Run it once, then upload the sample code again to restart the calibration.

 

#include <EEPROM.h>

#define KVALUEADDR 0x0F

void setup(){

for(byte i = 0;i< 8; i++ ){

EEPROM.write(KVALUEADDR+i, 0xFF);

}

}

void loop(){

}

userHeadPic Tonny12138