smartknob-ha / firmware

smartknob firmware, esp-idf based instead of tasmota
GNU Affero General Public License v3.0
2 stars 1 forks source link

ADC - HX711 Component #39

Open SquaredPotato opened 4 months ago

SquaredPotato commented 4 months ago

This component should provide easy access to the strain sensor readouts. Support already exists in the esp-idf-lib so this should be a simple wrapper.

This component should also have a means to calibrate the readout.

Perhaps it's better to present the strain sensor as a "button" with multiple press actions, like

enum strain_state {
    idle,
    press,
    press_hard
}

class xxx {
public:
    strain_state get_strain_state();
}
abrondijk commented 1 month ago

Issue is on-halt until we have revision 3 of the hardware. Revision 2 was mistakenly ordered in the wrong PCB thickness, so any strainsensor values are not representative.