Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Getting boot loop errors #6

Open
hammondses opened this issue Sep 21, 2018 · 27 comments
Open

Getting boot loop errors #6

hammondses opened this issue Sep 21, 2018 · 27 comments

Comments

@hammondses
Copy link

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
Copy link
Author

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 :(

@Skaronator
Copy link
Owner

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/

@hammondses
Copy link
Author

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

@Skaronator
Copy link
Owner

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

@hammondses
Copy link
Author

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

@Skaronator
Copy link
Owner

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

@hammondses
Copy link
Author

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

@Skaronator
Copy link
Owner

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
Copy link
Owner

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.

@hammondses
Copy link
Author

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 :)

@Skaronator
Copy link
Owner

Skaronator commented Sep 21, 2018

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

Edit: You probably meant total cost including shipping.

@hammondses
Copy link
Author

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
Copy link
Author

hammondses commented Sep 23, 2018

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
Copy link
Author

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 - bogde/HX711#67

@bachoo786
Copy link

@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.

@hammondses
Copy link
Author

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

@bachoo786
Copy link

bachoo786 commented Oct 4, 2018

Sorry what do you mean by hardware revision ?

@hammondses
Copy link
Author

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 :)

@bachoo786
Copy link

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

@hammondses
Copy link
Author

Hmm how odd, @Skaronator any suggestions?

@Skaronator
Copy link
Owner

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

@hammondses
Copy link
Author

@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
Copy link
Author

@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

@Skaronator
Copy link
Owner

@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

@amotl
Copy link

amotl commented Feb 19, 2019

Hi there, just wanted to let you know we are working on bogde/HX711#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.

@sagartec
Copy link

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

@hammondses
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants