• 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 275 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 (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

  • What Online Casinos Have No Deposit Bonus in Australia March 30, 2023
  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023

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, March 31, 2023, https://thecustomizewindows.com/2019/07/alexa-with-esp32-arduino-and-watson-iot-platform-fundamentals/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT