Changed HX711 Pins
This commit is contained in:
1 parent
4b93362dd7
commit
3e995faa8c
3 files changed
+2
-6
No files matched your search
Binary file not shown.
+2
-2
@@ -18,8 +18,8 @@ const uint8_t PN532_RESET = 33;
|
||||
// ***** HX711 (Waage)
|
||||
// HX711 circuit wiring
|
||||
#if CONFIG_IDF_TARGET_ESP32S3
|
||||
const uint8_t LOADCELL_DOUT_PIN = 19;
|
||||
const uint8_t LOADCELL_SCK_PIN = 20;
|
||||
const uint8_t LOADCELL_DOUT_PIN = 5;
|
||||
const uint8_t LOADCELL_SCK_PIN = 6;
|
||||
#else
|
||||
const uint8_t LOADCELL_DOUT_PIN = 16;
|
||||
const uint8_t LOADCELL_SCK_PIN = 17;
|
||||
|
||||
@@ -261,11 +261,7 @@ bool deepSearchScale() {
|
||||
// without pull-up resistor (10k) on LOADCELL_DOUT_PIN the hx711 lib functions
|
||||
// are not reliable in detecting a missing chip
|
||||
// these tests work even without pull-up resistor
|
||||
#if CONFIG_IDF_TARGET_ESP32S3
|
||||
const uint32_t timeout = 5000; // 5 seconds timeout for waiting for the chip to respond (Recogignition Problems with ESP32-S3)
|
||||
#else
|
||||
const uint32_t timeout = 1000; // 1 second timeout for waiting for the chip to respond
|
||||
#endif
|
||||
const int samples = 10;
|
||||
|
||||
pinMode(LOADCELL_DOUT_PIN, INPUT);
|
||||
|
||||
Reference in new issue
Block a user