Giter VIP home page Giter VIP logo

Comments (5)

ramkithepower avatar ramkithepower commented on May 27, 2024

Is the pin number correct? In your code if the following correct and have you connected the data in to the D5 pin of the nodeMCU.

#define DATA_PIN 5

In some nodeMCU the D5 pin is not after D4, you will have 3v and GND in between D4 and D5.

from esp-mqtt-json-digital-leds.

timmo001 avatar timmo001 commented on May 27, 2024

If you take a look at the pinout for the NodeMCU, D5 is the pin after the ground and 3.3v. See here:
https://cdn3.bigcommerce.com/s-vt19phz/product_images/uploaded_images/pinout.png?t=1491966337
If this still isn't working, try another pin and change the #define DATA_PIN 5 to the new pin in the code

from esp-mqtt-json-digital-leds.

federom avatar federom commented on May 27, 2024

I have the same issue with FAST LED, the issue is which is the DATA_PIN value i should use with D5

from esp-mqtt-json-digital-leds.

federom avatar federom commented on May 27, 2024

I solved ! If you are using NodeMCU version 3, and want to use D5 , add

#define FASTLED_ESP8266_NODEMCU_PIN_ORDER

before importing the Fast Led Library,

Then it will work when using DATA_PIN 5

Hope this helps,

from esp-mqtt-json-digital-leds.

zaine68 avatar zaine68 commented on May 27, 2024

#define FASTLED_ESP8266_NODEMCU_PIN_ORDER doesn't work for me. in fairness, nothing does... so far. I know my system works as I can use the McLighting code which works a treat. But, that code uses the NeoPixel.h library.

The mqtt side of things is working fine as i can see the messages coming in from HomeAssistant. I know FastLED works with my LEDS because i can do a simple script which turns the lights on just to prove the software works. I usually use D2 labelled on the board which effectively is GPIO4, which is also the same as i used in McLighting. LEDS are WS2812B, wouldn't have thought that the colour order would stop them from working, just give them the wrong values is all from what I've read.

Only other thing i can think of is that i've had to add the int MILLION = 100000; section to get over the error that the MILLION caused in the temp section. Should that be at the very beginning or lower down in the JSON bit?

I'm just rather puzzled!

from esp-mqtt-json-digital-leds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.