Closed jkms closed 9 months ago
@jkms Thanks for the detailed write-up!
Can you try changing this line:
led_power = gpiozero.LED(LEDS_GPIO, active_high=False)
to this:
led_power = gpiozero.LED(LEDS_GPIO, active_high=True)
I wonder if the GPIO pin is just active high for the 4mic HAT?
Yay!
@jkms can you tell me what version of the 4-mic array you have? I got mine working with your updated PR, but my LEDs are on seemingly full brightness all the time. they change color appropriate times, and my voice commands work, but when the command is done, the LEDs go back to full on until it hears the wakeword again. my board says "v1.1 01/10/2020" thanks!
v1.2 01/11/2021
Issue
I cannot make the lights in examples/2mic_service.py work correctly. Voice commands are working perfectly (thank you for this. I used rhasspy in the past, and this was so much easier to setup, it's honestly amazing!)
Hardware
Troubleshooting
changed
NUM_LEDS
andLEDS_GPIO
I have changed the following values. These are the correct values for the ReSpeaker 4-Mic Array
from
2mic_service.p
:debug logging
I know that I'm running the service correctly, see an example output from
$ journalctl -u 2mic_leds.service -f
explicitly setting an LED in
main()
So, disclaimer. I'm not a programmer, and I don't know anything about anything. But I wanted to try and figure this out. I tried the following, and i was able to make one LED blink for split second:
https://github.com/rhasspy/wyoming-satellite/assets/660916/0eb5607f-45d3-42f8-873e-1fd5c34e8646
explicitly setting an LED in
LEDsEventHandler()
I tried the same
set_pixel()
andshow()
functions elsewhere to try and hunt down the problem, but when I call those functions insideLEDsEventHandler()
I get no LED activity whatsoever. (I used different LEDs, to make sure I didn't miss anything, and i was sure to run though several successful voice commands).pixels.py
And I also know that my hardware is fine, because I can run pixels.py and my pi/respeaker lights up like a Christmas tree