GithubHelp home page GithubHelp logo

Comments (36)

bogde avatar bogde commented on July 17, 2024 1

just wanted to let you know that i did some tests today with the HX712. the existing code pretty much works with the new chip (gain set to 128, i didn't try 256 yet). i'm going to design a board, to be able to do more tests easier.

img_2913

from hx711.

bogde avatar bogde commented on July 17, 2024

This looks like the English datasheet: https://www.scribd.com/doc/94396103/Hx712-English-Datasheet

Where did you order your parts? I'd try it out, if time permits.

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

Hi, thanks for fast answer.

Fine, if you would like to work on the library !

As far as my knowledge permits, i will try to work on it. It seems that without any mod, it could work at 10 Hz and gain = 128 .

I ordered on Aliexpress. These chips are quite cheap
http://fr.aliexpress.com/item/Free-shipping-5pcs-lot-HX712-electronics-said-ASIC-SOP14-new-original/32566728886.html

OK for the link, but i HATE to subscribe to any site, only for getting some infos... If you already downloaded the datasheet, can you send it to me ?

Cheers,

from hx711.

bogde avatar bogde commented on July 17, 2024

Here you go: http://bit.ly/hx712

I couldn't find any breakout boards though, and I really don't have enough time to fiddle with the soldering iron and all, so I guess I'll pass for now. Good luck!

from hx711.

bogde avatar bogde commented on July 17, 2024

any progress with this? just wondering.

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

Hi Bogde,

Unfortunately not. The summer season is not the best for staying at home
and behind the keyboard or soldering iron...

I modified the library and i will soon start building a board.

See you soon,

2016-09-23 13:32 GMT+02:00 bogde [email protected]:

any progress with this? just wondering.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#39 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABlBhcZt627mNXaP2Fix51-S97h_8DkAks5qs7jegaJpZM4IunHs
.

Patrick Egloff - TK5EP
email : [email protected]
Web page : http://www.egloff.eu

from hx711.

Darktidelulz avatar Darktidelulz commented on July 17, 2024

Tk5ep / Patrick,

How is the board comming along?

Designing a beehive scale system and would love to use the Hx712. Don't really have the skill, time nor money at the time to do it within this project.

from hx711.

Darktidelulz avatar Darktidelulz commented on July 17, 2024

Awesome, keep us updated!

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

from hx711.

bogde avatar bogde commented on July 17, 2024

i'm going to create a PCB based on the schematic in the data sheet. i was thinking to add an LED on the clock line, something like this:
led

anybody thinks that's a bad idea? i did test and it seems to work, but let me know what you guys think. of course, i could design the PCB that way but not solder the LED, i was just wondering if it makes sense to add it.

from hx711.

Darktidelulz avatar Darktidelulz commented on July 17, 2024

It consumes more power, and it does not really make sense to put it on there (other than testing the design or sck line). The led on jumper is an option.

from hx711.

electrokean avatar electrokean commented on July 17, 2024

Adding any extra load to a data/clock line is generally a bad idea for signal integrity.
If you need to monitor your code during debugging, just add an LED on another free I/O pin.

from hx711.

bogde avatar bogde commented on July 17, 2024

got it, thanks, no LED it is.

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

from hx711.

bogde avatar bogde commented on July 17, 2024

all suggestions are welcome. anything specific you have in mind? should i have separate analog and digital voltages? the hx711 boards i have don't seem to have that. also, what about the BAT pin? that can be connected to the higher of AVDD or DVDD when not used, should i use some jumpers or just connect it to one of those?

from hx711.

Darktidelulz avatar Darktidelulz commented on July 17, 2024

The hx712 measures the voltage from the battery and uses that voltage for the loadcel. Don't know if the other parts of the curcuit need a voltage regulator.

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

from hx711.

Darktidelulz avatar Darktidelulz commented on July 17, 2024

http://www.theorycircuit.com/how-to-connect-load-cell-to-arduino/

In the comments * HX712 is a precision 24-bit analog- to-digital converter (ADC) with on chip load-cell power supply switch and battery voltage detection.

From datasheet
Features
*Selectable differential input or battery detection input

Pin description
Battery Voltage Detection Input

Analog Input and Battery Detection
Differential inputs are designed to interface
directly with a bridge sensor’s differential outputs.
It can be programmed with a gain of 128 or 256.
When 5V reference is used, these gains
correspond to a full-scale differential input
voltage of ±20mV or ±10mV respectively.
Single-ended battery input signal (BAT) can
be directly connected to a battery output
(2.6~5.5V). On-chip 56kΩ and 3.2kΩ resistors
divide this input voltage to provide suitable
voltage to the ADC, which has a gain of 1. When
detecting battery input, AVDD is used as the
ADC’s data conversion reference voltage. When
battery detection circuitry is not in used, a MOS
switch is used to turn off the resistor divider path
current.

Power Supply Options
DVDD can be connected directly to AVDD
power supply. But it should be the same or similar
voltage as the MCU power supply to ensure
proper communication with the MCU.
A/D conversion reference voltage (REFP,
REFN) should be connected to load-cell’s supply
terminals. It can be connected directly to AVDD,
or through a resistor to reduce the power
consumption by the load-cell.

94396103-Hx712-English-Datasheet.pdf

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

from hx711.

bogde avatar bogde commented on July 17, 2024

@tk5ep the LT1761 looks awesome, but the store i usually get components from doesn't stock it. it's also kind of expensive and i'm afraid others trying to later build the board i'm trying to make will be put off by the cost.

would something like one of these work instead:
http://www.tme.eu/cz/Document/16637f822e97fb29c08daa0179c3e821/SPX3819-DTE.pdf
http://www.tme.eu/cz/Document/8266aa386d25c81d5f3a0a0fc53614a3/LDK120.pdf
http://www.tme.eu/cz/Document/d395f5cae42cb44e9cd4305f8b9d12b3/LDCL015.pdf
http://www.tme.eu/cz/Document/cf9e8eaf4cf901b3fb507741facf1eca/LD2985.pdf
http://www.tme.eu/cz/Document/8266aa386d25c81d5f3a0a0fc53614a3/LDK120.pdf

any help is highly appreciated!

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

Hi Bogde,

Any progress with your board ??
My hive scale prototype with the HX711 is now at work under a hive but would like to make a new one with the HX712 for more thermal stability.
Here the realtime graphs

Cheers,

from hx711.

electrokean avatar electrokean commented on July 17, 2024

@tk5ep if you had another HX711 and set of load cells in an enclosure next to the hive with a known weight on it, you could potentially use that to work out the temperature compensation for your hive weight. Just a thought, as the temperature variation may be partially in the load cells, not just the HX711.

from hx711.

electrokean avatar electrokean commented on July 17, 2024

BTW - nice work on the data collection & graphs

from hx711.

bogde avatar bogde commented on July 17, 2024

@tk5ep unfortunately i didnt have the time to work on this.

from hx711.

flowmeter avatar flowmeter commented on July 17, 2024

@tk5ep Page#2 14 BAT Analog Input Battery voltage detection input(connect to higher of AVDD or
DVDD when not used)
@bogde LT1761

