respeaker / seeed-voicecard

2 Mic Hat, 4 Mic Array, 6-Mic Circular Array Kit, and 4-Mic Linear Array Kit for Raspberry Pi
GNU General Public License v3.0
479 stars 289 forks source link

Using Neopixel RGB 24 LED ring with Respeaker 2mic hat? #68

Closed jabulonboaz closed 6 years ago

jabulonboaz commented 6 years ago

Hello is it possible to connect a Neopixel 24 RGB LED ring with Respeaker 2mic hat?

Normally a neopixel ring control pin can be connected to one of the Pi PWM GPIOs, typocaly GPIO13. Where can i connect the neopixel ring when i have the respeaker 2mic hat on the Pi3 ?

A similar question has been asked on the raspberrypi forum bit there is no answer so far: https://www.raspberrypi.org/forums/viewtopic.php?t=207684

qunanan commented 6 years ago

Hi there,

Please check this: https://pinout.xyz/pinout/unicorn_hat and this: 15441524551446_ pic_hd

jabulonboaz commented 6 years ago

!

jabulonboaz commented 6 years ago

jabulonboaz commented 6 years ago

jabulonboaz commented 6 years ago

@qunanan i have tried pin 12 but the LEDs do not light in the neopixel ring. I believe i have not asked you my question correctly. I have tried also pin BCM 10 that is the Respeaker LEDs data pin but only one LED of the neopixel ring lights up. What i want to do is drive the LEDs of the neopoxel ring to light up the same way the Respeaker LEDs light up. I have build this raspberry pi 3 with Alexa and Google Assistant SDKs and the Respeaker LEDs light up correctly when each assistant is triggered. I have done this using the pixel.py script for Google assitant and another script for Alexa and the Respeker LEDs are driven via the Respeaker SPI interface. The question is how can i drive the neopixel LEDs with the Respeaker SPI interface or BCM 10 pin or any other pin on the Respeaker board so they light up with the same pattern the Respeaker LEDs light up?

xiongyihui commented 6 years ago

@jabulonboaz Have you tried https://github.com/jazzycamel/ws28128-rpi

jabulonboaz commented 6 years ago

@xiongyihui The leds are driven via the SPI interface not the PWM on respeaker

xiongyihui commented 6 years ago

@jabulonboaz The ReSpeaker LEDs are driven SPI interface, but the neopixel is not. You need to change the code to light up the neopixel ring. https://github.com/jazzycamel/ws28128-rpi is a reference to drive the neopixel.

jabulonboaz commented 6 years ago

@xiongyihui then what if i use APA102c or APA102 LEDs like the Respeaker's ?