Dear support,
we're using LDC1312 for weight sensing using 2 coils: cell and reference coils.
The main idea is to always use the inductance differences between them to estimate weight.
Metal target is placed atop of cell coil, reference coil is "free" of metal atop of it.
Our issue is that inductance values is very different on a different devices.
E.g. on my prototype I see ~200 in decimal form, whenever my teammate estimates ~4000.
The binary file we have flashed in our microcontrollers is the same -> configuration is the same.
The only thing is can be different is a different values of C tank. Nominally they're the same, but their values can differ inside the declared accuracy.
I'm confused in my investigations on what's wrong so please help.
Here's a piece of code where configuration is takes it's place. I believe everything should be clear.
{LDC13xx16xx_CMD_REF_COUNT_CH0,0xFFFF}, {LDC13xx16xx_CMD_REF_COUNT_CH1,0xFFFF}, {LDC13xx16xx_CMD_OFFSET_CH0,0x0000}, {LDC13xx16xx_CMD_OFFSET_CH1,0x0000}, {LDC13xx16xx_CMD_SETTLE_COUNT_CH0,0x0400}, {LDC13xx16xx_CMD_SETTLE_COUNT_CH1,0x0400}, {LDC13xx16xx_CMD_CLOCK_DIVIDERS_CH0,0x0000}, // bypass dividers {LDC13xx16xx_CMD_CLOCK_DIVIDERS_CH1,0x0000}, {LDC13xx16xx_CMD_ERROR_CONFIG, 0xFFFF}, {LDC13xx16xx_CMD_CONFIG,0x0000}, // CLKIN pin {LDC13xx16xx_CMD_MUX_CONFIG, REG_MUX_CONFIG_AUTOSCAN_EN | REG_MUX_CONFIG_DEGLITCH_1MHZ}, {LDC13xx16xx_CMD_RESET_DEVICE, 0x0000}, {LDC13xx16xx_CMD_DRIVE_CURRENT_CH0,0x0000}, // {LDC13xx16xx_CMD_DRIVE_CURRENT_CH1,0x0000}, //
CLKIN pin is chosen to be internally clocked due to the errors with PWM on my microcontroller.
Thanks !