{"action":"created","issue":{"url":"https://api.github.com/repos/tatobari/hx711py/issues/2","repository_url":"https://api.github.com/repos/tatobari/hx711py","labels_url":"https://api.github.com/repos/tatobari/hx711py/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tatobari/hx711py/issues/2/comments","events_url":"https://api.github.com/repos/tatobari/hx711py/issues/2/events","html_url":"https://github.com/tatobari/hx711py/issues/2","id":159677653,"number":2,"title":"How to tare & define 1kg","user":{"login":"u-l-m-i","id":19860868,"avatar_url":"https://avatars.githubusercontent.com/u/19860868?v=3","gravatar_id":"","url":"https://api.github.com/users/u-l-m-i","html_url":"https://github.com/u-l-m-i","followers_url":"https://api.github.com/users/u-l-m-i/followers","following_url":"https://api.github.com/users/u-l-m-i/following{/other_user}","gists_url":"https://api.github.com/users/u-l-m-i/gists{/gist_id}","starred_url":"https://api.github.com/users/u-l-m-i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u-l-m-i/subscriptions","organizations_url":"https://api.github.com/users/u-l-m-i/orgs","repos_url":"https://api.github.com/users/u-l-m-i/repos","events_url":"https://api.github.com/users/u-l-m-i/events{/privacy}","received_events_url":"https://api.github.com/users/u-l-m-i/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2016-06-10T16:54:31Z","updated_at":"2016-06-26T19:27:26Z","closed_at":null,"body":"ello Tato,\r\n\r\nthanks for providing your code and explanation,\r\nbut I’m still struggling with a few things.\r\n\r\nFirst: Can you please explain how to evaluate the tare value and the value for the defined (1kg) \r\n\r\nSecond: Maybe depended on above\r\n\r\nWith changing the Vcc to 3,3 V the results get better, but still a very inconstant.\r\nMy scale consists out of 4 Load Cells which are linked as Wheatstone Bridge.\r\n(tare & 1kg as in our example)\r\n\r\ne.g.\r\nEmpty scale:\r\npi@raspberrypi:~/scale/hx711 $ python hx.py \r\n0.000\r\n1.076\r\n-0.043\r\n4.500\r\n-0.033\r\n0.000\r\n-0.033\r\n0.000\r\n0.022\r\n-0.022\r\n-0.033\r\n0.022\r\n-0.011\r\n-0.011\r\n-0.022\r\n^CCleaning...\r\nBye!\r\npi@raspberrypi:~/scale/hx711 $ python hx.py ## with 1kg\r\n0.000\r\n0.043\r\n0.043\r\n0.033\r\n18.261\r\n0.011\r\n0.196\r\n0.022\r\n0.087\r\n0.087\r\n0.000\r\n0.011\r\n^CCleaning...\r\nBye!\r\npi@raspberrypi:~/scale/hx711 $ python hx.py ##wtih 5kg\r\n\r\n0.000\r\n0.022\r\n0.033\r\n0.033\r\n0.076\r\n0.043\r\n0.043\r\n0.065\r\n-0.011\r\n0.022\r\n0.033\r\n^CCleaning...\r\nBye!\r\npi@raspberrypi:~/scale/hx711 $ \r\n\r\nAny idea or advice?\r\n\r\nThanks \r\nu-l-m-i"},"comment":{"url":"https://api.github.com/repos/tatobari/hx711py/issues/comments/228617868","html_url":"https://github.com/tatobari/hx711py/issues/2#issuecomment-228617868","issue_url":"https://api.github.com/repos/tatobari/hx711py/issues/2","id":228617868,"user":{"login":"arthurmoises","id":1229862,"avatar_url":"https://avatars.githubusercontent.com/u/1229862?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurmoises","html_url":"https://github.com/arthurmoises","followers_url":"https://api.github.com/users/arthurmoises/followers","following_url":"https://api.github.com/users/arthurmoises/following{/other_user}","gists_url":"https://api.github.com/users/arthurmoises/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurmoises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurmoises/subscriptions","organizations_url":"https://api.github.com/users/arthurmoises/orgs","repos_url":"https://api.github.com/users/arthurmoises/repos","events_url":"https://api.github.com/users/arthurmoises/events{/privacy}","received_events_url":"https://api.github.com/users/arthurmoises/received_events","type":"User","site_admin":false},"created_at":"2016-06-26T19:27:26Z","updated_at":"2016-06-26T19:27:26Z","body":"Hi Tatobari and u-l-m-i!\r\n\r\nI've managed to get the load cells working on Friday! Finally! Now it's just a matter of configuring Tkinter correctly to finish my project. The code runs very well, thanks a lot for the port and fixes, Tatobari.\r\n\r\nAll the incorrect readings were because of a wrong level of one of the load cells. It wasn't touching ground. A friend of mine realized that and fixed. After that... ta-da! 81,9kg in the monitor. \r\n\r\nThe steps that I took were: \r\n\r\n1- Run the script as-is: (get_value and hx.tare()) If it's stable, move on! If not, check wirings of load cells.\r\n2 - Run it again with get_weight() Take note of average readings on a paper\r\n3 - Run it again with a known weight (I steeped into it with 81,9kg) Take not of that average value too.\r\n4 - Subtract the two previous values and divide by weight (I got 120, aproximatedly(117))\r\n5 - Now uncomment scale and reference_unit, which I set to 120 as a argumment (reference_unit(120)) \r\n6 - Now, here lies something that I don't know yet: I was getting values/10 of the real ones (8,2kg, instead of 82kg)\r\n7 - To correct that, I've set scale to (100) instead of scale(1000). It worked, I was getting aproximatedly values of 81,9 kg!\r\n\r\nThanks a lot, Tatobari and u-l-m-i!"}}
{"actor":{"display_login":"arthurmoises"}}