-
Voice-Activated FUnicorn with Google AIY Voice Kit & RPi
03/10/2021 at 22:59 • 0 commentsThat's riiiiight! Your favorite potty-mouthed horned pony can now be VOICE ACTIVATED! We've put together a python script that works with a Raspberry Pi and a Google AIY Voice Kit, and only needs you to hook up 2 jumper wires between the Pi and the FUnicorn. No soldering needed!
Here's our repo on Github, it's forked from the Google AIY Projects repo. NOTE! When cloning the repo, the first thing you should do is check out the <aiyprojects> branch! Google discontinued the default "master" branch at some point and it is old.
Hardware Setup:
- Google AIY Voice Hat Servo 0 left pin (GPIO26) to Alpenglow FUnicorn button connector pin 3
- Google AIY Voice Hat Servo 0 right pin (GND) to Alpenglow FUnicorn button connector pin 4
Changes and Additions:
- cloudspeech.py was updated according to description in issue 716.
- demo python scripts for the FUnicorn added to src/examples/voice
We wanted full functionality of the Google Assistant with the option to use the wake word. We also wanted the Google Assistant to control the Raspberry Pi output and use a custom phrase to activate the FUnicorn.
Examples:
- funicorn_demo_wassistant.py has full Google Assistant functionality and is commanded via the wake word (OK Google or Hey Google), and outputs a "button press" to the FUnicorn when "fuck you" is uttered. It also says "No, Fuck You" in a most excellent obviously computer-generated voice. This would be a good script to modify and use with your own custom hardware.
- funicorn_demo_alwayslistening.py is solely a cloud speech to text demo that is always listening and interpreting. There is no Google Assistant functionality.
-
Social Distance FUnicorn
03/10/2021 at 22:22 • 0 commentsA while back we had a little bit of Socially Distant FUnicorn fun. We grabbed this $4 HC-SR04 ultrasonic distance sensor from adafruit, added it to the FUnicorn, and made our own little warning for anyone getting within 6 ft.
If you'd like to make your own Social Distance Unicorn, example code is now part of the FUnicorn Arduino library on GitHub - it's also installable & updatable through the Arduino IDE. Instructions for adding libraries to Arduino are on this project's page under "instructions".
- For distance sensor operation: Connect following wires from sensor to FUnicorn, GND to GND, ECHO to pin13, TRIG to pin12, VCC to 3.3V.
Here's a short video on how to hook up the distance sensor to the FUnicorn:
-
FUnicorn_Button Code
07/13/2020 at 02:07 • 0 commentsplaceholder
-
How it Works - the FUnicorn Schematic
07/13/2020 at 02:06 • 0 commentsplaceholder