How can a chip (HX711) work without a ground pin connected? - Page 1
Forum section: electronics / projects

author: Tonn
author_rank: Contributor
timestamp: June 13, 2018, 02:06:39 pm
content: Hi,I am working with a HX711 board. They are used with load cells and weight sensors. You can find them in many Arduino projects and they are probably sold by the thousands.This is the schematic. It's copied all over the internet.By comparing the board, the schematic and the HX711 datasheet I found several issues, marked in the schematic.I's #4 that has me confused.The HX711 chip has three power pins (VSUP, DVDD and AVDD), but only one ground pin (AGND).The AGND pin should be connected to the supply ground but it isn't.Power is supplied to JC9.VCC (JC9, pin 1) is connected according to the datasheet.Ground (GND - JC9, pin 4) goes to RATE (input pin, configures the chip for 10 samples/sec) and X1 (crystal pin, configures the chip for using the internal oscillator). It does not go to AGND.The datasheet confirms that the power ground should go to AGND. No surprise there.I checked five different boards from two suppliers (at least two different batches) and indeed AGND is not connected to GND.Yet, the boards work well.What am I missing?Thanks,Tonn

author: theworldbuilder
author_rank: Regular Contributor
timestamp: June 13, 2018, 03:18:42 pm
content: Are you sure they aren't connected on the PCB layout despite what the schematic says?Like a connection under the IC or something along those lines?

author: In Vacuo Veritas
author_rank: Frequent Contributor
timestamp: June 13, 2018, 03:22:40 pm
content: You mean like how pin 14 in connected to GND via the symbol at legend 1? And the trace on the PCB as well?I don't follow the question. Granted, that's a piss-poor schematic.

author: wraper
author_rank: Unknown
timestamp: June 13, 2018, 03:26:44 pm
content: Quote from: Tonn on June 13, 2018, 02:06:39 pmDid you measure actual resistance between AGND and GND?

author: NiHaoMike
author_rank: Super Contributor
timestamp: June 13, 2018, 04:03:17 pm
content: The ESD diodes can provide a ground path, but I would expect charge injection to adversely affect the accuracy of a precision analog part. (Had that happen with a dsPIC in my senior design project since I only used series resistors to connect it to the 5V Arduino that handled the networking.)

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 13, 2018, 04:14:46 pm
content: I suggest looking at the HX711 datasheet.They connect the AGND pin to the common GND.I'm just guessing: in the board you're mentioning, AGND is made accessible through the J1 connector (E-). Probably comes from people that still think it could be a good idea to separate digital and analog grounds. Long story short: it usually isn't. (A more detailed point on this could take pages...)E- on J1 is obviously meant to be connected to ground and not be left floating.Doing so would not make any sense.

author: Tonn
author_rank: Contributor
timestamp: June 14, 2018, 03:48:06 pm
content: Thanks for responding.I measured the resistance between AGND and GND: 11 Mohm one way and OL with probes reversed.So I did a diode test and got 580 mV, indicating an internal diode from AGND (anode) to GND (cathode).I then powered the board and measured the voltage on AGND. It started at 470 mV and slowly rose to 840 mV (capacitor charging?).840 mV indicates a diode drawing a current that is relatively large for that particular diode.A clamping diode on the RATE input pin, or similar, would explain this.Could that be it?The chip being powered through an internal protection diode? And no one ever noticed this obvious design flaw?

author: edavid
author_rank: Super Contributor
timestamp: June 14, 2018, 04:29:02 pm
content: AGND is not necessarily a power connection. It could be a reference voltage that is only connected to some MOSFET gates, so no current is drawn.Have you tried connecting it to ground to see what happens?(Ooops, I also thought there was a DGND.)

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 14, 2018, 05:06:21 pm
content: Quote from: edavid on June 14, 2018, 04:29:02 pmSo there would be absolutely no ground connection on this chip?As per the datasheet, it IS meant to be connected to ground.

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 14, 2018, 05:11:10 pm
content: Quote from: Tonn on June 14, 2018, 03:48:06 pmExcept in very specific cases, IC pads usually have internal clamping diodes, so yes.Quote from: Tonn on June 14, 2018, 03:48:06 pmUnless people connect E- to GND externally, in which case it would work properly. But the schematic would let you believe that you shouldn't.So yes, I think you're correct.As said in my post above, if you weren't correct, a chip without ground (or otherwise return path for the power supply) connection? That would seem to defy electronics laws. Wouldn't it?

author: wraper
author_rank: Unknown
timestamp: June 14, 2018, 05:37:47 pm
content: Quote from: SiliconWizard on June 14, 2018, 05:06:21 pmThere is GND connection to IC, digital GND. The issue is that resistive bridge is connected to AGND but not actual GND, therefore is powered through AGND pin.

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 14, 2018, 05:45:11 pm
content: Quote from: wraper on June 14, 2018, 05:37:47 pmWhat is the digital GND pin on this IC?

author: wraper
author_rank: Unknown
timestamp: June 14, 2018, 05:54:06 pm
content: Quote from: SiliconWizard on June 14, 2018, 05:45:11 pmOops, yep there is no digital GND pin, it's powered through protection diodes on X1 and Rate pins.

author: Tonn
author_rank: Contributor
timestamp: June 15, 2018, 01:51:14 pm
content: The board works well with both E- to ground or not. It seems the HX711 is not much affected by the diode voltage drop.Accuracy or noise may be affected, but I don't have the means to verify that.It seems I can call this one solved. Very educational.@NiHaoMike: nice catch; you made me look for a diode, not just connection or resistance.Everyone thank you very much for your help.Tonn

author: Dave_PT
author_rank: Frequent Contributor
timestamp: May 14, 2019, 11:53:24 am
content: Sorry to come dig up this topic.But I have some problems with these chinese boards from a project point of view.Clearly they have design mistakes (GND, etc...). But can someone explain me the feedback resistances?Why they use R1=20k and R2=8.2k?To get a AVDD of 1.77V?Why?Vbg=AVDD*R2/(R1+R2)AVDD=Vbg*(R1+R2)/R2 -> the datasheet equation is wrong.Another thing, has anyone used the oscilloscope to measure the AVDD? Can anyone explain me why the AVDD comes up as a "square wave" of about 50Hz?Actually I can use the IC to take measurements ... but I can not figure out how the analog supply regulator works.Thank you all

author: free_electron
author_rank: Super Contributor
timestamp: May 14, 2019, 12:55:09 pm
content: Quote from: SiliconWizard on June 14, 2018, 05:11:10 pmnot necessarily.'ground' is just a reference ...just like 'power'you could make a chip that refers everything to VCC ... in fact, that has been done. Many POTS (Plain Old Telephone System) SLICs (Subscrier Line Interface Circuit ) work that way , simply because POTS uses negative voltages. The chip is powered with 'ground' and -48 volts. 'ground' is the positive terminal. All signal are referred to that 'ground'. to bring out the control signals you use level shifters using two transistors to a positive voltage 'above' ground. modern slics have those built in.