You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thanks for your library :) It saved me a lot of time. I use stm32f446ze and found an issue with your function __STATIC_INLINE void HX711_delay_us(uint32_t microseconds)
It worked only in the debug mode. I solved this issue initialised DWT:
__STATIC_INLINE void DWT_Init(void)
{
CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; // allow to use counter
DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; // start counter
}
And of course it is needed to call this function in void HX711_init(void)
The text was updated successfully, but these errors were encountered:
Hi @yoggi56 , I was facing the same issue and solved it in a similar way, however there is another issue that I am facing regarding the calibration of my load cell. The load cell loses its calibration after few minutes of sitting idol i.e. the value of return data keeps creeping up. Can you kindly tell how did you actually calibrate your load cell using this library. It would be really helpful if you could share the code with me. Regards.
Hi! Thanks for your library :) It saved me a lot of time. I use stm32f446ze and found an issue with your function __STATIC_INLINE void HX711_delay_us(uint32_t microseconds)
It worked only in the debug mode. I solved this issue initialised DWT:
And of course it is needed to call this function in void HX711_init(void)
The text was updated successfully, but these errors were encountered: