Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with HX711_delay_us #1

Open
yoggi56 opened this issue Feb 6, 2021 · 3 comments
Open

Problem with HX711_delay_us #1

yoggi56 opened this issue Feb 6, 2021 · 3 comments

Comments

@yoggi56
Copy link

yoggi56 commented Feb 6, 2021

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)

@Dil-awaiz
Copy link

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.

@yoggi56
Copy link
Author

yoggi56 commented Feb 13, 2021

I have the same issue with calibration so I'm trying to solve it. If you manage to solve this problem please send a code or link :)

@pbui123
Copy link

pbui123 commented Dec 18, 2022

I have the same issue too. Hope that you guys manage to solve this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants