{"action":"created","issue":{"url":"https://api.github.com/repos/ggurov/hx711/issues/5","labels_url":"https://api.github.com/repos/ggurov/hx711/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ggurov/hx711/issues/5/comments","events_url":"https://api.github.com/repos/ggurov/hx711/issues/5/events","html_url":"https://github.com/ggurov/hx711/issues/5","id":59421683,"number":5,"title":"Failing to read (No data to consider)","user":{"login":"lomori","id":11261704,"avatar_url":"https://avatars.githubusercontent.com/u/11261704?v=3","gravatar_id":"","url":"https://api.github.com/users/lomori","html_url":"https://github.com/lomori","followers_url":"https://api.github.com/users/lomori/followers","following_url":"https://api.github.com/users/lomori/following{/other_user}","gists_url":"https://api.github.com/users/lomori/gists{/gist_id}","starred_url":"https://api.github.com/users/lomori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lomori/subscriptions","organizations_url":"https://api.github.com/users/lomori/orgs","repos_url":"https://api.github.com/users/lomori/repos","events_url":"https://api.github.com/users/lomori/events{/privacy}","received_events_url":"https://api.github.com/users/lomori/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-01T22:43:28Z","updated_at":"2015-03-02T12:25:00Z","closed_at":null,"body":"Hi,\r\nI've connected an HX711 to my Pi, CLOCK on BCM pin 20 (J8-38) and DATA to BCM pin 16 (J8-36). I keep getting mostly what seems to be random reads, full of '1's, like this: \r\n\r\n0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 n:         -2     -\r\n0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 0 1 1 1 1 1 1 1 n:     -12546     -\r\n0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 n:    -262154     -\r\n0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 0 0 0 0 n:     -28704     -\r\n\r\nThe application then displays the \"No data to consider\", as expected due to the randomness of the reads.\r\n\r\nThe code has been changed accordingly (when I tried without updating the code, my Pi just hang and I had to disconnect the power supply to restart it).\r\n\r\nI'm using a Raspberry Pi B+ and the exact same hardware configuration (HX711+Load Cell) works fine with Arduino.\r\n\r\nAny idea of what could be wrong?\r\n\r\nRegards,\r\nLuiz"},"comment":{"url":"https://api.github.com/repos/ggurov/hx711/issues/comments/76703212","html_url":"https://github.com/ggurov/hx711/issues/5#issuecomment-76703212","issue_url":"https://api.github.com/repos/ggurov/hx711/issues/5","id":76703212,"user":{"login":"lomori","id":11261704,"avatar_url":"https://avatars.githubusercontent.com/u/11261704?v=3","gravatar_id":"","url":"https://api.github.com/users/lomori","html_url":"https://github.com/lomori","followers_url":"https://api.github.com/users/lomori/followers","following_url":"https://api.github.com/users/lomori/following{/other_user}","gists_url":"https://api.github.com/users/lomori/gists{/gist_id}","starred_url":"https://api.github.com/users/lomori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lomori/subscriptions","organizations_url":"https://api.github.com/users/lomori/orgs","repos_url":"https://api.github.com/users/lomori/repos","events_url":"https://api.github.com/users/lomori/events{/privacy}","received_events_url":"https://api.github.com/users/lomori/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T12:25:00Z","updated_at":"2015-03-02T12:25:00Z","body":"\nThanks Gurov. I will take a look. Can you send me a link to the other i2c ADC you referred to? The Adafruit one will end up being about US$20 total for me. Are you saying the other one is US$2 to US$3 only or was it a typo? \n\nThanks,Luiz\n\n      From: Gennady Gurov <notifications@github.com>\n To: ggurov/hx711 <hx711@noreply.github.com> \nCc: lomori <luiz_omori@yahoo.com> \n Sent: Sunday, March 1, 2015 7:04 PM\n Subject: Re: [hx711] Failing to read (No data to consider) (#5)\n   \ntotally not sure. I gave up on using the hx711 once i figured out i can use an i2c 16bit ADC converter with adjustable gain to read a load cell much more precise and without doing this bitbanging business with this crappy controller. these 16bit i2c adc controllers have a differential mode and power supply that's perfect for a wheatstone bridge load cell reading and the numbers a MUCH more accurate, you can use python etc. http://www.adafruit.com/product/1085 is my go-to controller now. There's a 24 bit one i wrote an i2c driver for thats like $2-3 a piece, but it's really not that much better hope this helps.—\nReply to this email directly or view it on GitHub.   \n\n  "}}