-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with leds on ReSpeaker Mic Array v2.0 #266
Comments
Ok, now I understand more : Respeaker 4Mic HAT is not ReSpeaker Mic Array v2.0 ......... But the problem, now, is how can I pilot the ReSpeaker Mic Array v2.0 leds ? |
I also use the ReSpeaker Mic Array v2.0 and you can find out how to control the LEDs in the docs here. I created the following 4 scripts and then integrated them into my systemd service: detection.py: #!/usr/bin/env python3
import time
from pixel_ring import pixel_ring
if __name__ == '__main__':
pixel_ring.change_pattern('echo')
while True:
try:
pixel_ring.wakeup()
break
except KeyboardInterrupt:
pixel_ring.off()
break off.py: #!/usr/bin/env python3
import time
from pixel_ring import pixel_ring
if __name__ == '__main__':
pixel_ring.change_pattern('echo')
while True:
try:
pixel_ring.off()
break
except KeyboardInterrupt:
pixel_ring.off()
break stt-stop.py: #!/usr/bin/env python3
import time
from pixel_ring import pixel_ring
if __name__ == '__main__':
pixel_ring.change_pattern('echo')
while True:
try:
pixel_ring.think()
time.sleep(3)
pixel_ring.think()
break
except KeyboardInterrupt:
pixel_ring.off()
break tts-start.py #!/usr/bin/env python3
import time
from pixel_ring import pixel_ring
if __name__ == '__main__':
pixel_ring.change_pattern('echo')
while True:
try:
pixel_ring.speak()
time.sleep(3)
pixel_ring.set_brightness(5)
break
except KeyboardInterrupt:
pixel_ring.off()
break After that add the following to your wyoming-satellite.service, reload deamon and restart the service.
Now the ring lights up like Alexa. Other things can be integrated using the docs, such as different brightness/colors etc. You can also use other actions and call your own scripts for other functions, see here. |
@tech-kev : thank You very much !!! Your reply is perfect for a noob like me. |
Hell, I installed pixel_ring using
What am I missing ? |
Good afternoon,
I installed wyoming-satellite on this hardware :
I applied this tutorial , satellite and local wake word detection work good but I have problems with Led service.
When I launch 4mic_service.py, I receive an error and, so, 4mic_leds.service cannot start :
I don't understand what is the problem (I'm quite a noob).
Can You help me ?
The text was updated successfully, but these errors were encountered: