Shaped like a mini brick the "Blok Bot" is the building block of bots. With the heart of a Raspberry Pi Zero the Blok Bot can be programmed to be a friend, assistant, teacher,listener,etc. You can program vision recognition, voice interactions, and responds to voice commands. IOT Robot that can be used for any project.
The Resolution works well within the .20 to .27 range.
Sanding + Xacto knife may be used.
Designed using 123D SketchUp
The designed was based off of Polylines in combination with extrude function.
Heres a demo of BlokBot +MiniplanV5 Intergration voice Recognition
Project: BlokBot Pi
Overview & Background:
This project helps gain an understanding of designing a simple Blok Bot and learning how to program with different Speech API on the raspberry pi.
Students will learn to use Raspberry Pi Zero.
Students will learn to create/use Schematics.
Students will learn to Solder
Students will learn imaging.
Students will learn Python coding
Students will understand speech recognition API
Students will experience hands on construction.
Students learn robotics.
The grades, ages, or skill levels that would be appropriate for this Project.
4th grade+, Age 10+, Skills in Soldering
Subjects in programming in Python, and Bash. Basic understanding of speech recognition.
Skills Learned (Standards):
Complex Thinking Skills
Raspberry Pi Zero
PI NOIR Camera V2 or Pi Camera V2
Silicon 30AWG wires (variety of colors is recommended)
(optional not needed)20x SMD Tactile Pushbutton Key Switch Momentary Tact 2 Pins 362.5mm
Raspberry Pi Zero v1.3 Camera Edition
Raspberry Pi Zero v1.3 Camera Cable
Edimax WiFi USB
32 or 64gb card
PowerBoost 500 Charger - Rechargeable 5V Lipo USB Boost @ 500mA+
NTSC/PAL (Television) TFT Display - 1.5 NTSC/PAL (Television) TFT Display - 1.5" Diagonal PID
2m 30AWG White Silicone Cover
2m 30AWG Black Silicone Cover
2m 30AWG Red Silicone Cover
2m 30AWG yellow Silicone Cover
2m 30AWG green Silicone Cover
2m 30AWG bluewSilicone Cover
Above are the parts needed to build a Blok Bot
Print out all 6 layers
Here we will modify the Zero4U module by soldering out the battery holder and replace with 30mm red/black 30awg wire.
Next shorten the backside of the camera cable that connects to the Raspberry Pi side
Much shorter backside
On layer 1 tape the back of the camera to the inside of Layer1
Connect The raspberry pi zero to Zero4U
Stuff the camera cable between the pi and Zero4U
On the Raspberry Pi, solder the wires to both displays. Schematic shown.
At the 4th Layer add the battery and the Poowerboost.
Finally set the screens on top of the battery and the powerboost, make sure to put electrical tape behind the screens.
Finally add the special case
Lets use Sample.wav to test speaker
Press F6 to list all soundcards
│ │ │ │ │ │
│ │ │ ┌───── Sound Card ──────┐ │
│ │ │ │- (default) │ │
│ │ │ │0 bcm2835 ALSA │ │
│ │ │ │1 USB PnP Sound Device │ │
│ │▒▒│ │2 USB Audio Device │ │
│ │▒▒│ │ enter device name... │ │
│ │▒▒│ └───────────────────────┘ │
│ │▒▒│ │▒▒│
Based off the soundcard hardware selection
aplay sample.wav -c2 -D hw:0,0 (Speaker)
aplay sample.wav -c2 -D hw:1,0
aplay sample.wav -c2 -D hw:2,0
Lets configure the Microphone
arecord -d 2 -D plughw:1,0 -r 16000 -f S16_LE sample.wav (Tiny Microphone)
Once everything works lets install espeak
sudo apt-get install espeak
sudo apt-get install espeak python-espeak
In terminal type aplay -l to make a note on the USB audio device as the output
sudo nano /etc/asound.conf
And set the code below for Espeak to work correctly. Save it
Alsamixer command helps to for tuning
sudo apt-get install libboost-regex1.49.0
sudo apt-get install git-core
git clone git://github.com/StevenHickson/PiAUISuite.git
if you encounter "error while loading shared libraries: libboost_regex.so.1.49.0: cannot open shared object file: No such directory"
sudo apt-get install libboost-regex1.49.0
Voice command setup config file
To setup custom custom commands from words
There are two files included in the site, one is an .sh file and one is a python file.
API used is Wit.Ai, you can use any API you want, I used Wit.API as an example. If you want to use Wit.Ai just change the token Key.
Make sure both files have 777 permissions.
1 hour for printing.
1 hours for assembling and programming.
Rubric & Assessment:
What implementations can the student add to further improve it?
What did the student learn for building this?
Any troubleshooting problems the student encounter?
Handouts & Assets: