Skip to main content

Hardware setup

In order to properly illustrate our setup's assembly progress, we will divide it in two sections which we will later join together. On one hand, we will show the required configuration for our Cozmo robot and, on the other, the Voice Kit's, aiding the process with images and simple schemes. We will start off with the connection setup between our Cozmo robot and the Raspberry Pi 3B.






As seen on the scheme above, the connection between these two devices is pretty straight-forward: just accomodate the robot in his charger, connecting it to any nearby power point, and activate the Wi-Fi communication protocols between our smartphone and the device. These protocols are predefined in the Cozmo mobile app, and don't require any additional intervention by the user aside from connecting to the appropiated network using the password displayed on Cozmo's screen (in case the password doesn't appear, we can turn on said screen by manually raising and lowering his lift).

On the other hand, we will connect our mobile device to the Raspberry, previously activating the SDK functionality in our smartphone do that it will serve as an intermediary between the robot and the board using two different means of communication: WiFi and USB (which will allow us to both command Cozmo and, using the robot's own sensors, get a feedback stream where we can extract valuable information about our system and its surroundings).

The physical montage corresponding to the Raspberry and the Voice Kit components will follow the next pattern:









The connections related to the AIY's kit involve a greater cabling process, but nevertheless they aren't extremely difficult to pull off thanks to the explanation provided in the user manual written by the developer. The scheme is divided into three main parts: an audio output via speaker, an audio input of voice commands. All these components must be attached to the Voice HAT (a Raspberry Pi's shield extension, specifically designed for this kit), that will be subsequently docked to our board.

Teniendo en cuenta estos dos montajes, bastara  con acoplar monitor, teclado y rato n de nuestra eleccio n, adema s de introducir una tarjeta SD de no menos de 16GB con la imagen del AIY Voice Kit previamente instalada. Esto puede lograrse mediante el programa gratuito, Etcher, que permite el grabado de tarjetas, CD-ROMs y DVDs de forma fa cil y eficiente. Cumplidos todos los requisitos, podemos conectar la placa Raspberry Pi a una toma de corriente y proceder a instalar el software apropiado.



Comments

Popular posts from this blog

Hello world!

To conclude this first series of posts, and before we dwell into other projects, we will write a simple program that verifies we managed to perform all steps correctly, and therefore we are capable of freely using the bridges established between Cozmo, the Voice Kit and our smartphone. In order to access the various examples which will allow us to create the first test program, we should open the "Dev terminal", which can be found on the Desktop, and navigate our way to the voice examples. (use "cd aiyprojects-raspbian/src/examples/voice" to do so). Our "Hello world" will be based on the program "assistant_library_with_local_commands_demo.py", which allows the user to create custom voice commands to be executed or interpreted by the AIY's Voice Kit. To create such new command, we should first create a string that represents the words the user should say. For instance, if we wish Cozmo to say some words when asked to, we can use the string ...

Software setup

Given that Raspbian's OS is a comfortable environment to work with Python, and provided that the libraries and programs in charge of controlling both the Voice Kit and Cozmo are avaliable in the same language, it will be the one we will be using to write our scripts and future programs. But before this, it's required that we obtain the appropiated libraries for an optimal communication between the robot and our board, while verifying the kit is working accordingly. We will start off by making the adequated checks regarding this last one: According to the user manual associated to the AIY's Voice Kit, in order to check both the microphone and speaker are working fine, it will be necessary to execute the Python script "Check audio.py".    After executing it from the LXTerminal, our output shows the program has been executed successfuly and, because of this, we can safely assume both peripherials are working. Next up, we need to check our Raspberry Pi'...