Table of Content
This tutorial will show how to make your Voice Kit communicate with Dialogflow to control an LED light with the Photon by voice. If you plan to take your project beyond the cardboard box, you might be wondering which GPIO pins are available for your other hardware. So figure 1 shows exactly which pins from the Raspberry Pi are used by the Voice Bonnet. Sure, the cardboard box you create won't be a seamless experience like a store-bought device. But once you buy this kit, you own this hardware and can use it however you want. Even Google is encouraging adventurous makers to remix their kits in unique ways.

The updated kits are rolling out to Target and include everything you need to build your own smart speaker or smart camera. After your account has been set up, you can move back to your Pi terminal and prepare to install the Assistant SDK. Head to the Google Cloud Platform and select the option to create a new project. Russell runs Raspberry Pi Press, which includes The MagPi, Wireframe, and HackSpace magazine, and book projects. It'd be a lot easier if you had all the code to hand.
Recommended Accessories For The Pi
If you want Homebridge to run all the time, you’ll probably want to configure it to restart if it crashes or if your Raspberry Pi restarts. Set this up after you’ve verified Homebridge is working as intended. I did notice a slight delay compared to my LIFX bulbs. This is probably because the bulbs are controlled over an API rather than directly. At first, the bulbs also didn’t display some whites and warm whites correctly, but after a bit of tweaking, I was able to set up proper scenes.
After all, that's the true maker way of doing things. If you’ve got a Raspberry Pi laying around (a $5Pi Zerois fine), you can set it up as a bridge with a framework called Homebridge. This lightweight, NodeJS application emulates the HomeKit API and forwards requests to your non-HomeKit smart devices. Finally it was only a matter of using some hot glue and a few screws and bolts to secure all the components inside the housing. Once he’d done that, Martin just had to set up the software of the Google Assistant, and presto!
Confirm you’re connected
Open your account’s Activity Controls and ensure the following options are enabled. All setup procedures will be done through this command line interface. After setting up Internet access and a new Raspbian installation on the Pi, you can move on to set up the audio devices.

The web page should show either a Choose your account or Sign in screen. Be sure you sign in using the same account that you entered as a test user for the OAuth consent screen above. Because the app requires user data, you need to add information for a user consent screen. Now that we've created the project, we need to select it so we can turn on the APIs we want to use. It’s a response from the shell that indicates that it is ready to receive commands, and tells you what your current working directory is (the tilde, ~, in this case). At the prompt, type yes and press enter to continue.
Run your app at bootup
It has a fairly large community backing, so there’s a good chance any given smart device probably has a Homebridge plug-in to add support for it. If your device doesn’t have a plug-in, but your smart device has an API, and you’re tech-savvy, you can write one yourself. So, a bridge just relays information from one API to another.
You can have a look there now if you're curious, or continue on to fill out the app's details. First, you'll need to clone this repo, and cd into the newly-created directory. For more examples using the GPIO pins, seethe AIY GitHub examples. It takes several seconds for the script to begin. Once it does, your servo should rotate back and forth between the minimum, maximum, and neutral position. But each servo can be a little different, so you might need to tune the parameters of the code to achieve a perfect alignment with your servo's full range of motion.
Check the box bottom
You might find it easier learn the aiy Python API if you start with an existing demo and modify it to do what you want. When you’re done with your Voice Kit for the day, it’s important to shut it down properly to make sure you don’t corrupt the SD card. When Ctrl-C is pressed while in Secure Shell Extension , will interrupt the command that you previously ran.
Believe me; issue 57, the one with the AIY kit, flew off shelves across the globe, and I was unable to find one anywhere either in person or online. You can disable notifications at any time in your settings menu. But you can only get the kit with the latest issue of MagPi magazine. A simple Raspberry Pi is perfect for essential thermostat control.
Return to the main billing page, then click the My projects tab. This waits for you to push the button, then begins recording what you say. When done speaking, press the button again and it will play the recording. If all is well, you will soon see "Press button to start conversation..."

The -f option continuously prints new log entries as they occur. By default, your Voice Kit doesn't do anything when it boots up; you must manually execute a program such as the Assistant Demo. But you can make this program run automatically upon bootup by creating a systemd service. You've now imported the basic app shell — take a look at the new ledControl intent .
No comments:
Post a Comment