SeedLabs-it / smartknob-firmware

Repository for the Smart Knob Firmware (Currently supporting Dev Kit v0.1)
Other
23 stars 2 forks source link

Added factory weight strain calibration. #119

Closed carlhampuswall closed 3 months ago

carlhampuswall commented 4 months ago

Adds factory strain calibration, steps started by pressing Y on the keyboard for now.

Data saved along with PB_PersistentConfiguration.

PRESS_WEIGHT in platformio.ini specifies in grams what force/weight needs to be applied for a press. (250g) CALIBRATION_WEIGHT in platformio.ini needs to be adjusted to future calibration weight.

brushknight commented 3 months ago

should we spam user with INFO: Strain sensor needs Factory Calibration, press 'Y' to begin! Or just say it on startup as warning?

brushknight commented 3 months ago

And maybe it would be great to overwrite brightness of the screen to 100% and show some hints there (well, 1 hint, put the weight on top)

carlhampuswall commented 3 months ago

And maybe it would be great to overwrite brightness of the screen to 100% and show some hints there (well, 1 hint, put the weight on top)

Can add this at later date. Since this should mostly only be done at "factory" ill leave it out for now.