• 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

This Article Has Been Shared 601 Times!

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

  • Base64 Encoding on ESP32 Arduino (Base64 for Images)

    Base64 images are easy to transmit over the network. Here is How to Use Base64 Encoding on ESP32 Arduino. ESP32 lacks sufficient RAM.

  • Connecting ESP32 Arduino with DHT11 with IBM Watson IoT

    Earlier, we described how to create graph on IBM Watson IoT dashboard by using the default widgets. In previous guide, we described how to use ESP32 Arduino with DHT11 sensor. Here is the Code and Diagram to Connect ESP32 Arduino with DHT11 with IBM Watson IoT and Get Odometer Like Gauges on Dashboard. For this […]

  • Contact Bounce of Pushbuttons and Arduino ESP32 Debounce

    No surface is perfectly smooth and inelastic. When two surfaces of pushbutton comes together with any force, there is kinetic energy that makes ringing.

  • ESP32 With DHT11 Deep Sleep : Part 1

    Here is part of ESP32 with DHT11 deep sleep guide explaining the basic behind code. In second part we will connect it with cloud IoT service.

  • Required Circuit For Bare Minimum ESP32 Module

    When you need many ESP32 for projects then you’ll save money by avoiding full development board. Here is the Required Circuit For Bare Minimum ESP32 Module.

Additionally, 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 (22.1K 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

  • Ways To Make Sure Your Online Course Outshine Others July 3, 2022
  • Will Smart Factories Become the New Assembly Line? July 2, 2022
  • The Cost of Doing Business as a Handyman July 1, 2022
  • Samsung Galaxy S22 Ultra: Long Term Review June 30, 2022
  • How to Make the Most of Your S Pen (S22 Ultra) June 29, 2022

About This Article

Cite this article as: Abhishek Ghosh, "Alexa with ESP32 Arduino and Watson IoT Platform : Fundamentals," in The Customize Windows, July 29, 2019, July 4, 2022, https://thecustomizewindows.com/2019/07/alexa-with-esp32-arduino-and-watson-iot-platform-fundamentals/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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