• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Alexa with ESP32 Arduino and Watson IoT Platform : Fundamentals

By Abhishek Ghosh July 29, 2019 8:13 am Updated on July 29, 2019

Alexa with ESP32 Arduino and Watson IoT Platform : Fundamentals

Advertisement

In our one earlier discussion, we delivered the concept of how we can Build ESP32 Arduino Glass Touch Switch With LED. Higher models of the glass touch switchboards also have Alexa voice control support. In this fundamental discussion, we will talk on how to combine Alexa with ESP32 Arduino and Watson IoT platform. We can use Amazon Echo Dot or just Android Smartphone with Alexa app as a verbal command input device. Basically we will speak a trigger command to Alexa E.g “Alexa, turn on the fan” which will raise an event on a middleware server and trigger an action to post a HTTP message to our Node-Red instance or directly send cURL command to Watson IoT Platform. In Node-Red we will pick up the message and send an MQTT message command to our gateway (ESP32 Arduino). The ESP32, upon receiving the command will turn on the fan-like our general purpose guide to controlling the AC Powered Appliances With ESP32 and IBM Watson IoT.

As for fan or light, we need a minimum of two sets of commands :

“Alexa, turn on the fan”
“Alexa, turn off the fan”

Advertisement

---

Controlling the speed of the fan is slightly complex from the electronics part, we want to avoid this fundamental guide.

For the above thing, we will use IFTTT (ifttt.com) as middleware. That will decrease significant coding and sufficient for personal usage. To connect IFTTT Alexa channel with Amazon, we have some ready to use the channel to test-connect to Amazon account :

Vim
1
https://ifttt.com/amazon_alexa

IFTTT (ifttt.com), upon receiving the command will poke IBM Watson IoT platform using normal webhook :

Vim
1
https://ifttt.com/maker_webhooks

“Alexa, turn on the fan” command will trigger one set of function. “Alexa, turn off the fan” command will trigger another set of function. In case you want to use Node-RED, then also IFTTT has ready to use node for Node-RED. That much setup is enough for personal need.

But for production-grade usage, you need to directly use either own server or IBM Cloud services (based on Apache OpenWhisk) to handle the verbal command. We can create an Alexa skill using Watson Assistant via the Apache OpenWhisk serverless framework. IBM Cloud Functions will be used to integrate Alexa with Watson Assistant. Here, we can invite the AI of Watson.

Alexa with ESP32 Arduino and Watson IoT Platform

You: “Alexa, can Watson turn on the light” (can = forcing logic via Watson, it is not dumb on/off)
Alexa invokes IBM Cloud Functions with input text
The action gets the Watson Assistant context from Redis (if any).
The action gets a response from Watson Assistant (if any).
Determine the action if possible to allow (when applicable).
The response context is stored in Redis.
The response text is sent back to Alexa.
Alexa: “OK, light has been turned on”
OR
Alexa: “How funny! Light is already turned on.”

Here is an example GitHub repo which can help you:

Vim
1
https://github.com/IBM/alexa-skill-watson-conversation

The above will help you if you are wondering how the commercial smart switches work with one Alexa and so many users. You may use this idea to create creative command for doorbell :

Case 1 :

Visitor: “Alexa, should I press the doorbell”
Alexa: “None is in the house. Press the doorbell and speak, I will send a message to Abhishek”

Case 2 :

Visitor: “Alexa, should I press the doorbell”
Alexa: “None is in the house. Please phone Abhishek yourself”

Case 3 :

Visitor: “Alexa, should I press the doorbell”
Alexa: “Yes. Go ahead.”

Tagged With alexa arduino ESP32 , alexa esp32 arduino , amazon echo esp doorbell , connect an esp32 to the watson iot platform , esp32 alexa , esp32 alexa arduino
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Alexa with ESP32 Arduino and Watson IoT Platform : Fundamentals

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • IoT Based Pulse Oximeter With ESP32, MAX30102 and IBM Watson IoT

    Pulse oximeters are in use since long during an operation, in intensive care, in the emergency room and other places such as in unpressurized aircraft. The COVID-19 pandemic made pulse oximetry technology for the consumers. Most of the finger pulse oximeters in the market lack BLE and Wi-Fi. There are only a few finger pulse […]

  • Basic Smart Doorbell With IBM Watson IoT and ESP32 Arduino

    Before the lockdown, I was building a basic smart doorbell with ESP32 and IBM Watson IoT. The function is easy and practical. We are adding a circuit with ESP32 to an existing battery-operated doorbell. When a person will press the doorbell, you will receive a push notification on your mobile phone. (Long back) I created […]

  • Getting Started with Node-RED for ESP32 Arduino (localhost & IBM Cloud)

    Here is Getting Started Guide with Node-RED for ESP32 Arduino to Learn on localhost & IBM Cloud. Node-RED is a way to visualize data on IBM Watson IoT platform.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • PowerAmp Settings for Higher Sound QualityOctober 4, 2023
  • Affordable Earphone/IEM for Audiophiles: HiFiMan RE-400 WaterlineOctober 2, 2023
  • What is Hardware Security Module (HSM)September 30, 2023
  • Transducer Technologies of HeadphonesSeptember 28, 2023
  • What is Analog-to-Digital Converter (ADC)September 27, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy