1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED NodeMcu setup. Need a hand please.

Discussion in 'Hardware Support' started by Akriss, 11 April 2017.

  1. Akriss

    Akriss Active Member

    Messages:
    563
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    A few weeks ago I came upon a German forum posting (http://www.forum-raspberrypi.de/Thr...esp8266-nodemcu-addon-wifi-led-controller-udp) detailing how to setup a ESP8266 NodeMCU with Hyperion. (I used Google translate) I was able to setup a ESP8266 ES-12E with a small string of ws2812b as a test and it was working good. So I dismantled it to test some other stuff and ordered some more ESP8266's to setup a bunch of remote pixels. =) And put aside the remote pixel idea till the order arrived.

    So I received the Nodemcu's I ordered (Wemos mini's) and sure enough Murphy's law is at work and I can't get it to work on ether of the Nodemcu's type's I have again. And I'm not spotting my error and would greatly appreciate if someone would check my work.

    I can run a simple strand test on both board with success with a string of 25 ws2812b's. With ether the Neopixel library or FastLed library. I have attached to this post, some fritzing pictures on the wiring that works for the strand test and for the remote pixel. wemos ESP8266-12E Sketch_bb.png ESP8266-12E Sketch_bb.png
    The “HyperionRGB.ino” file I have set “#define LED D3” nothing else changed.

    The ConfigStatic.h.example is copyed to ConfigStatic.h and edited as such:
    Code:
    /*------------------------------------------------*/
    /*Configuration type*/
    
    #define CONFIG_ENABLE_WEBCONFIG 1
    
    //Replaces all values in the webconfig with the ConfigStatic.h values when CONFIG_ENABLE_WEBCONFIG is enabled
    #define CONFIG_OVERWRITE_WEBCONFIG 0
    /*------------------------------------------------*/
    /*Logging level*/
    
    //#define LOGLEVEL LOG_LEVEL_INFOS
    //#define LOGLEVEL LOG_LEVEL_DEBUG
    #define LOGLEVEL LOG_LEVEL_VERBOSE
    /*------------------------------------------------*/
    /*Main static configuration*/
    //This cannot be changed via web inteface
    
    //#define CONFIG_LED_SPI_CHIPSET WS2801 //Comment out for clockless
    #define CONFIG_LED_CLOCKLESS_CHIPSET WS2812B //Comment in for clockless
    //#define FASTLED_ALLOW_INTERRUPTS 0 //Comment in if clockless stripe (ex. WS2812B) is flickering
    //#define CONFIG_LED_PWM 1 //Comment in if PWM Stripe
    
    #define CONFIG_LED_DATAPIN D1 //Comment out for PWM
    //#define CONFIG_LED_CLOCKPIN D2 //Comment out for clockless / PWM
    //#define CONFIG_LED_PWM_RED D1 //Comment in for PWM
    //#define CONFIG_LED_PWM_GREEN D2 //Comment in for PWM
    //#define CONFIG_LED_PWM_BLUE D3 //Comment in for PWM
    
    //Pin order, see FastLED doc. NodeMCU should work with FASTLED_ESP8266_RAW_PIN_ORDER
    #define FASTLED_ESP8266_RAW_PIN_ORDER
    //#define FASTLED_ESP8266_NODEMCU_PIN_ORDER
    //#define FASTLED_ESP8266_D1_PIN_ORDER
    
    #define CONFIG_LED_COLOR_ORDER RGB
    #define CONFIG_LED_COUNT 25
    
    //OFF, HYPERION_UDP, STATIC_COLOR, RAINBOW, FIRE2012
    #define CONFIG_LED_STANDARD_MODE FIRE2012
    #define CONFIG_LED_HYPERION_AUTOSWITCH true
    #define CONFIG_LED_STANDARD_MODE_TIMEOUT_MS 5000
    /*------------------------------------------------*/
    /*Main configuration*/
    //You can leave it empty and override it via the web interface on port 80
    #define CONFIG_WIFI_SSID "SSIDOFMINE"
    #define CONFIG_WIFI_PASSWORD "************"
    
    //#define CONFIG_WIFI_STATIC_IP 1
    //const byte CONFIG_WIFI_IP[] = {192, 168, 0, 100};
    //const byte CONFIG_WIFI_SUBNET[] = {255, 255, 255, 0};
    //const byte CONFIG_WIFI_DNS[] = {192, 168, 0, 1};
    
    #define CONFIG_WIFI_HOSTNAME "ESP8266"
    
    #define CONFIG_PORT_JSON_SERVER 19444
    #define CONFIG_PORT_UDP_LED 19446
    I have no problems uploading the sketch to ether of the Nodemcu boards, I can log in to the web interface and login with the android app.

    However the LED's refuse to work now! And this unskilled hobbyist needs a hand please.

    I even tried blowing out the Arduino install and reinstalling it and reinstalling the recommended libraries that SciLor lists in the Git repo as well. =/

    I'm lost Help please.

    Thank you
    Akriss.
     
  2. Akriss

    Akriss Active Member

    Messages:
    563
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I wish I had a dollar for ever time I figure it out minutes after posting for help. . . . .

    I see my error now. I failed to set the correct pin in ConfigStatic.h. It was set as "D1" the example default. I needed it set to D3.

    Well . . . ..

    Many many thanks to all Dev's / contributors.

    Ackriss
     
  3. Akriss

    Akriss Active Member

    Messages:
    563
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I found another configuration error I made, I had previously wrote “The “HyperionRGB.ino” file I have set “#define LED D3” nothing else changed.”

    This should not have been changed. That pin is for the Nodemcu's on-board led.
    In changing that pin, it made the first led in the strand blink green at regular intervals. It took me quite awhile to figure out my error.

    Well anyway Many Thanks.