Connecting an LED Strip to an Omega2+



  • Hello, I'm trying to figure out how I can control an LED Strip using my Omega2+. I'm using this (https://www.amazon.com/dp/B06ZZLHYB2/) LED strip. I understand that you need to ground R to get red, B to get blue, etc. but how would I connect this to be controlled by my Omega2+'s GPIO headers?
    Also is there a way to power the LED strip's 5V rail with the onion? I don't think it's possible since it only outputs 3.3V and I'm not sure what the resistance of the LED strip is. If I can't I could probably just use another usb just for power. I have to use USB to power the dock/Omega anyways so I could probably split power from that.

    I have an Omega2+ as well as the Expansion Dock. I'm still really new to IoT and Linux so sorry if please bear that in mind when answering :)



  • @dmynerd78 have a look at using PWM to drive the RGB lines of the LED's - the Omega has a simple command line to drive PWM.

    https://onion.io/2bt-fast-gpio-pwm/

    You could probably use the Omega GPIO's through open collector transistors or mosfets to drive the LEDS, then you won't have to worry about the 5V supply as it is isolated from the Omega's 3.3V. Read up on which GPIO pins to use though as some have special functions and you need to disable them using the omega2-ctrl gpiomux command

    https://docs.onion.io/omega2-docs/using-gpios.html


Log in to reply
 

Looks like your connection to Onion Community was lost, please wait while we try to reconnect.