bruhautomation / ESP-MQTT-JSON-Digital-LEDs

(OBSOLETE) ESP8266 MQTT JSON Digital LEDs for Home Assistant
https://youtu.be/9KI36GTgwuQ
Apache License 2.0
511 stars 268 forks source link

doubt about wiring? HELP #88

Closed arissaraiva closed 6 years ago

arissaraiva commented 6 years ago

I´m not good with this wiring thing and don´t have much knowledge of arduino and esp. I was able to turn on the esp it´s comunicating with my broker and receiving the messages. But my lights are staying on the same collors and not turning on and neither turning off. What´s the necessity of having the 3.3v and GND wired? Does it affect the transmitting of data?

Joeboyc2 commented 6 years ago

Hi arissaraiva,

Can you describe what components you are using? Have you set this up the same way as Ben did in the video.

Or are you using a different esp board

3.3v is the supply voltage for an esp01, or 12e on a breakout board.

If your using a node mcu, you power that via the vin pin(5v) or the micro usb port

The esp/nodemcu needs to have a ground connection to the lights and the external power supply you are using.

Without that you will not be able to control the lights because the circuit will be broken

Maybe a photo of your setup you help us out

arissaraiva commented 6 years ago

Hello tks for the replying, I think that´s my problem I didn´t put the ground from the light to the board, my circuit is like this:

My led strip is a 5m ws2811 30 leds per meter RGB, I changed the collor in the sketch to match mine and leave it with 186 leds since mine is apparently 150, but some could say all over the internet that is less than this.

My led strip after everything conected was responding to the effects but not turning off.

Apreaciate your help, I don´t have a photo because I´m not at home.

tks

federom commented 6 years ago

arissaraiva, put the same amount of led you have in your strip (count them), otherwise it may cause issues

arissaraiva commented 6 years ago

Thanks I´d do that, but I would also like a tip or explanation of how I could ground my nodemcu toghether with the power supply whithout frying my board, I think that´s the real problem of my configuration, since I was able to run the effects but not able to turn off my led.

Joeboyc2 commented 6 years ago

Grounding the nodemcu and the power supply should work fine, you don't really need to worry about frying the board, ground is just ground, no voltage passes through that

arissaraiva commented 6 years ago

Thank you very much will try and post the feedback afterwards

Joeboyc2 commented 6 years ago

Great stuff, hope it works out

arissaraiva commented 6 years ago

one last question I was forwarded to this schematics: http://www.puckstar.com/ws2811-ledstrip-controlled-via-wifi-with-home-assistant/ . I was thinking about to follow these as it seems more easier, but if my led strip is 12 volts and my nodemcu is 5volts, ground directly from the led shouldn´t be a problem right? I´m really noobie on this electric thing I´m trying to learn.

Joeboyc2 commented 6 years ago

I see no issue with that schematic, you can see that the ground from the supply (plug in the wall) is connected to one of the strips ground lines, and then the 2nd ground line is connected the the node.

If you can follow that schematic with the items you have then you should be good to go

arissaraiva commented 6 years ago

quick question when we´re talking about ground this means neutral or V- from the suply power right?

Joeboyc2 commented 6 years ago

Yes, negative, v- Ground are all pretty much the same when work ing with low voltage dc

arissaraiva commented 6 years ago

tks sir apreaciate your help