Smart Safe-Student Step by Step

Page 1

Let’s Build!

Create an alarm system for your ‘safe’.

Instructions

Workspace

Instructions

Turn on and pair: ● 1 Light Sensor block ● 1 RGB LED block and drag onto the workspace. Also drag on: ● 2 Compare blocks ● 2 Colour blocks. ​In the settings of the Compare blocks, set as follows: ● 1st: ‘≥ 30’ ● 2nd: ‘≤ 29’.

Workspace

Connect the blocks as shown.

​In the settings of the Colour blocks, set as follows: ● 1st: red ● 2nd: yellow.

Ⓒ 2019 SAM Labs

1


Instructions

Workspace

​Put the Light Sensor inside your ‘safe’ and the RGB LED outside of it. Test your system.

Ⓒ 2019 SAM Labs

2


Challenge 1

Create a ‘smart safe’ that has a sound alert to confirm that the alarm is on standby.

Instructions

● ●

Workspace

Instructions

​Drag onto the workspace: 1 Sound Player block 1 additional Compare block.

Connect the blocks as shown.

Workspace

​In the settings of the new Compare block, set to ‘> 3’.

I​ n the settings of the Sound Player, set to ‘Set Alarm’.

​Test your system.

Ⓒ 2019 SAM Labs

3


Challenge 1 – Debug It!

How can I make the alert more effective when the ‘safe’ is opened?

Instructions

Workspace

Instructions

Drag onto the workspace: ● 1 virtual Buzzer.

Workspace

In the settings of the Buzzer, slide the volume down.

Connect the blocks as shown.

​Drag onto the workspace: 1 Interval block.

​In the settings of the Interval block, set to ‘3 seconds’. Test your system.

Connect the blocks as shown.

Ⓒ 2019 SAM Labs

4


Challenge 2

Create an image-capture feature in the system to photograph the intruder opening the ‘safe’.

Instructions

● ●

Workspace

Instructions

​Drag onto the workspace: 1 Camera block 1 additional Interval block.

Workspace

​In the settings of the Interval connected to the Camera, set to ‘500 milliseconds’.

Connect the blocks as shown.

​Test your system.

​ iew the images in the V gallery on your device. Discuss your system. Define the ‘​event​’, ‘​action​’ and the ‘​If-Then​’ parts in the system.

Ⓒ 2019 SAM Labs

5


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.