You are not logged in.

#1 2020-12-17 12:18:45

bifordboy
Member
Registered: 2017-02-27
Posts: 1

How to use the new HX711 Pressure Sensor support?

Hi Shahin,
you introduced support for pressure Sensor in the new 4209 build. I found these new settings in then machine.json file:

"PressureType": 0,
"PressureAddress": "",
"PressureSpeed": 0,
"PressureRegex": "",
"PressureDebug": true,
"ScaleClockPin": "",
"ScaleDataPin": "",
"OpenScaleAddress": "",

Would you be so kind to shortly explain what do do or setup, to use the sensor to stop the peel move.

Thanks in advance,
Michael

Offline

#2 2020-12-17 17:45:48

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: How to use the new HX711 Pressure Sensor support?

If you are wiring HX711 directly you need to fill below parameters:
"ScaleClockPin": "",
"ScaleDataPin": "",

Then open /analytic path twice to see data being visualized.

Offline

#3 2021-01-08 14:03:30

binfordboy
Member
Registered: 2017-02-28
Posts: 54

Re: How to use the new HX711 Pressure Sensor support?

Hi Shahin,
all I get is this log message:

Module scale: Error reading waitForDataReady error: timeout

Offline

#4 2021-01-10 06:12:41

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: How to use the new HX711 Pressure Sensor support?

It seems pins does not get low to start reading, may indicate wiring issue.

Offline

#5 2021-02-16 11:58:57

binfordboy
Member
Registered: 2017-02-28
Posts: 54

Re: How to use the new HX711 Pressure Sensor support?

After checking and doublechecking the wiring i assumed my hx711 or the loadcell is broken so i bought a second one from a different vendor.  Its the same behaviour after installing the new sensor. No signal shown on the /analytic page. only output on the status page is: "Tracking    Start monitoring data sources"  but nothing happens. What else can i check / test for debugging?

Offline

#6 2021-02-18 14:19:52

binfordboy
Member
Registered: 2017-02-28
Posts: 54

Re: How to use the new HX711 Pressure Sensor support?

I downloaded a hx711 python script from https://github.com/tatobari/hx711py
and adapted the values to match my gpio configuration. Data readout with that script is working pretty well.

As i can confirm now that my hx711 and the loadcell are working with my pi i think this is a bug in nanodlp.

Offline

#7 2021-02-19 09:14:53

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: How to use the new HX711 Pressure Sensor support?

I guess pin numbering is different, to python script. Please, try physical one.

Offline

#8 2021-02-19 10:42:38

binfordboy
Member
Registered: 2017-02-28
Posts: 54

Re: How to use the new HX711 Pressure Sensor support?

Sorry, no improvement by this.

I changed the phyton script to GPIO.setmode(GPIO.BOARD) and switched the used GPIO pins to pins not providing extra functionality. So runing the python script with hx = HX711(16, 22) shows output on the console.

Settings in nanodlp are:
"ScaleClockPin": 22,
"ScaleDataPin": 16,
after restart the only reaction from nanodlp is:"Scale Error reading waitForDataReady error: timeout"

Offline

#9 2021-02-22 05:16:07

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: How to use the new HX711 Pressure Sensor support?

Change on NanoDLP side.
22 => 15
16 => 36

Offline

#10 2021-02-22 10:15:06

binfordboy
Member
Registered: 2017-02-28
Posts: 54

Re: How to use the new HX711 Pressure Sensor support?

Sorry, i don't get it.

I'm using
Clock: Physical 22 / GPIO 25
Data: Physical 16 / GPIO 23

On my Pi Physical 36 / GPIO 16 is already in use for something different.

Last edited by binfordboy (2021-02-22 10:40:49)

Offline

Board footer

Powered by FluxBB