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

get_units() problem on STM32F4 #134

Open
idalurf opened this issue Mar 19, 2019 · 1 comment
Open

get_units() problem on STM32F4 #134

idalurf opened this issue Mar 19, 2019 · 1 comment

Comments

@idalurf
Copy link

idalurf commented Mar 19, 2019

Hey !

Well, I'm coding on STM32 using STM32duino and I have an issue on boards Nucleo-F401RE and STM32407 Discovery, also called DISCO-F407G. By the way both are running on a M3 core.

Using the get_units() function with a parameter will crash the program.

for example this code won't work : (it will fail after 3 or 4 read)

#include "HX711.h"

// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 2;
const int LOADCELL_SCK_PIN = 3;

HX711 scale;

void setup() {
  Serial.begin(38400);
  Serial.println("HX711 Demo");
  Serial.println("Initializing the scale");
  scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
}

void loop() {
  Serial.print("\t| average:\t");
  Serial.println(scale.get_units(10), 1);
  delay(500);
}

But this works perfectly with get_units(), that's why the issue seems to be the same as for the ESP32 in #73
If you have any clue, please let me know, thank you ! :)

@amotl
Copy link
Contributor

amotl commented Mar 19, 2019

Dear @idalurf,

thanks for writing in. As this library has been able to gain some more attraction recently again, we are confident that we will be able to address the issue you are observing.

Please don't hesitate to get back to us if you don't hear back from anyone for a while. Personally, I'm currently a bit swamped which prevents me from dedicating myself to this right away.

With kind regards,
Andreas.

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

2 participants