element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Ben Heck Featured Content
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • Ben Heck Featured Content
  • More
  • Cancel
Ben Heck Featured Content
Documents Alexa Automated Workbench Part 1 -- Episode 325
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Ben Heck Featured Content to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 7 Dec 2017 6:34 PM Date Created
  • Last Updated Last Updated: 12 Jan 2018 8:24 AM
  • Views 1538 views
  • Likes 11 likes
  • Comments 7 comments
Related
Recommended

Alexa Automated Workbench Part 1 -- Episode 325

image

element14's The Ben Heck Show

Join the Ben Heck team every week for amazing hacks! Watch them build and mod community-inspired projects using electronics!

Back to The Ben Heck Show homepage image

The Learning Circuit
sudo Sergeant
See All Episodes

 

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Bob Badley, a local entrepreneur and engineer, stops by the shop to show Ben how team can use their Alexa device to automate their workbench. After walking Ben through the initial setup for building a skill, they’ll use a Python script to command a Raspberry Pi, works with any UART device, down to a USB port in a pinball.  

 

 

JavaScript Object Notation (JSON) is the standard text=based format for representing structured data based on JavaScript object syntax. It is commonly used for transmitting data in web applications.  In order to get this working, they’ll need to set up a Pi that can take in a JSonRequest and send back a JSonResponse.  Then they’ll set up a skill in Amaazon that can send the request and handle the response.  They’ll have to have all these parts working simultaneously in order to have anything work at all. Bob walks Ben through setting up an Amazon Developer Account.   Since Ben already has an echo at the shop that is linked to his account, they can use Ben's existing Amazon account information to login to Amazon Web Developer.    The echo dot they have at will automatically link to any Alexa skills that they build.

Once you sign in you have the option to get started with an Alexa Skills Kit or an Alexa Voice Service.  The Voice Service is used when you are building a device that was Alexa enabled.  Since they will be using an existing Amazon echo device they only need to go to Alexa Skills Kit. The two options that are frequently used are the custom interaction model and the smart home skill API.  The smart home skill API is a little more complicated because it requires more configuring.  The Custom Interaction Model, on the other hand, is easier to use but you have to invoke it using your custom word.  There are a couple of ways you can use an “Invocation Word”, the trigger used to give commands.  You could say “Alexa ask the to… ” or you could say “Alexa… “ while using the UART control that they are configuring.  Nothing else to configure on this page so they move onto the interaction model.

They can either write their interaction model in pure JSon or they can launch Skill Builder, Amazon’s  WYSIWG solution for those who don’t want to code.  For those who remember XML, a machine and human readable way of formatting data, JSon is a much better way of doing something similar. Using the Amazon Skill Set you are presented with three built-in intents that every skill needs to handle.: Amazon cancel intent, help, and stop.  Intents allow you to get out of back-and-forths with Alexa, something it’s enabled to do.  Now that they’ve gone over the default intents, it’s time for Bob to show Ben how to create one of his own.  The custom intent option allows you to setup your own keyword trigger.  The name you give it is a label, for the creator, they’ll add their own sample utterance once that’s enabled.  Intent slots are the variables you can use when setting up your commands, outside of the trigger command.

Bob walks Ben through what he needs to do in order to configure sample utterances and intent slots for the UART skill that they are building Once that's done they go over format formattypes and content Once they are done configuring the new skill Felix joins them to do a Pi to UART test As a special treat Ben pulls out a Radio Shack TRS-80 model 100 one of his favorite classic computers to run the test Its got an  RS-232RS-232 port on it and an FTDI adapter that he's built in They'll eventually use Alexa to ping the shop IP address and tunnel in to control the Raspberry Pi but this will suffice for testing Next they run an Alexa to Server to UART test Bob walks Ben through the web service that will run Alexa to Serva to UART The code for content parameters etc is written in PHP It will call the Python used for the Pi and Python will be used to send the things that they are requesting Python will be the thing acting on the Raspberry Pi that communicates with their serial ports

Disclaimer

  • javascript object notation
  • alexa voice service
  • hack
  • alexa skills kit
  • ftdi adapter
  • ip address
  • custom interaction model
  • json
  • xml
  • raspberry pi
  • uart
  • trs-80
  • jsonrequest
  • radio shack
  • Alexa
  • bh_accessibility
  • smart home skill api
  • heck
  • ben
  • amazon dot
  • trigger command
  • tbhs_ep
  • jsonresponse
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • f5kn
    f5kn over 7 years ago +2
    Really cool. Made me think instantly of helping people with disabilities, especially being that Ben has been doing single-handed controllers for quite a few years now.
  • shabaz
    shabaz over 7 years ago +1
    Looking forward to watching this : ) Automation like this is really important, especially when you're working with both hands, and want Alexa to take a measurement, grab a scope capture, start a timer…
  • the48sicks
    the48sicks over 7 years ago +1
    Another inspirational video from Ben and his team. I've managed to get this working with a Raspberry Pi using flask, flask Ask, and ngrok to get around the HTTPS issue. Using the camera on the Pi i can…
  • the48sicks
    the48sicks over 7 years ago

    Another inspirational video from Ben and his team. I've managed to get this working with a Raspberry Pi using flask, flask Ask, and ngrok to get around the HTTPS issue.


    Using the camera on the Pi i can send a command via Alexa to take a picture, send the image to my tensorflow server for classification and then feed the results back for Alexa to read out.

     

    "I think its a coffee mug"

     

     

    Matt

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • greggchandler
    greggchandler over 7 years ago

    Although I don’t remember mention in either of the two videos on this topic, requirement of an HTTPS SSL/TLS certificate to connect with the endpoint PI does increase the cost significantly.  Ostensibly, Amazon will work for testing purposes with a self-signed certificate, but would not work for me.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mikesparks
    mikesparks over 7 years ago

    Really interested in doing this but the Amazon part is incomplete. 

     

    They showed the Skill information part, The interaction Model (skill builder) but then without the Configuration information how do you make it actually work?

     

    I need to specify an End Point, but all the documentation points me to manually build a Lambda to generate an ARN for this...  Which is WAY more work than was implied....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Hugo007
    Hugo007 over 7 years ago

    Great demonstration, is the php code public? I would love to test it in my bench to.

    happy hacking

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • f5kn
    f5kn over 7 years ago

    Really cool. Made me think instantly of helping people with disabilities, especially being that Ben has been doing single-handed controllers for quite a few years now.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 7 years ago

    Looking forward to watching this : ) Automation like this is really important, especially when you're working with both hands, and want Alexa to take a measurement, grab a scope capture, start a timer, etc.. so useful what we can do with speech recognition and natural language processing and APIs into test equipment.

    Thanks for raising the topic and the excellent video!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 7 years ago

    Interesting capability.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube