Skip to content

A fun IOT project to control an esp8266 IOT device using voice command

Notifications You must be signed in to change notification settings

mdnajimahmed/esp8266-voice-controlled-led

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp8266-voice-controlled-led

A fun IOT project to control an esp8266 IOT device using voice command

Demo._.ESP8266.-.Controlled.via.voice.command.mp4

Architecture

image

Installing the driver

Micropython IDE (beginner friendly)

Installing micropython using Thonny

Micropython doc

How it works

  • The front end is written in React because it is very easy to bootstrap a ReactJS project using npx create-react-app command and start developing UI!
  • The front end uses a library called react-speech-kit that helps to do the voice-to-text conversion. I followed this blog https://www.commoninja.com/blog/how-to-convert-speech-to-text-in-react-with-the-react-speech-kit. Here is another nice blog on this - https://blog.openreplay.com/make-your-app-speak-with-react-speech-kit/
  • When a command is received at the front end, it is sent to the backend for processing. The backend is a REST API written in golang. The backend receives the command over HTTP and sends the command to the ESP8266 device via TCP. Go code is acting as a http listener for the React App and a TCP client to the ESP8266 device, a gateway to the device to send command from the ReactApp.
  • Finally there is a tcp listener written in micropython which is running in the ESP8266 device. The tcp listener receives the command and executes it on the hardware.

Tips:

About

A fun IOT project to control an esp8266 IOT device using voice command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published