HX711

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
DrakeBB
 
Posts: 21
Joined: Thu Dec 05, 2024 1:06 pm

Re: HX711

Post by DrakeBB »

I'm also getting measurable readings from the voltmeter on the strain gage load cell as well

User avatar
DrakeBB
 
Posts: 21
Joined: Thu Dec 05, 2024 1:06 pm

Re: HX711

Post by DrakeBB »

I'm also getting measurable readings from the voltmeter on the strain gage load cell as well

User avatar
DrakeBB
 
Posts: 21
Joined: Thu Dec 05, 2024 1:06 pm

Re: HX711

Post by DrakeBB »

I'm also getting measurable readings from the voltmeter on the strain gage load cell as wel

User avatar
DrakeBB
 
Posts: 21
Joined: Thu Dec 05, 2024 1:06 pm

Re: HX711

Post by DrakeBB »

The voltmeter is saying the same thing on the CPG as the hx711:
Vin to GND: 3V
Vin to DATA(D7): 3V
Vin to SCK(D8): 0

User avatar
DrakeBB
 
Posts: 21
Joined: Thu Dec 05, 2024 1:06 pm

Re: HX711

Post by DrakeBB »

Here are some pictures showing the connections on the hx711. A little blurry but shows what I was testing. I can send pictures of the voltmeter on the strain gage load cell if that's needed as well
Attachments
IMG_5942.jpg
IMG_5942.jpg (827.87 KiB) Viewed 146 times
IMG_5940.jpg
IMG_5940.jpg (995.55 KiB) Viewed 146 times
IMG_5941.jpg
IMG_5941.jpg (757.06 KiB) Viewed 146 times

User avatar
DrakeBB
 
Posts: 21
Joined: Thu Dec 05, 2024 1:06 pm

Re: HX711

Post by DrakeBB »

Here's some more picture of the strain gage load cell connection to the hx711
Attachments
IMG_5945.jpg
IMG_5945.jpg (757.04 KiB) Viewed 136 times
IMG_5944.jpg
IMG_5944.jpg (726 KiB) Viewed 136 times
IMG_5943.jpg
IMG_5943.jpg (928.91 KiB) Viewed 136 times

User avatar
mikeysklar
 
Posts: 18071
Joined: Mon Aug 01, 2016 8:10 pm

Re: HX711

Post by mikeysklar »

Good work confirming the wiring. Also seeing some voltage readings on from the sensor.

I think this is going to come down to CircuitPython being finicky about pin names.

Instead of using D8 (SCK) and D7 (DATA) try the other names. Do not move the wires.

D8 can also be RX or A6
D7 can also be TX or A7

User avatar
DrakeBB
 
Posts: 21
Joined: Thu Dec 05, 2024 1:06 pm

Re: HX711

Post by DrakeBB »

I tried both. The readings I got didn't respond to strain in the bar though
Attachments
HX711 E.PNG
HX711 E.PNG (89.48 KiB) Viewed 115 times
HX711 D.PNG
HX711 D.PNG (87.26 KiB) Viewed 115 times

User avatar
mikeysklar
 
Posts: 18071
Joined: Mon Aug 01, 2016 8:10 pm

Re: HX711

Post by mikeysklar »

Thx for trying. The values being maxed out might be a

Which model are you using for the strain gauge load cell?

I'll order some parts and try to reproduce / resolve.

In the meantime are you comfortable trying with Arduino code? The behavior may change and it would help to know if this is CircuitPython specific.

User avatar
DrakeBB
 
Posts: 21
Joined: Thu Dec 05, 2024 1:06 pm

Re: HX711

Post by DrakeBB »

I'm using the 20kg load cell adafruit#4543

I'm willing to try anything. I've never used Arduino code before though.

User avatar
mikeysklar
 
Posts: 18071
Joined: Mon Aug 01, 2016 8:10 pm

Re: HX711

Post by mikeysklar »

I ordered some parts, but won't have them until mid next week.

The guide will walk you through Arduino setup and the example code is provided. If it is too much hassle don't sweat it. I'll be able to play along soon. I ordered a few different gauges to compare with as well.

User avatar
DrakeBB
 
Posts: 21
Joined: Thu Dec 05, 2024 1:06 pm

Re: HX711

Post by DrakeBB »

First time ever using Arduino. I think I did everything right. You'll have to let me know though.
Attachments
arduino.PNG
arduino.PNG (74.3 KiB) Viewed 99 times

User avatar
T_Mo
 
Posts: 1423
Joined: Thu Mar 15, 2018 7:10 pm

Re: HX711

Post by T_Mo »

If you have pushed the pins of the 0.1 inch header into the holes on the prototype breadboard, and you are connecting to it via jumpers with smaller diameter pins, you may be having unreliable connections between the controller board and the strain gauge breakout.

The contact rows on a protoboard do not much like having different sized wires connected to the same row of holes.
Last edited by T_Mo on Thu Jan 23, 2025 6:43 pm, edited 2 times in total.

User avatar
mikeysklar
 
Posts: 18071
Joined: Mon Aug 01, 2016 8:10 pm

Re: HX711

Post by mikeysklar »

@DrakeBB - T_Mo brings up a good point about wiring. Although it did seem like you were getting readings off the terminal block that had reasonable voltage.

When you open the Arduino Serial Monitor what do you see?

User avatar
DrakeBB
 
Posts: 21
Joined: Thu Dec 05, 2024 1:06 pm

Re: HX711

Post by DrakeBB »

Here is what the serial monitor is showing.

Would using a microcontroller with headers be a possible solution to this?
Attachments
arduino a.PNG
arduino a.PNG (62.19 KiB) Viewed 89 times

Post Reply
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”