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

Getting boot loop errors

Open hammondses opened this issue 7 years ago • 27 comments
trafficstars

Hi there,

I'm attempting to get my Wemos D1 Mini Pro working with your bed sensor scripts, however after flashing both files I'm getting reboot errors.

I modified config.h to suit my config, should I try it with yours?

I'm really new to the whole ESP8266 thing so please be gentle :)

I have wired it all correctly (I think) SCL -> SCK, SDA -> DT, 5v -> VCC & GND -> GND from ESP to HX711. I followed the diagram provided for the weight sensors to be wired to eachother and back to the HX711.

In the Serial Monitor I get total garbage at 9600 baud, but at 115200 I get this:

ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld

Any help would be greatly appreciated!

hammondses avatar Sep 21 '18 07:09 hammondses

Update: Fixed my bootloop issues, issue was I needed to change the pins in the config, so now it boots but my monitor is full of absolute garbage no matter the baud I use :(

hammondses avatar Sep 21 '18 07:09 hammondses

I'm actually not sure why the output is sometimes just garbage.

Did you install the Wemos Board Stuff? https://www.instructables.com/id/Programming-the-WeMos-Using-Arduino-SoftwareIDE/

Skaronator avatar Sep 21 '18 08:09 Skaronator

I think it's because it's a knock off from AliExpress, the WiFi test module seems to do nothing which doesn't look like a good sign from what I've been reading

hammondses avatar Sep 21 '18 08:09 hammondses

Could you make a picture of it and maybe link the AliExpress product?

Skaronator avatar Sep 21 '18 08:09 Skaronator

https://s.click.aliexpress.com/e/b8QSpZQY

I'm not at home right now but I'll take a picture of it tomorrow when I'm home

hammondses avatar Sep 21 '18 08:09 hammondses

Weird thats a LOLIN and not a Wemos. Mine looks completly different but just checked the Wemos page and it looks like they have a new version? https://wiki.wemos.cc/products:d1:d1_mini_pro

Mine looks like this: (Notice the ceramic antenna)

image

Skaronator avatar Sep 21 '18 08:09 Skaronator

I think the easiest thing for me to do is probably buy the same one you have, this is it? - https://www.trademe.co.nz/1773192104

hammondses avatar Sep 21 '18 08:09 hammondses

Yes I think so but $14 is too expensive for that. This is what I've ordered earlier this year: https://www.aliexpress.com/item/WEMOS-D1-Mini-Pro-V1-0-16M-Bytes-External-Antenna-Connector-NodeMCU-ESP8266-ESP8266F-CP2104-WIFI/32861321679.html

(Just noticed that 1.0 not 1.1 but shouldn't matter)

Skaronator avatar Sep 21 '18 08:09 Skaronator

Bascially it should be possible to run this on the v2 version but I don't have the hardware to validate this. Maybe I'll order some but it'll take almost a month until they are here.

Skaronator avatar Sep 21 '18 08:09 Skaronator

Ah, it's in NZD. The AliExpress link you gave is $11.77 so not too bad for it being local. I'll order one and let you know how I get on :)

hammondses avatar Sep 21 '18 08:09 hammondses

Oh it's local? Didn't know that. The AliExpress link is $5 for me. image

Edit: You probably meant total cost including shipping.

Skaronator avatar Sep 21 '18 08:09 Skaronator

Yeah, I did mean Inc shipping :)

I guess the issue too is that it's pretty difficult to find someone to test it who happens to have load sensors and the v2 hardware

hammondses avatar Sep 21 '18 09:09 hammondses

I'm now getting this error after fixing the pinouts in the code:

16:52:26.210 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)
16:52:26.210 -> 
16:52:26.210 -> load 0x4010f000, len 1384, room 16 
16:52:26.210 -> tail 8
16:52:26.210 -> chksum 0x2d
16:52:26.210 -> csum 0x2d
16:52:26.255 -> vbb28d4a3
16:52:26.255 -> ~ld

hammondses avatar Sep 23 '18 04:09 hammondses

I decided to test the esp with a whole range of test sketches and it seems like all of the onboard functions are working and the HX711 calibration sketch gives me readouts of the load sensors.

After a bit of googling it seems it's quite a common error I'm getting when trying to use the hx711 and an esp8266, apparently putting in a yeild somewhere can fix it?

See here - https://github.com/bogde/HX711/issues/67

hammondses avatar Sep 23 '18 10:09 hammondses

@hammondses did you upload the code before connecting hx711 and the load cells? Because I am uploading the code before attaching anything onto my esp8266 and I get errors as described in your first post.

Please help.

bachoo786 avatar Oct 04 '18 00:10 bachoo786

I uploaded the code after connecting everything, which hardware revision are you using?

hammondses avatar Oct 04 '18 00:10 hammondses

Sorry what do you mean by hardware revision ?

bachoo786 avatar Oct 04 '18 07:10 bachoo786

Oh sorry I meant which esp do you have? I had the new version of the d1 mini pro which didn't seem to like the code so I'm waiting for the same revision to arrive which the creator has :)

hammondses avatar Oct 04 '18 07:10 hammondses

I have the old version of d1 mini and have the nodemcu none of them work I get the same error as described earlier.

bachoo786 avatar Oct 04 '18 09:10 bachoo786

Hmm how odd, @Skaronator any suggestions?

hammondses avatar Oct 07 '18 20:10 hammondses

Sorry, can't really help you since I'm relatively new to the whole Arduino stuff.

Skaronator avatar Oct 07 '18 20:10 Skaronator

@bachoo786 Which error are you seeing? If its the absolute garbage in the output monitor I fixed it on mine, I had to run a script to set the default baud rate of the ESP8266 to 9600 and did an AT+IPR=9600 command, then uploaded the sketch (I can't remember if it was sketch only or sketch+wifi) and it seems to have fixed it.

I gave up trying to get my version 2 board working, but the one that you have and the OP has I got working after setting the default baud rate of the board lower.

Let me know how you get on!

hammondses avatar Oct 14 '18 02:10 hammondses

@Skaronator what does your history graph for the sensor look like? For some reason i'm experiencing huge weight fluctuations randomly in the middle of the night or during the day for a few moments then back to normal. See attached picture

image

hammondses avatar Oct 17 '18 09:10 hammondses

@hammondses Mine looks like this.

image

The kg actually doesn't represent the true value (I'd need to change wiring to fix that) but it's enough to check if the bed is occupied or not. I use a binary_sensor to check this which is basically a template sensor that is true once it's above 50 kg.

image

Skaronator avatar Oct 17 '18 20:10 Skaronator

Hi there, just wanted to let you know we are working on https://github.com/bogde/HX711/pull/123, which you might want to give a try. It is an attempt to remedy some of the issues of the Arduino HX711 library, especially when it came to ESP8266 and ESP32 support.

amotl avatar Feb 19 '19 17:02 amotl

@hammondses did you solve the reset problem. I am also facing the same issue now.

sagartec avatar Oct 19 '19 07:10 sagartec

Yeah I ended up changing to the exact same board as the original poster was using, also noticed some boards don't like having the letter in the pinout, ie D3 D2 I changed to 3 and 2 which resolved my issues with other projects.

hammondses avatar Oct 19 '19 08:10 hammondses