Smart Lamp
Objectives
After this lesson, students will be able to:
- Build a program that will enable an action to a robot, based on their voice command, just like a virtual assistant (Alexa, Siri etc.).
- Make a smart lamp using the LED lights of Quarky, that will switch ON when they say ON and will switch OFF when they say OFF.
Introduction
In this session, students are going to learn about voice-controlled devices, i.e. devices that get triggered to some action, for example a device that outputs light based on some voice input. Students will build a voice controlled lamp using Quarky. They will write a script that will make the Quarky LED lights to get switched ON when they say the command ON and will make the LED lights switched OFF when they say the command OFF.
Activity
A smart lamp that will switch ON when you say ON and will switch OFF when you say OFF.
Teaching Resources
PicoBlox Code
Title | Description | File |
---|---|---|
Smart Lamp | A smart lamp that will switch ON when you say ON and will switch OFF when you say OFF. | https://ai.thestempedia.com/wp-content/uploads/2022/03/Session13_Smart-Lamp-1.sb3 |
Timeline
Title | Approximate Duration | Procedure | Reference Material |
---|---|---|---|
Introduction to smart lamps | 5 |
|
Lecture Slide |
Activity: Smart Lamp | 30 |
|
Lecture Slide, PictoBlox File and
Activity Sheet |
Conclude the Session | 5 |
|
Lecture Slide |
Things to Remember
Before Class
- Make sure each PC has the latest version of PictoBlox installed and running.
- Make sure all the Quarky robots are in working condition and are fully charged.
- Make sure all the Quarky robots have a working USB cable with them. If you are using Bluetooth to connect Quarky with PictoBlox, make sure that you have downloaded the PictoBlox Link and it stays well connected.
- Make sure that all the devices running PictoBlox has a working webcam as well as bluetooth.
During Class
- If the students are unable to find a block, point them to the color of the block on the block palette.
After Class
- Make sure students save their codes/scripts.
- Make sure they shut down the PC/Laptops.
- Make sure they return Quarky and USB cable in good condition.