Problems controling 5v RGB LED strip with D1 Mini

Hi All,

I’m trying to set up a panel light using a D1 Mini and some 5v strip LEDs. I have managed to get it to turn on, and change colour thoough its not the colours I am looking for… in order to get Blue I need to select yellow on the colour wheel, for red I select aqua, and for green I select pink, I need to select the opposite side of the wheel to the colour I actually want… and I cant turn the lights off they go to white ( or as close as the leds can get)

here is my code so far

esphome:
  name: emergency_light_joiners
  platform: ESP8266
  board: d1_mini

light:
  - platform: rgb
    name: "Emergency Light Joiners"
    id: emergency_light_joiners
    red: red
    green: green
    blue: blue

output:
  - platform: esp8266_pwm
    pin: D7
    id: red
  - platform: esp8266_pwm
    pin: D6
    id: green
  - platform: esp8266_pwm
    pin: D8
    id: blue

I have the + connected to 5v on the D1 Mini ( also tried it connected to 3.3v same issue)

Any help is appretiated thank you

Sounds like you need to invert the output pins.

Try this:

output:
  - platform: esp8266_pwm
    pin: D7
    id: red
    inverted: True
  - platform: esp8266_pwm
    pin: D6
    id: green
    inverted: True
  - platform: esp8266_pwm
    pin: D8
    id: blue
    inverted: True
2 Likes

Thank you Tom thats everything working perfectly!!

1 Like