olkal / HX711_ADC

Arduino library for the HX711 24-bit ADC for weight scales
MIT License
236 stars 124 forks source link

20MHz crystal oscillator doesn't work with hx711 #135

Open RafaelFerrari95 opened 2 months ago

RafaelFerrari95 commented 2 months ago

Hi, i'm from Brazil and i appreciate your work. I'm study them to my engineering in electronics. i would like to know which model of hx711 are you using (i mean which factory batch of hx711 are you using), because my hx711 doesn't work with crystal osscilator 20MHz (model HC49) when i put the rate pin to high level (5V) the hx711 return to me 70~80Hz like he is using his internal osscilator itself. The hx711 only work with the 20MHz crystal when i put the rate pin in low level (0V) and i receive 18 sample rate data as well the datasheet informed.

I suppose two things: .the 20MHz crystal oscillator it's not exactly 20MHz, that can be a little bit more like 20,102MHz (example) .the 20MHz crystal oscillator it's exactly 20MHz indeed, but the hx711 doesn't support this frequency of 20MHz.

Despite the time when your library was released, i hope and wait with your help/answers.

PS: the model (factory batch) of hx711 i already used is hx711 7916042F.

olkal commented 1 month ago

Hi, sorry for the delayed answer. I don't know the batch of the chip I tested this with, but it should not matter as the option of connecting an external x-tal up to 20mhz is documented in the data sheet, and should work in both high and low rate. Could it be that pin 14 is was connected to ground when you tried the high rate?

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity.