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

Unpull DOUT pin for ESPRESSIF boards #193

Merged
merged 2 commits into from
Nov 15, 2021
Merged

Unpull DOUT pin for ESPRESSIF boards #193

merged 2 commits into from
Nov 15, 2021

Conversation

Simonas0
Copy link
Contributor

I've tested multiple ESP8266 modules and all fail to pull correct value from HX711 in range from 0x20000 to 0x30000 (instead it reads just a bit below 0x20000). When load cell is pushed hard enough, reading immediately jumps from a bit below 0x20000 to a bit above 0x30000.

#include <HX711.h>

HX711 loadcell;

void setup() {
  loadcell.begin(14, 12);
  Serial.begin(9600);
}

void loop() {
  Serial.println(loadcell.get_units());
}

Changing DOUT mode from INPUT_PULLUP to INPUT fixes the issue.
I've also tested multiple Arduino Nano modules and they all function properly regardless DOUT mode.

@nielsole
Copy link

INPUT_PULLUP was introduced by #138

@Simonas0 Simonas0 changed the title Unpull DOUT pin Unpull DOUT pin for ESPRESSIF boards Nov 14, 2021
@Simonas0
Copy link
Contributor Author

I've "unpulled" DOUT only for Espressif boards.
Let me know if I need to do anything else in order to get this merged.

@bogde bogde merged commit 5500efd into bogde:master Nov 15, 2021
@bogde
Copy link
Owner

bogde commented Nov 15, 2021

Thanks, I just merged it.

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

Successfully merging this pull request may close these issues.

4 participants