from hx711.

flowmeter avatar flowmeter commented on July 17, 2024

P#5 : Analog Input and Battery Detection Differential inputs are designed to interface directly with a bridge sensor’s differential outputs.
It can be programmed with a gain of 128 or 256.
When 5V reference is used, these gains correspond to a full-scale differential input voltage of ±20mV or ±10mV respectively.
Single-ended battery input signal (BAT) can be directly connected to a battery output (2.6~5.5V). On-chip 56kΩ and 3.2kΩ resistors divide this input voltage to provide suitable voltage to the ADC, which has a gain of 1. When detecting battery input, AVDD is used as the ADC’s data conversion reference voltage. When battery detection circuitry is not in used, a MOS switch is used to turn off the resistor divider path
current.

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

@flowmeter
Thanks, that is what is written in the datasheet... But practicaly ?
I can't figure out for what the BAT input is good for ??
AVDD is always used as the reference voltage through the internal MOS switch and via the VOUT pin !

For me, the datasheet is probably wrong... This input is for measuring the battery voltage through the internal multiplexer and PD_SCK pulse 26 is used to measure this voltage with a gain of 1. Not of great interest, except if you need to measure the supply voltage.

Just my 2 cents, Euro cents of course ;-)

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

@electrokean
Thanks for comment. I came to the conclusion that the HX711 thermal drift is much less than the one of the cell... So, it wouldn't bring a lot to try to compensate it.
For the moment, i'm quite happy with the real world results.. Only complain is that i have some strange power consumption when using the HX711 under certain conditions. I must investigate this further.

from hx711.

electrokean avatar electrokean commented on July 17, 2024

@tk5ep are you using scale.power_down() and scale.power_up() between readings? Worth doing if you are not reading at a fast rate.

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

@electrokean
Yes, i do. To save the max of power, i at first switched off all power on VSUP, but that was a bad idea... It's better to leave it and use the power_down function. I do not use the internal voltage regulator and have an external 5V low noise regulator i'm switching off with the BASE pin. Otherwise, when AVDD is still applied, it consumes 20mA when VSUP is off !

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

@bogde
I finaly forced myself to find some time to finish my project and replace the HX711 with the HX712.
I soldered the chip on a test board but so far did not connect anything at the analog inputs.

I use the original untouched library for now. The software does seem to dialog with the chip as i have the VOUT voltage going high during the measure, but it does not read anything. I get a "Nan"

During your test, did you change anything during your own tests ?

Thanks,

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

@bogde
Hi, i was a little bit too in a hurry...
I didn't go through my calibration procedure and some calibration values were missing.

Now i can talk and read with the HX712.

I also modified the library to be able to use the additional amplifier values, but i'm not a good programmer and i'm not sure if i made it right.
At least does my modified library work with my original parameters.

Can i send you the library so you can check it ?

Patrick,

from hx711.

bogde avatar bogde commented on July 17, 2024

yes, please send it over.

from hx711.

tk5ep avatar tk5ep commented on July 17, 2024

Here it is. Couldn't drop it in your HX712 folder.
HX712 master.zip

from hx711.

JamesKDouglas avatar JamesKDouglas commented on July 17, 2024

Regarding the BAT pin, it seems to me that the unit is comparing the battery voltage to the signal out from the load cell and compensating for the expected drop as the battery becomes depleted. The signal from the cell is a ratio of the input voltage, so the amplifier is able to consider the input voltage, do the calculation then report the weight? This ratio technique is common in analytical chemistry devices (that's my background).

I started adding a pullup resistor to the clock pin because the power down function in the library relies on the pin staying high. But during deep sleep many microcontrollers allow the pin to float, so the amplifier will turn on again by accident.

from hx711.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.