bananaboat
Posts: 1
Joined: Sun Oct 21, 2018 10:11 am

Which gpio's do i need to hook up a 3v led strip on to a pi 3 b+

Sun Oct 21, 2018 10:18 am

Hi,

I got a 3 volt RGB LED strip i want to connect to my Raspberry pi 3 B+. But which GPIO do i need to connect it to?

This is the actual LED strip:
Image


I want to control the LED with some basic python, php and html5, sources here: https://github.com/naztronaut/Nazberrypi-RGB

cheerz!


B.Goode
Posts: 6543
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Which gpio's do i need to hook up a 3v led strip on to a pi 3 b+

Sun Oct 21, 2018 3:36 pm

From the Notes section of the document you have linked to -
This has been tested on Raspbery Pi 3 and Raspberry Pi Zero. I'll keep updating this when I have time and eventually include a diagram of the connections.

More info on this can be found on https://www.easyprogramming.net/playgro ... ontrol.php Feel free to ask questions on Easy Programming.

The developer/maintainer of the project seems the appropriate person to ask for further details and assistance.

The pin assignment used by the developer is specified in the script rgb.py, with a comment indicating that it needs to be changed to suit your installation.

User avatar
MrYsLab
Posts: 128
Joined: Mon Dec 15, 2014 7:14 pm
Location: Noo Joysey, USA

Re: Which gpio's do i need to hook up a 3v led strip on to a pi 3 b+

Sun Oct 21, 2018 3:50 pm

From the code of the library you referenced:
pi.set_PWM_dutycycle(18,red)
pi.set_PWM_dutycycle(24,green)
pi.set_PWM_dutycycle(20,blue)

Pin 18 is red, 24 is green, and 20 is blue.

Return to “Python”