Voice activated Google Assistant on Raspberry Pi with visual feedback

How to enable Ok google in Google Home running on raspberry pi.

Add visual notifications

It allows us to understand what is the current state of our Raspberry Pi assistant

Blue Light : Google  Assistant is listening.

Red :Ligh : Google Assistant is saying something.


Coding part

Clone the Google SDK git repository  to home directory .

Now edit the hotword.py file


sudo nano /home/pi/assistant-sdk-python/google-assistant-sdk/googlesamples/assistant/library/hotword.py

Modify the contents [ changes/ additions are highlighted ]

Install RPI GPIO in virtual environment 

pip3 install RPi.GPIO


Run as a Service

Make sure that you are in virtual environment 

(env) pi@raspberrypi:~ $

else run

source /home/pi/env/bin/activate


We need to create an shell script to enable virtual environment “hotword.sh “

nano /home/pi/assistant-sdk-python/google-assistant-sdk/googlesamples/assistant/library/hotword.sh To run as a service you need to create a service file in /lib/systemd/system/ folder

sudo nano /lib/systemd/system/assistant.service Enable and start service

sudo systemctl start assistant.service

Check Status of the service

sudo systemctl status assistant.service

Enable service

sudo systemctl enable assistant.service

All cotents are also in Gist: https://gist.github.com/arevindh/ae50e18394625747e6beae600b10e374

Enable GPIO in env
pip3 install RPi.GPIO

USB Sound Card Adapter


IoT Project “Smart Home” : Part 1

“Smart Home” my final year MCA project based on Internet of things . The project came from some project seen on Raspberry Pi Website .

The Project is divided into 3 parts

  1. Nodes communicate with Server
  2. Server Mosquitto which uses MQTT Protocol
  3. Android App , which  communicates with server

Each node can have the following functionalities.

  • Turn ON /OFF the multiple devices.
  • Report the current status of the device.
  • Measure the climatic conditions.
  • Detect and report user presence.

All  the above can be obtained using arduino and needed sensors but communicating with server can be very difficult so better is go with a microcontroller with supports both processor and wifi , i chose esp8266  read more about esp8266 here .

MQTT Protocol is used to communicate between nodes , server , android app

Next Part : The Node

#Esp8266 #smarthouse #iot

A post shared by Siddhu Arevindh (@_itsmesid_) on


Pcb for #smarthome using #esp8266 an #iot based project

A post shared by Siddhu Arevindh (@_itsmesid_) on

Seminar on Internet of things ( IoT )

The Internet of Things (IoT) is defined in many different ways, and it encompasses many aspects of life from connected homes and cities to connected cars and roads, roads to devices that track an individual’s behavior and use the data collected for push services. Some mention one trillion Internet connected devices by 2025 and define mobile phones as the eyes and ears of the applications connecting all of those connected things. By these internet of things billions objects can communicate over worldwide over a public, private internet protocol network in 2010, the number of everyday physical objects and devices connected to the Internet was around 12.5 billion. Smart cities, Smart cars, Public safety, Smart Industries and Environmental Protection has been given the high intention for future protection by IoT Ecosystem. For the development the government of Europe, Asia and America has considered the Internet of Things has area innovation and growth. Many visionaries have seized on the phrase Internet of Things to refer to the general idea of things, especially everyday objects, that are readable, recognizable, locatable, addressable, and/or controllable via the Internet, irrespective of the communication means (whether via RFID, wireless LAN, wide- area networks, or other means).Radio Frequency Identification (RFID) and sensor network technologies will rise to meet this new challenge, in which information and communication systems are invisibly embedded in the environment around us.

This results in the generation of enormous amounts of data which have to be stored, processed and presented in a seamless, efficient, and easily interpretable form. This model will consist of services that are commodities and delivered in a manner similar to traditional commodities. Due to internet of things hospitals are shifting to remote self-monitoring for patients. Due self-monitoring it gives the patient greater freedom and independence for their health and free the equipment for emergency propose for patients.

Download Seminar Report : Report.PDF