Hardware Prerequisites
Before getting started, you can check with more details what hardware I used:
- Raspberry Pi 3 B+
- MATRIX Creator ,first steps, and datasheet, and you can buy a MATRIX Creator board here
- Micro-USB power adapter
- Micro SD Card (16 GB & class 10 speed)
- Micro-USB Cable
- USB Keyboard & Mouse & HDMI Monitor
- Internet connection
- A diymore Black ROT3U 6DOF Aluminum robotic arm (maximum extension: 45 cm) and six servos MG995 (Stall torque: 8.5 kgf·cm with 4.8 V, 10 kgf·cm with 6 V) dataseeht here
Software Prerequisites
You can check what required software on my personal computer I used:
- SD Card Formatter: To easily format our Micro SD Card
- balenaEtcher: To easily flash our compressed Raspbian Stretch image
- MATRIX kit image here which includes Stretch + MATRIX packages (2.18 GB)
- Node.js: Dependancy for Sam CLI Tool (Windows 64 bits)
- Git Bash: requirement asked by Node.js
- Snips' Sam CLI Tool: Creates & manages Snip assistants on your Raspberry Pi
Setting Up the Hardware
- First at all, You need a registered snips.ai account.
- Be sure to setup your Raspberry Pi with your MATRIX Creator device.
- Enable SSH on your Raspberry Pi. This allows the SAM CLI tool to connect to your Raspberry Pi board
- Install MATRIX Lite JS. This allows Snips to work on you Raspberry Pi board
- Configure Snips.ai
Once everything is well installed on your Raspberry Pi board, You can check the versions of: npm, node and nodejs.
In my case, I had two serious problems with the configuration of my hardware and these are the solutions:
FIRST SOLUTION: to activate the pcm.speaker, I had to add a rate of 16000 in the assound.conf file.
pcm.speaker { type plug slave { pcm "hw:0,0" rate 16000 } }
SECOND SOLUTION: My Raspberry Pi board has better audio with the "portaudio" board, so I had to activate it in the snips.toml file
[snips-audio-server] # frame = 256 # bind = "default@mqtt" mike = "MATRIXIO-SOUND: - (hw:2,0)" # disable_playback = false # disable_capture = false portaudio_playback="default"
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.