Posts Tagged ‘raspberry pi’

My personal voice activated security system and more


Based off of AIY Google Voice Hat for $10 on Amazon I control my home security camera via wifi. I add 5 streaming radio channels, I add youtube voice search and google search and checking my gmail email. On top of Google Assistant API so as to include all the Google Home features.

Using machine learning/ artificial intelligence we control a security system thru voice commands

Download the code below:
code repository downloadProject was written using Python on Raspberry PI 3 with Voice Hat 





Get $10 Google AIY Version 1 working

So I bought this $10 Google Assistant from Amazon Prime.  Only to find out it doesnt work as easily as advertised.   It comes with a modified Raspian distro.  Here are the latest steps I did to get mine to work.  I spent a half a day muddling through commands,  so im not sure if previous steps might have led to it working but hope this helps someone…Note the audio volume in the navigation is disabled, but the google voice does work (when I did get the audio driver working, the google voice via python was not)

cd ~/AIY-projects-python

sudo scripts/


Renaming /home/pi/.asoundrc to /home/pi/.asoundrc.bak…
Renaming /etc/asound.conf to /etc/asound.conf.bak…
Installed voiceHAT ALSA config at /etc/asound.conf
Installed voiceHAT ALSA config at /home/pi/.asoundrc

I tried:  python checkpoints/


ImportError: No module named

python3 checkpoints/

Worked…Playing test sound….

So the module only works when you declare the Python3…..

before this i did compile the drivers by going to the /home/pi/drivers-raspi folder, and ran

sudo ./

the script appears to compile the drivers and created a boot/config.txt file….I believe the parameters in the config.txt file are run when the image boots up…here is a copy of mine in case anyone else may need to compare:

I added dtoverlay=googlevoicehat-soundcard to mine, I also added dtparam=audio=on but the driver script appears to have commented dtparam=audio=on  out to #dtparam=audio=on

# For more options and information see
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default “safe” mode

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border

# uncomment to force a console size. By default it will be display’s size minus
# overscan.

# uncomment if hdmi display is not detected and composite is being output

# uncomment to force a specific HDMI mode (this will force VGA)

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display

# uncomment for composite PAL

#uncomment to overclock the arm. 700 MHz is the default.

# Uncomment some or all of these to enable the optional hardware interfaces

# Uncomment this to enable the lirc-rpi module

# Additional overlas and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
# dtoverlay=dwc2