LED Matrix MQTT

Could someone please link me the the whole libraires and setup information. I’ll make a repo for that on my server

Hi @thundergreen as of yesterday i finally got the LED Matrix working on my wemos D1 mini using @vbh code which @keithh666 posted his latest copy HERE.

Using the board manager i installed ESP8266 version 2.4.2. (Note to add this board, file-> preferences then add in addtitonal board managers URLs https://arduino.esp8266.com/stable/package_esp8266com_index.json)

under sketch -> include Library -> Manage Libraries.

install the latest version of:-

  • MD_parola Version 3.1.1
  • MD_MAX72xx Version 3.1.0
  • pubsubclient Version 2.7.0

if you you would like my pin for the D1 Mini.

CLK_PIN   D5
DATA_PIN  D7
CS_PIN    D8

However As @keithh666 mentioned a couple of lines back, he has identified an error witht the ArduinoOTA section so comment out the following. (im sure this will get ironed out in the future but as of today.)

//  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();

as i am also running node red, @vbh has kindly also posted a setup, which can be imported into node red - https://pastebin.com/raw/nBqmHtmM

Hope helps these are the setting i am currently using as of today, i cant help any further as i simply haven’t had chance to play yet.

I would like to thank @keithh666 for his time an patience these past couple of days…Top Man :+1:

2 Likes

Hi @Richard_Gaunt @keithh666

The connection from the esp8266 to the led matrix…can it be on any led ? As there are 4 leds connected in series, or does it have to be connected to the first or the last one only?

Thanks

The esp can only be fitted to the first in the series, and you will notice it says in->out on the bottom of the leds.

so if I was to connect it to the middle matrix in the “in” part it wouldnt work? Its the same thing isnt it?

Nope it’s not the same thing as they are leds and current only flows one way :frowning:

Oh right
I have already put my led matrix in a case glued now I need to remove it

Hi @keithh666

Is the led Matrix meant to be connected to Vin which is 5v on the esp8266?

Mines called VCC but yes connect it to the 5V output on the D1 Mini.