Giter VIP home page Giter VIP logo

voiceswitch's Introduction

VoiceSwitch

An accessible voice activated switch using a HUZZAH32 – ESP32 Feather Board and an Amazon Echo

A HUZZAH32 board connected to a wheelchair using a 3.5mm audio jack

Setup Instructions

  1. Setup an Adafruit IO account according to the following instructions:

1.1. Create an Adafruit IO account

1.2. Create an AIO KEY

1.3. Copy your Adafruit IO key for later use in the code

1.4. Create an Adafruit IO feed with name of your switch. I used feed name “Wheelchair” as an example.

  1. Setup your HUZZAH32 – ESP32 Feather Board

2.1. Download ESP32 library for Arduino IDE and install it according to the following instruction: https://learn.adafruit.com/adafruit-huzzah32-esp32-feather/using-with-arduino-ide

2.2. Download Adafruit IO Arduino library and add it under Arduino's "libaries" directory. https://github.com/adafruit/Adafruit_IO_Arduino

2.3. Download Adafruit Arduino library for MQTT support and add it under Arduino's "libaries" directory. https://github.com/adafruit/Adafruit_MQTT_Library

2.4. Download Adafruit AArduino HTTP Client library and add it under Arduino's "libaries" directory. https://github.com/arduino-libraries/ArduinoHttpClient

  1. Setup IFTTT account

3.1. Create an IFTTT account at https://ifttt.com

  1. Create switch on recipe

4.1. Click on the “New applet” button to create a recipe

4.2. Click on the blue this block and select “Amazon Alexa” as a service

4.3. Click on “Say a specific phrase” to turn on your switch

4.4. Enter the method phrase to activate the switch. I used phrase “Wheelchair on” as an example

4.5. Click on the blue that block and select “Adafruit” as the action service

4.6. Select “Send data to Adafruit IO” block

4.7. Enter “on” as the Data to save

4.8. Click on “Finish” button

  1. Create switch off recipe

5.1. Click on the “New applet” button to create a recipe

5.2. Click on the blue this block and select “Amazon Alexa” as a service

5.3. Click on “Say a specific phrase” to turn off your switch

5.4. Enter the method phrase to activate the switch. I used phrase “Wheelchair off” as an example

5.5. Click on the blue that block and select “Adafruit” as the action service

5.6. Select “Send data to Adafruit IO” block

5.7. Enter “off” as the Data to save

5.8. Click on “Finish” button

  1. Setup the VoiceSwitch-Single.ino code

6.1. Make a copy of your IO_USERNAME and IO_KEY from Adafruit IO account and paste them in the config.h file

6.2. Replace "your_ssid" with your WiFi's SSID and "your_pass" with your WiFi's password in the config.h file

6.3. Verify and upload VoiceSwitch-Single.ino code to your HUZZAH32 – ESP32 Feather Board

  1. Make sure the feed data status and status of your device match. You can manually set it to on/off to match it.

  2. Create a cable with a mono 3.5mm male jack on one end and 2 pin headers on the other side

8.1. Connect the signal jumper to the pin number 13 on HUZZAH32 and the other one to the GND pin

voiceswitch's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.