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 2 -- Episode 326
  • 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:38 PM Date Created
  • Last Updated Last Updated: 19 Jan 2018 8:24 AM
  • Views 2745 views
  • Likes 8 likes
  • Comments 15 comments
Related
Recommended

Alexa Automated Workbench Part 2 -- Episode 326

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 Baddeley returns to continue helping Ben automate his workbench using Alexa and Raspberry Pi.   They’ve already gotten Alexa up and running, talking to a microcontroller over USB.  Now it's time to automate everything else in the shop.  They’ll use a multimeter and get a reading from it, they’ll go over the network connection to the oscilloscope so that they can change its settings and take screenshots with voice commands. They will interface a Gert Board with the GPIO on the Pi so they can turn bits on and off. 

 

 

The Fluke Multimeter has an IR port on the top, so when they plug it into a device, it shows up as a regular serial port.   They hook it up to the terminal on the Raspberry Pi to determine what steps to take next.  The data returned depends on what mode the multimeter is in.  They’ll need to parse the data to see what they care about and send it back over the JsonResponse.  They are asking the python script to send a serial signal to the multimeter to request the reading, and then they take the response back and send it to their PHP script.  The PHP script takes that response then takes that response and splits it up into the individual comma separated values.  They’ll take the data sheet for the multimeter and convert it into its actual readings, pulling out the values that they care about. They’ll need to parse the data ain order for Alexa to pronounce the information correctly.   As it turns out, the Fluke has an internal reading that it sends over the serial port that is different from what it displays on the screen.  They’ll need to do some quick conversions in their PHP script to accommodate that.

Next, they’ll automate their MD0-3106 Tektronix a oscilloscope using a list of commands from a datasheet.  They’ll use Putty to set up a telnet connection with their oscilloscope.  Unlike the multimeter, you can control pretty much anything on an oscilloscope using tel-net commands. They can even reuse the code from the multimeter using different intents such as stop, run, save zoom, pan, scale, single, auto set, and repeat. Bob goes over the code they are using with Ben.  Alexa interprets voice and sends that to their Apache server which is running PHP, the PHP is calling Python which then goes down to the scope, and the Scope interprets.

After testing the oscilloscope commands they move onto the Gert board. Before plugging into the Alexa API they draw everything out on a whiteboard.  Ben sets up a skill that has an intent of set to allow them to set a specific pin while Bob sets puts a table in python.  Wiring Pi has been deprecated so they’ll need to use RPi.GPIO.  Alexa is now able to set pins hi and low or on and off.

 

Disclaimer

  • hack
  • episode 326: alexa automated workbench part 2
  • bh_accessibility
  • heck
  • ben
  • tbhs_ep
  • workbench
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • beacon_dave
    beacon_dave over 7 years ago +2
    Perhaps Ben could automate the workshop further by making use of a pair of Intel's new Vaunt smart glasses for augmented reality meter readouts ? https://www.theverge.com/2018/2/5/16966530/intel-vaunt…
  • shabaz
    shabaz over 7 years ago in reply to mikesparks +1
    I've yet to watch this second part, but Lambda in general is reasonably understandable if you're already familiar with the languages it currently supports (JavaScript and Python from memory, maybe more…
  • beacon_dave
    beacon_dave over 7 years ago in reply to makerkaren +1
    Ok, reading through the text accompanying the video it says: "That laser shines a red, monochrome image somewhere in the neighborhood of 400 x 150 pixels onto a holographic reflector on the glasses’ right…
  • beacon_dave
    beacon_dave over 7 years ago in reply to makerkaren

    Ok, reading through the text accompanying the video it says:

     

    "That laser shines a red, monochrome image somewhere in the neighborhood of 400 x 150 pixels onto a holographic reflector on the glasses’ right lens.  The image is then reflected into the back of your eyeball, directly onto the retina."

     

    So it appears to be reflected off a reflector placed on the lens rather than reflected off the lens itself, and then into the eye and onto the retina.

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

    They project directly onto your eye, but I thought it was still reflected off the lens to do so. I could be wrong.
    Edit: Reading that through, I realize that "directly" and "reflected" contradict each other. My point was that your eye doesn't focus on the lens in front of it, but I thought the laser still reflects off the lens directly into the eye so the eye simply sees it.

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

    If I understand correctly, the low power laser projects directly onto the retina and does not go through or project onto the lenses of the glasses. The frames I assume can take normal corrective lenses to suit your eyesight. The laser appears to be calibrated to the individual's eyes.

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

    From the video, it sounded like these could use corrective lenses. But given the location of the reflective surface for the display, I'm not sure how that would work with bifocals.

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

    Interesting, but I would need a way to add them to my existing glasses and not interfere with my bi-focals.

     

     

     

    DAB

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

    If we could get our hands on a pair. Though it looks like right now we would need to be software developers to have any use for them. The future is looking interesting.

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

    Perhaps Ben could automate the workshop further by making use of a pair of Intel's new Vaunt smart glasses for augmented reality meter readouts ?

    https://www.theverge.com/2018/2/5/16966530/intel-vaunt-smart-glasses-announced-ar-video

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

    I've yet to watch this second part, but Lambda in general is reasonably understandable if you're already familiar with the languages it currently supports (JavaScript and Python from memory, maybe more are added now). There is a log tool too, useful for debugging.

     

    Not a tutorial, but if you want to see a quick screenshot of an entire example Lambda function, and what it does, see one of the screenshots here:

    Beagle Bone Black Industrial IoT Kit - Review

     

    There is general training material on AWS online (I used that to write that Lambda function)  - but as mentioned I can't speak for this specific project, I've yet to watch this part 2.

    There is also training material on more components of AWS IoT, but it is certainly a bit heavy-going for newcomers, but the Lambda part alone is worth starting with.

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

    I really like where this is going, but there's again a big gap in the Amazon Alexa skill piece: The Lambda function.  Is there a way around that?  How do you deploy the skill to your device?

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

    ...along with brace delimiters for objects and bracket delimiters for arrays.

    https://www.json.org/

    • 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