Comments (5)
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.
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.
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.
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.
#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)
- OTA not working HOT 1
- ArduinoJSON Library has breaking changes. HOT 4
- inconsistent colors HOT 2
- Compiling error 'StaticJsonBuffer' was not declared in this scope HOT 2
- LEDs will not light up with this script. MQTT works, Circuit tested with another script and works HOT 3
- Lights turning off/freezing (already tried encor50's fix).
- Last Will Message - Availability HOT 5
- Problem with Home Assistant HOT 2
- Animation Freezes upon internet/wifi disconnection HOT 1
- MQTT_MAX_PACKET_SIZE in PubSubClient 2.7.0
- Only Lightning/Dots effects not working properly
- Outdated codes and not getting the leds to turn on
- Home Assistant Integration HOT 1
- ESP8266 realted
- Decrease brightness when switching the effect to solid
- how do i get rid of this
- Cyclon rainbow crashing MQTT HOT 11
- Incorrect colors HOT 1
- Animation speed not working HOT 3
- Need help, strip not lighting up
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-mqtt-json-digital-leds.