Hi all,
I have written some code to display readings from an analog input (load cell from a digital scale) in my browser through a web server. However, when I have nothing on my load cell, the browser displays a weight value of -500 rather than 0. I know that the code I'm using for the load cell works, so the problem arises from how I've combined the load cell code with the WiFi web server code. I have tried to correct the issue, but I haven't been able to figure it out at all. Any help or ideas would be much appreciated. Thank you!
My Code
http://pastebin.com/embed_js.php?i=FsyCGy9Y
Sources
WiFi Web Server code: Tutorial: Arduino wi-fi server to Google Drive storage | Daviom
Load Cell code: https://github.com/Airtripper/load-cell-test/blob/master/load_cell_test.ino
The WiFi Web Server code uses a temperature sensor as the analog input and includes code for that purpose. I replaced the temperature sensor code with the Load Cell code.