Using GPIO pins on Zero 2 W to controll light

misoldier06

Active Member
View Badges
Joined
Jun 2, 2011
Messages
187
Reaction score
107
Location
San Antonio
Rating - 0%
0   0   0
So,

Decided to try using reef-pi to control my DIY LED's. I've got three channels run by meanwell drivers. I created a PCB that uses GPIO Pins 14, 15 and 22 (All PWM GPIO pins according to raspberry/adafruit) and a Sparkfun Logic Level board to dim the channels. When i'm in the reefpi software when i try to create a jack using any of these pins I get an error saying:

{"error":"Failed to create. Error: invalid pin 14: unknown pwm channel 14"} | HTTP 500

Why is it doing this? How do I tell reefpi that it can in fact use those pins as PWM's as they are GPIO/PWM pins?

I tried using the PCA9856 driver and I COULD add the pins as jacks that way, but when i connected my light to it, it would not control the light. The light came on but would not dim/could not control the light.

I'm a new user to these things, and dont know anything besides what i've learned along this journey of building a WIFI/App controllable LED. A bit frustrated as this is several months in the making with tons of trial and error. Someone please help!
 
Without using the pca9856, a Raspberry Pi is limited to 2 PWM channels. I suspect that’s your issue.
 

TOP 10 Trending Threads

HOW MUCH DOES A FISH’S FEEDING REQUIREMENTS AFFECT YOUR STOCKING DECISIONS?

  • A lot! - I avoid fish that require frequent or specialized feeding

    Votes: 22 32.4%
  • Quite a bit, but an automatic feeder can change my answer

    Votes: 10 14.7%
  • It depends on whether my nutrient export can handle it

    Votes: 9 13.2%
  • It depends on how badly I want the fish

    Votes: 14 20.6%
  • Not much. I’m willing to adjust my routine

    Votes: 12 17.6%
  • Not at all. Feeding demands don’t limit my stocking choices

    Votes: 12 17.6%
  • I usually learn about the demanding feeding schedule after buying the fish!

    Votes: 2 2.9%
  • I haven’t really considered this before

    Votes: 4 5.9%
  • Something else (see my comments in the thread)

    Votes: 2 2.9%
Back
Top
Home
Post thread…
Market
What's new