ESP8266-Load-Cell icon indicating copy to clipboard operation
ESP8266-Load-Cell copied to clipboard

Serial Monitor Problem

Open nightcat91 opened this issue 6 years ago • 5 comments

Hi,

thanks for your great work in porting this bed scale to the ESP platform! That really made it possible for me to go ahead an make it!

I ran into a problem after uploading your code (with my settings in config.h) to my ESP8266 (Wemos D1 mini) The serial Monitor is printing out random characters and I dont know why? I checked the baud rate and tried all the other baud rates (in the serial monitor). It should be 9600 baud since that is written in the code (Serial.begin(9600);).

I made you a big screenshot with hopefully all the info you could need. Any help is really welcome, thanks!

And one other question: I used the picture that you can see in the screenshot to attach the sensors to the HX711 (ignore the part on the picture with the arduino). Is that the correct way to wire them up? serialmonitor_problem2

nightcat91 avatar Sep 16 '18 18:09 nightcat91

I found out about my Serial Monitor Problem!! It was just me beeing dumb and not making sure that the ESP chip was empty before I flashed your program. After clearing the whole flash and reflasing your code it is now working.

But I dont get any updates on the weight. I can use MQTT to zero the scale (using tare) but when I place something on the 4 sensors I dont get any new values. Watching MQTT Topic and serial monitor....

So maybe it is actually something wrong with the way I wired my sensors. It would be great if you could tell me how to wire the 4 sensors correctly to the HX711 chip. Thanks

nightcat91 avatar Sep 16 '18 19:09 nightcat91

Hi,

the wiring diagram is correct. That's the same picture I've used for my wiring. You could try to switch things around, also make sure that D3 is connected to Data and D4 connected to Clock.

image

If everything seems correct you could try to lower/increase this value: https://github.com/Skaronator/ESP8266-Load-Cell/blob/ea1dd6d372639417d1c046c552d9748194dad7fe/code/config.h#L41

Skaronator avatar Sep 17 '18 06:09 Skaronator

Thanks for your reply. I am sure that I got Data to pin D3 and Clock to Pin D4 correct. My HX711 looks a little bit different than you picture and I am using 4 times 3 wire load cells but apart from that I dont know why I dont get any readings at all. I will try changing the Calibration value and see if that helps.

Could my load cells be damaged if I wired them up wrong? As far as I understand they are just two resistors....

nightcat91 avatar Sep 17 '18 16:09 nightcat91

My HX711 looks a little bit different than you picture and I am using 4 times 3 wire load cells but apart from that I dont know why I dont get any readings at all.

Just to be sure, the HX711 is powered by 5 Volt? You can also check my crappy picture in #4.

Could my load cells be damaged if I wired them up wrong? As far as I understand they are just two resistors....

I don't think you could've damaged the cells since I did some try and error as well but I'm not a expert.

You could also try this out and see if you get a readout. (Make sure to change the DOUT and CLOCK pins)

https://github.com/bogde/HX711/blob/master/examples/HX711SerialBegin/HX711SerialBegin.ino

Skaronator avatar Sep 19 '18 07:09 Skaronator

I tested the code you linked but I dont get any readings (only 0 as the value of any reading). Tried about 4-5 different connection variants for the load cells. Now I am waiting for another HX711 that looks slightly different, maybe something is wrong on the hardware here... EDIT: I did make sure to change the pins in the code to match the pins you are using in your version. Also if those are incorrect the sample code only prints out errors

nightcat91 avatar Sep 27 '18 16:09 nightcat91