LED Matrix MQTT

@Richard_Gaunt and @bachoo786 here is a new version of @vbh s code that works with the newer version of pubsubclient (as of today 2.7.0), it also implements left and right scrolling (they are the only effects worth doing on a display like this), however I’ve changed the code so that the messages start at 0 and go to 9 - this just means that they are all unique and so easier to distinguish in the code. Here’s the link… https://1drv.ms/u/s!AmTLZpPsxi58iFsGqyQkk77Nz1Tx?e=b88TF1

To test it use MQTTBox (or the like) and send topic cmnd/MQTTSign/SPEED with payload 1 (upto approx 35) to see the speed change.
To add a msg use topic cmnd/MQTTSign/MSG0 and a payload of the string you want displayed (the 0 can be 0-9 indicating the msg position)

You will have to change the places where I’ve sanitized the code of my details (MQTT user/pass, SSID, Wifi Pw etc). Also make sure of your pinouts for the display - they probably won’t be the same as mine.

Hopefully this will work out of the box :slight_smile:

1 Like

So I have downloaded @vbh code and changed the setting appropriately, yet i still get the error

ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset

i ran an example sketch which works fine… im pulling my hair out here.

could you also let me know what this section is too.

// Update these with values suitable for your hardware/network.
byte mac[]    = {  0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
IPAddress ip(192, 168, 1, 56);
IPAddress server(192, 168, 1, 57);

The byte mac does nothing as we aren’t using ethernet, so just ignore it, the IPAddress ip is the signs ip address and the server is the mqtt servers ip address.

If that’s all you get out of the serial monitor then I suspect there is still something not setup correctly.

Is DEBUG_PRINT set to 1 and not commented out?

OK, just found an old D1 Mini and all I did to get it to work was change the board to D1 Mini.

Libraries installed are…
MD_Parola 3.1.1
MD_Max72xx 3.1.0
PubSubClient 2.7.0

Hi @keithh666

Do you know where I could find a case for the LEDs?

I dont have a 3D printer and to print a pre designed 3D case for the LED costs about 50quid which is expensive.

Sorry, no I don’t, I designed my own in Fusion360 and printed on my 3D printer, however it’s still not quite right but my printer is doing a long term print atm, so I haven’t had a chance to reprint it.

ah right I see

This would cost less than ten US to print https://www.thingiverse.com/thing:3344610 inc shipping

Are you based in the UK or US?

I’m in the UK but they use US dollars for pricing, that was using treatstock rather :slight_smile:

so where shall I print them off? i.e. what website?

Go to the link I provided on thingiverse pick the treatstock app and fill in your details, it will list all the printers near you, pick whichever you like, i.e. cheapest with the smallest shipping.

1 Like

Which version of board setting did you have installed?

Also why does it ask for your derver twice?

// Update these with values suitable for your hardware/network.
byte mac[]    = {  0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
IPAddress ip(192, 168, 1, 57);
IPAddress server(192, 168, 1, 42);

and 

#define MQTT_CLIENT “HA_MQTTSign” // mqtt client_id (Must be unique for each Sonoff)
#define MQTT_SERVER “192.168.1.42” // mqtt server
#define MQTT_PORT 1883 // mqtt port

It asks for the server twice as I was using 2 different pieces of code, however I have since merged them :slight_smile: (not uploaded yet), board libs are still 2.4.2, settings are as above but now set to Lolin(wemos)D1 Mini.

so it seems i have the same libs as you and board version, now a little uploaded and run.

 

------------------ MQTTSign -------------------
 
Unit ID: esp8266-c9dba
 
Connecting to TALKTALK291CD3 Wifi

Exception (0):
epc1=0x41540e03 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys 
sp: 3fffeb90 end: 3fffffb0 offset: 01a0

>>>stack>>>
3fffed30:  ffffffff ffffffff ffffffff ffffffff  
3fffed40:  ffffffff ffffffff ffffffff ffffffff  
3fffed50:  ffffffff ffffffff ffffffff 00000000  
3fffed60:  3fff15bc 3fff15bc 000000e0 401004e4  
3fffed70:  ffffffff ffffffff 3fff07cc 401068b0  
3fffed80:  ffffffff ffffffff ffffffff 40213d70  
3fffed90:  3fff1602 0000002e ffffffff ffffffff  
3fffeda0:  ffffffff ffffffff ffffffff 3fff0c29  
3fffedb0:  3fff0bf4 3fff0bf4 3fff15bc 4021412a  
3fffedc0:  402144bf 3fff15bc 3fff1602 402144c8  
3fffedd0:  00000008 3fffee00 3fff1244 ffffffff  
3fffede0:  00000001 40103523 3ffedf60 3fff1610  
3fffedf0:  3fff15bc 3fff17e8 3fff0bf4 4021a54d  
3fffee00:  005e0001 0000fb00 4022d9e3 00000001  
3fffee10:  00000018 3fff17e8 3fff15bc 4021afd4  
3fffee20:  0000007f 40103266 00040000 00000000  
3fffee30:  3fff0bf8 00000001 00000000 00000002  
3fffee40:  3fff0b4c 00000004 3fff17e4 4021b644  
3fffee50:  00000000 00000000 0000001f 3fff17e4  
3fffee60:  00000000 3fff15bc 3fff1628 4021b014  
3fffee70:  3fff0bf4 3fffeea0 00000004 3fff17e4  
3fffee80:  00000016 3fff0bf4 3fff17e4 4021a7a5  
3fffee90:  3fff0bf4 3fffeea0 00000004 3ffe8004  
3fffeea0:  00000494 00000000 0e560418 00000000  
3fffeeb0:  3fff17e8 3fff0bf4 4bc6a7f0 00000000  
3fffeec0:  3fff07a0 0000000a 0000000a 00000002  
3fffeed0:  3fff0b44 3fff0bf4 3fff17e4 4021ab44  
3fffeee0:  001f4718 00696280 60000600 3fff0808  
3fffeef0:  40215410 3fff080c 3ffe9a8c 4021541e  
3fffef00:  0069aafa 3fff080c 00000000 402154d4  
3fffef10:  3ffe9a8c 00000001 4010426a 401068a0  
3fffef20:  40233c68 3ffef078 3ffef0a0 60000600  
3fffef30:  0069aafa 3ffef0a0 3ffef078 40233c75  
3fffef40:  40233cba 3fffdab0 00000000 3fffdcb0  
3fffef50:  3ffef0c8 3fffdab0 00000000 00000004  
3fffef60:  40000f49 40000f49 3fffdab0 40000f49  
3fffef70:  40000e19 40001878 00000002 00000000  
3fffef80:  3fffff10 aa55aa55 000000d3 40104424  
3fffef90:  4010442a 00000002 00000000 a776b5cb  
3fffefa0:  4010000d 0206a97c 5f7bf124 8bf06032  
3fffefb0:  40100774 3fffef4c 40100721 3ffffe58  
3fffefc0:  3fffffd0 00000000 00000000 feefeffe  
3fffefd0:  feefeffe feefeffe feefeffe feefeffe  
3fffefe0:  feefeffe feefeffe feefeffe feefeffe  
3fffeff0:  feefeffe feefeffe feefeffe feefeffe  
3ffff000:  feefeffe feefeffe feefeffe feefeffe  
3ffff010:  feefeffe feefeffe feefeffe feefeffe  
3ffff020:  feefeffe feefeffe feefeffe feefeffe  
3ffff030:  feefeffe feefeffe feefeffe feefeffe  
3ffff040:  feefeffe feefeffe feefeffe feefeffe  
3ffff050:  feefeffe feefeffe feefeffe feefeffe  
3ffff060:  feefeffe feefeffe feefeffe feefeffe  
3ffff070:  feefeffe feefeffe feefeffe feefeffe  
3ffff080:  feefeffe feefeffe feefeffe feefeffe  
3ffff090:  feefeffe feefeffe feefeffe feefeffe  
3ffff0a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff100:  feefeffe feefeffe feefeffe feefeffe  
3ffff110:  feefeffe feefeffe feefeffe feefeffe  
3ffff120:  feefeffe feefeffe feefeffe feefeffe  
3ffff130:  feefeffe feefeffe feefeffe feefeffe  
3ffff140:  feefeffe feefeffe feefeffe feefeffe  
3ffff150:  feefeffe feefeffe feefeffe feefeffe  
3ffff160:  feefeffe feefeffe feefeffe feefeffe  
3ffff170:  feefeffe feefeffe feefeffe feefeffe  
3ffff180:  feefeffe feefeffe feefeffe feefeffe  
3ffff190:  feefeffe feefeffe feefeffe feefeffe  
3ffff1a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff200:  feefeffe feefeffe feefeffe feefeffe  
3ffff210:  feefeffe feefeffe feefeffe feefeffe  
3ffff220:  feefeffe feefeffe feefeffe feefeffe  
3ffff230:  feefeffe feefeffe feefeffe feefeffe  
3ffff240:  feefeffe feefeffe feefeffe feefeffe  
3ffff250:  feefeffe feefeffe feefeffe feefeffe  
3ffff260:  feefeffe feefeffe feefeffe feefeffe  
3ffff270:  feefeffe feefeffe feefeffe feefeffe  
3ffff280:  feefeffe feefeffe feefeffe feefeffe  
3ffff290:  feefeffe feefeffe feefeffe feefeffe  
3ffff2a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff300:  feefeffe feefeffe feefeffe feefeffe  
3ffff310:  feefeffe feefeffe feefeffe feefeffe  
3ffff320:  feefeffe feefeffe feefeffe feefeffe  
3ffff330:  feefeffe feefeffe feefeffe feefeffe  
3ffff340:  feefeffe feefeffe feefeffe feefeffe  
3ffff350:  feefeffe feefeffe feefeffe feefeffe  
3ffff360:  feefeffe feefeffe feefeffe feefeffe  
3ffff370:  feefeffe feefeffe feefeffe feefeffe  
3ffff380:  feefeffe feefeffe feefeffe feefeffe  
3ffff390:  feefeffe feefeffe feefeffe feefeffe  
3ffff3a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff400:  feefeffe feefeffe feefeffe feefeffe  
3ffff410:  feefeffe feefeffe feefeffe feefeffe  
3ffff420:  feefeffe feefeffe feefeffe feefeffe  
3ffff430:  feefeffe feefeffe feefeffe feefeffe  
3ffff440:  feefeffe feefeffe feefeffe feefeffe  
3ffff450:  feefeffe feefeffe feefeffe feefeffe  
3ffff460:  feefeffe feefeffe feefeffe feefeffe  
3ffff470:  feefeffe feefeffe feefeffe feefeffe  
3ffff480:  feefeffe feefeffe feefeffe feefeffe  
3ffff490:  feefeffe feefeffe feefeffe feefeffe  
3ffff4a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff500:  feefeffe feefeffe feefeffe feefeffe  
3ffff510:  feefeffe feefeffe feefeffe feefeffe  
3ffff520:  feefeffe feefeffe feefeffe feefeffe  
3ffff530:  feefeffe feefeffe feefeffe feefeffe  
3ffff540:  feefeffe feefeffe feefeffe feefeffe  
3ffff550:  feefeffe feefeffe feefeffe feefeffe  
3ffff560:  feefeffe feefeffe feefeffe feefeffe  
3ffff570:  feefeffe feefeffe feefeffe feefeffe  
3ffff580:  feefeffe feefeffe feefeffe feefeffe  
3ffff590:  feefeffe feefeffe feefeffe feefeffe  
3ffff5a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff600:  feefeffe feefeffe feefeffe feefeffe  
3ffff610:  feefeffe feefeffe feefeffe feefeffe  
3ffff620:  feefeffe feefeffe feefeffe feefeffe  
3ffff630:  feefeffe feefeffe feefeffe feefeffe  
3ffff640:  feefeffe feefeffe feefeffe feefeffe  
3ffff650:  feefeffe feefeffe feefeffe feefeffe  
3ffff660:  feefeffe feefeffe feefeffe feefeffe  
3ffff670:  feefeffe feefeffe feefeffe feefeffe  
3ffff680:  feefeffe feefeffe feefeffe feefeffe  
3ffff690:  feefeffe feefeffe feefeffe feefeffe  
3ffff6a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff700:  feefeffe feefeffe feefeffe feefeffe  
3ffff710:  feefeffe feefeffe feefeffe feefeffe  
3ffff720:  feefeffe feefeffe feefeffe feefeffe  
3ffff730:  feefeffe feefeffe feefeffe feefeffe  
3ffff740:  feefeffe feefeffe feefeffe feefeffe  
3ffff750:  feefeffe feefeffe feefeffe feefeffe  
3ffff760:  feefeffe feefeffe feefeffe feefeffe  
3ffff770:  feefeffe feefeffe feefeffe feefeffe  
3ffff780:  feefeffe feefeffe feefeffe feefeffe  
3ffff790:  feefeffe feefeffe feefeffe feefeffe  
3ffff7a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff800:  feefeffe feefeffe feefeffe feefeffe  
3ffff810:  feefeffe feefeffe feefeffe feefeffe  
3ffff820:  feefeffe feefeffe feefeffe feefeffe  
3ffff830:  feefeffe feefeffe feefeffe feefeffe  
3ffff840:  feefeffe feefeffe feefeffe feefeffe  
3ffff850:  feefeffe feefeffe feefeffe feefeffe  
3ffff860:  feefeffe feefeffe feefeffe feefeffe  
3ffff870:  feefeffe feefeffe feefeffe feefeffe  
3ffff880:  feefeffe feefeffe feefeffe feefeffe  
3ffff890:  feefeffe feefeffe feefeffe feefeffe  
3ffff8a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff900:  feefeffe feefeffe feefeffe feefeffe  
3ffff910:  feefeffe feefeffe feefeffe feefeffe  
3ffff920:  feefeffe feefeffe feefeffe feefeffe  
3ffff930:  feefeffe feefeffe feefeffe feefeffe  
3ffff940:  feefeffe feefeffe feefeffe feefeffe  
3ffff950:  feefeffe feefeffe feefeffe feefeffe  
3ffff960:  feefeffe feefeffe feefeffe feefeffe  
3ffff970:  feefeffe feefeffe feefeffe feefeffe  
3ffff980:  feefeffe feefeffe feefeffe feefeffe  
3ffff990:  feefeffe feefeffe feefeffe feefeffe  
3ffff9a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff9b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff9c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff9d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff9e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff9f0:  feefeffe feefeffe feefeffe feefeffe  
3ffffa00:  feefeffe feefeffe feefeffe feefeffe  
3ffffa10:  feefeffe feefeffe feefeffe feefeffe  
3ffffa20:  feefeffe feefeffe feefeffe feefeffe  
3ffffa30:  feefeffe feefeffe feefeffe feefeffe  
3ffffa40:  feefeffe feefeffe feefeffe feefeffe  
3ffffa50:  feefeffe feefeffe feefeffe feefeffe  
3ffffa60:  feefeffe feefeffe feefeffe feefeffe  
3ffffa70:  feefeffe feefeffe feefeffe feefeffe  
3ffffa80:  feefeffe feefeffe feefeffe feefeffe  
3ffffa90:  feefeffe feefeffe feefeffe feefeffe  
3ffffaa0:  feefeffe feefeffe feefeffe feefeffe  
3ffffab0:  feefeffe feefeffe feefeffe feefeffe  
3ffffac0:  feefeffe feefeffe feefeffe feefeffe  
3ffffad0:  feefeffe feefeffe feefeffe feefeffe  
3ffffae0:  feefeffe feefeffe feefeffe feefeffe  
3ffffaf0:  feefeffe feefeffe feefeffe feefeffe  
3ffffb00:  feefeffe feefeffe feefeffe feefeffe  
3ffffb10:  feefeffe feefeffe feefeffe feefeffe  
3ffffb20:  feefeffe feefeffe feefeffe feefeffe  
3ffffb30:  feefeffe feefeffe feefeffe feefeffe  
3ffffb40:  feefeffe feefeffe feefeffe feefeffe  
3ffffb50:  feefeffe feefeffe feefeffe feefeffe  
3ffffb60:  feefeffe feefeffe feefeffe feefeffe  
3ffffb70:  feefeffe feefeffe feefeffe feefeffe  
3ffffb80:  feefeffe feefeffe feefeffe feefeffe  
3ffffb90:  feefeffe feefeffe feefeffe feefeffe  
3ffffba0:  feefeffe feefeffe feefeffe feefeffe  
3ffffbb0:  feefeffe feefeffe feefeffe feefeffe  
3ffffbc0:  feefeffe 3ffffcb3 feefeffe feefeffe  
3ffffbd0:  feefeffe feefeffe feefeffe 4021245c  
3ffffbe0:  3ffffd10 3ffe8304 3ffffc70 4020e4b5  
3ffffbf0:  feefeffe 3ffe8fd0 3ffffc20 00000001  
3ffffc00:  ffffffff 00000000 3ffe9f31 3ffffc70  
3ffffc10:  4021245c 3ffffd10 3ffe8fd0 4020e870  
3ffffc20:  00000022 3ffffd13 4010106b 3fff15bc  
3ffffc30:  3ffe8304 00000000 00000020 4021245c  
3ffffc40:  3ffffd70 3ffe8985 3ffffcd0 4020e4b5  
3ffffc50:  00000000 3ffffd0e 3ffffc80 3ffe8985  
3ffffc60:  00000000 3ffe8304 3ffffd10 40212704  
3ffffc70:  00000000 00000022 00000000 00000000  
3ffffc80:  00000022 00000024 3f302073 3fff0be5  
3ffffc90:  3ffe8304 0000000c 00000010 3ffe9b19  
3ffffca0:  3ffffd13 3fff1244 3fff185a 402144c8  
3ffffcb0:  00000008 3ffffce0 00000020 3fff1258  
3ffffcc0:  00000000 3ffe8304 00000000 402128bc  
3ffffcd0:  3ffffe40 3ffffe10 00000010 00000022  
3ffffce0:  3ffe8986 00000001 3f302078 00000012  
3ffffcf0:  00000018 3fff1800 3fff1814 00000000  
3ffffd00:  3fff05a4 3ffe8304 00000040 4021029d  
3ffffd10:  3ffffde4 00007801 0000001b ffff0208  
3ffffd20:  3ffffdc0 0000003f 00000000 4010020c  
3ffffd30:  3ffffe70 3ffffe60 00000010 00000005  
3ffffd40:  3fff1257 00000012 00000000 40100575  
3ffffd50:  3fff12ac 00000020 3fff1214 00000080  
3ffffd60:  40240270 3ffe8304 00000080 4021029d  
3ffffd70:  3ffffea7 3ffffdd0 00000068 ffff0208  
3ffffd80:  3ffffe90 00000008 3fff0584 402102e0  
3ffffd90:  3ffffe40 3ffffe10 00000008 00000024  
3ffffda0:  3fff05a4 00000008 3ffffdc0 4020b990  
3ffffdb0:  3fff1214 3fff1164 3ffffddc 4020bce4  
3ffffdc0:  6f430a20 63656e6e 676e6974 206f7420  
3ffffdd0:  4b4c4154 4b4c4154 43313932 57203344  
3ffffde0:  0a696669 00000000 000000b2 4010020c  
3ffffdf0:  40240270 00000017 3fff1244 401006dc  
3ffffe00:  3ffffe40 3ffffe10 00000008 4020cb58  
3ffffe10:  40240270 3ffffe90 3ffffe60 3ffe8fd0  
3ffffe20:  6000001c 00000019 0000000c 7fffffff  
3ffffe30:  3ffe8980 3ffe96d0 3ffffe10 3ffffe40  
3ffffe40:  40104d40 000753bd 3fff06b8 00000000  
3ffffe50:  3ffef0a0 3fff06b8 3ffe85f4 3fff06b8  
3ffffe60:  3ffe8f68 3ffe84e4 4020cc10 3fffefb0  
3ffffe70:  3fff06b8 3ffe8f68 000001f4 4020169b  
3ffffe80:  3fff04ec 3fff0584 3fff0474 402034f0  
3ffffe90:  696e550a 44492074 7365203a 36323870  
3ffffea0:  39632d36 00616264 feefeffe feefeffe  
3ffffeb0:  feefeffe feefeffe feefeffe feefeffe  
3ffffec0:  feefeffe feefeffe feefeffe feefeffe  
3ffffed0:  feefeffe feefeffe feefeffe 00000000  
3ffffee0:  402020d9 00000100 00000100 401004e4  
3ffffef0:  402023a4 3fff1964 3fff1934 40202302  
3fffff00:  0001c200 0000001c 00000003 4020b5b9  
3fffff10:  00000000 00000000 00000000 00000000  
3fffff20:  4022c3b1 00186a00 3fff05a4 4020ba70  
3fffff30:  4020b684 0000001c 3ffef680 3fff0664  
3fffff40:  3ffef680 3fff05a4 3fff0584 402035ee  
3fffff50:  feefeffe feefeffe feefeffe feefeffe  
3fffff60:  40202de8 2a01a8c0 4020d02c 4020d014  
3fffff70:  feefeffe feefeffe feefeffe feefeffe  
3fffff80:  feefeffe feefeffe feefeffe feefeffe  
3fffff90:  feefeffe feefeffe feefeffe feefeffe  
3fffffa0:  feefeffe feefeffe feefeffe 3fff0664  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,6)


 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset

Have you erased all the flash memory on the board?

not that im aware off??? should i

Usually means invalid pointers or corrupt binaries, so i would erase all the flash. You do it by changing the tools menu → erase flash → erase all flash or something like that then upload, change it back to just sketch afterwards.

im back to this message in the serial now

 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset

:face_with_symbols_over_mouth::face_with_symbols_over_mouth::face_with_symbols_over_mouth:

Try uploading slower or a different D1 Mini maybe.

OK, I think there maybe a problem with the OTA code, so try commenting it out -

//  ArduinoOTA.onStart([]() 
//  {
//    OTAupdate = true;

//    addLog("OTA Update Initiated . . .");
//  });
//  ArduinoOTA.onEnd([]() 
//  {
//    addLog("\nOTA Update Ended . . .s");
//    ESP.restart();
//  });
//  ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) 
//  {
//    char log[LOGSZ];

//    snprintf_P(log, sizeof(log), PSTR("Progress: %u%%\r"), (progress / (total / 100)));
//    addLog(log);
//  });
//  ArduinoOTA.onError([](ota_error_t error) 
//  {
//    char log[LOGSZ];
//    OTAupdate = false;
//    snprintf_P(log, sizeof(log), PSTR("OTA Error [%u] \n"), error);
//    addLog(log);
//    if (error == OTA_AUTH_ERROR) addLog(". . . . . . . . . . . . . . . Auth Failed\n");
//    else if (error == OTA_BEGIN_ERROR) addLog(". . . . . . . . . . . . . . . Begin Failed\n");
//    else if (error == OTA_CONNECT_ERROR) addLog(". . . . . . . . . . . . . . . Connect Failed\n");
//    else if (error == OTA_RECEIVE_ERROR) addLog(". . . . . . . . . . . . . . . Receive Failed\n");
//    else if (error == OTA_END_ERROR) addLog(". . . . . . . . . . . . . . . End Failed\n");
//  });
//  ArduinoOTA.begin();

Like so.

1 Like

Looks like you were right commented out the above

Boot complete. Message loop started!
Send your messages to the MQTT topics MSG0 - MSG9 to have them displayed. If you set a message to an empty string it will be skipped.

Assigned IP 192:168:001:041
1 Like