Introduction: The All-Knowing Artifact
The aim of this project is to build an ancient relic that looks the part, but is delightfully useless. We're thinking of an all knowing statue, which only answers very specific questions and doesn't work at least half the time.
- Raspberry Pi
- Google AIY Kit
- 3D Printer
- Spray Paint
- Google Dialogflow
- Google Cloud Platform
Step 1: Project Video
Step 2: Statue
First, we 3D printed the model, after which we started sanding. With a couple of new found arm muscles, we applied the primer and final colour. To achieve the right look and feel we used the colour 'Bronze Antique Gold', how classy!
Our print had a little mishap, a hole in the head, so we hid it by gluing some fake leaves to the inside. The result is a good looking antique, with an imposing leaf crown.
Step 3: Box
Our relic needs a fitting throne. To build it, we used a pile of bamboo left over from some yard work.
The first step is to determine the size, after which we can saw the bamboo to the desired lengths and glue it all together.
With the four walls and bottom firmly attached, the last part is cutting some more bamboo and laying it on top, we now have a box and lid!
To be honest, this was a lot of trial and error, combined with a small mountain of glue. Any box will do as long as the electronics fit.
Step 4: Electronics
Step 5: Dataflow & Code
Last but not least, we need to write some code. No worries, it's added the this tutorial.
Here is an overview of how the full project works:
The microphone picks up someone speaking and records the audio.
Using some Google magic (Speech-To-Text) we extract the text from the audio.
This text is sent to our chatbot (Dialogflow) and is matched with an intent, after which one of the possible answers is sent back to the Raspberry Pi.
Using Text-To-Speech, the text is converted to audio.
This audio is played back to the person via the speaker.
Step 6: Result!
With all the hard work done, we can look back and question our life choices.
We did however succeed in building a neat looking artifact, that is about as useful as a glass hammer.
To give some context to the above pictures, the conversation with the artifact went something like this:
Question: "What is the meaning of life?"
Answer: "Please specify 'meaning' and 'life'."
Question:"Am I a good person?"
Answer:"Depends on your definition of 'good'."
Question: "You are useless, aren't you?!"
Answer: "I'm as useful as you are, so you decide."
Question: "Can you make a cheesy movie reference?
What a time to be alive...