rename intruder to security (#492)
@ -24,7 +24,7 @@
|
|||||||
* [Line Following](/tutorials/line-following)
|
* [Line Following](/tutorials/line-following)
|
||||||
* [Red Light, Green Light](/tutorials/redlight-greenlight)
|
* [Red Light, Green Light](/tutorials/redlight-greenlight)
|
||||||
* [Object Near?](/tutorials/object-near)
|
* [Object Near?](/tutorials/object-near)
|
||||||
* [Intruder Alert](/tutorials/intruder-alert)
|
* [Security Alert](/tutorials/security-alert)
|
||||||
|
|
||||||
* [Coding](/coding)
|
* [Coding](/coding)
|
||||||
* [Autonomous Parking](/coding/autonomous-parking)
|
* [Autonomous Parking](/coding/autonomous-parking)
|
||||||
|
@ -21,11 +21,11 @@ Here are some fun programs for your @boardname@!
|
|||||||
"imageUrl": "/static/maker/security-gadget.png"
|
"imageUrl": "/static/maker/security-gadget.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Intruder Detector",
|
"name": "Movement Detector",
|
||||||
"description": "Raise the alarm when an intruder sneaks in",
|
"description": "Raise the alarm when an movement sneaks in",
|
||||||
"url":"/maker/intruder-detector",
|
"url":"/maker/movement-detector",
|
||||||
"cardType": "example",
|
"cardType": "example",
|
||||||
"imageUrl": "/static/maker/intruder-detector.png"
|
"imageUrl": "/static/maker/movement-detector.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Puppet",
|
"name": "Puppet",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Intruder Detector
|
# Movement Detector
|
||||||
|
|
||||||
This program will activate an alarm when an object moves in front of the Ultrasonic Sensor.
|
This program will activate an alarm when an object moves in front of the Ultrasonic Sensor.
|
||||||
|
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 199 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
@ -102,11 +102,11 @@ Step by step guides to coding your @boardname@.
|
|||||||
|
|
||||||
```codecard
|
```codecard
|
||||||
[{
|
[{
|
||||||
"name": "Intruder Alert",
|
"name": "Security Alert",
|
||||||
"description": "Build an intruder alert using the infrared sensor.",
|
"description": "Build an security alert using the infrared sensor.",
|
||||||
"cardType": "tutorial",
|
"cardType": "tutorial",
|
||||||
"url":"/tutorials/intruder-alert",
|
"url":"/tutorials/security-alert",
|
||||||
"imageUrl":"/static/tutorials/intruder-alert.png"
|
"imageUrl":"/static/tutorials/security-alert.png"
|
||||||
}]
|
}]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
# Intruder Alert
|
# Security Alert
|
||||||
|
|
||||||
## Introduction @fullscreen
|
## Introduction @fullscreen
|
||||||
|
|
||||||
The Infrared Sensor uses infrared light waves to detect proximity to the robot. Build an intruder alert using the infrared sensor.
|
The Infrared Sensor uses infrared light waves to detect proximity to the robot. Build an security alert using the infrared sensor.
|
||||||
|
|
||||||
![Brick in simulator with infrared sensor](/static/tutorials/intruder-alert/intruder-alert.gif)
|
![Brick in simulator with infrared sensor](/static/tutorials/security-alert/security-alert.gif)
|
||||||
|
|
||||||
## Step 1
|
## Step 1
|
||||||
|
|
||||||
Open the ``||sensors:Sensors||`` Toolbox drawer. Drag out an ``||sensors:on infrared||`` block onto the Workspace (you can place this anywhere). Use the second drop-down menu to select ``detected``.
|
Open the ``||sensors:Sensors||`` Toolbox drawer. Drag out an ``||sensors:on infrared||`` block onto the Workspace (you can place this anywhere). Use the second drop-down menu to select ``detected``.
|
||||||
|
|
||||||
![Sensor detect method dropdown selections](/static/tutorials/intruder-alert/detect-method-dropdown.png)
|
![Sensor detect method dropdown selections](/static/tutorials/security-alert/detect-method-dropdown.png)
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
sensors.infrared1.onEvent(InfraredSensorEvent.ObjectDetected, function () {
|
sensors.infrared1.onEvent(InfraredSensorEvent.ObjectDetected, function () {
|
||||||
@ -32,7 +32,7 @@ sensors.infrared1.onEvent(InfraredSensorEvent.ObjectDetected, function () {
|
|||||||
|
|
||||||
In the ``||brick:show image||`` block, use the drop-down menu to select the **STOP** sign image.
|
In the ``||brick:show image||`` block, use the drop-down menu to select the **STOP** sign image.
|
||||||
|
|
||||||
![Screen image selections](/static/tutorials/intruder-alert/show-image-dropdown.png)
|
![Screen image selections](/static/tutorials/security-alert/show-image-dropdown.png)
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
sensors.infrared1.onEvent(InfraredSensorEvent.ObjectDetected, function () {
|
sensors.infrared1.onEvent(InfraredSensorEvent.ObjectDetected, function () {
|
||||||
@ -55,7 +55,7 @@ sensors.infrared1.onEvent(InfraredSensorEvent.ObjectDetected, function () {
|
|||||||
|
|
||||||
In the ``||brick:set status light||`` block, use the drop-down menu to select the ``red flash`` light
|
In the ``||brick:set status light||`` block, use the drop-down menu to select the ``red flash`` light
|
||||||
|
|
||||||
![Status light selection dropdown list](/static/tutorials/intruder-alert/set-status-light-dropdown.png)
|
![Status light selection dropdown list](/static/tutorials/security-alert/set-status-light-dropdown.png)
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
sensors.infrared1.onEvent(InfraredSensorEvent.ObjectDetected, function () {
|
sensors.infrared1.onEvent(InfraredSensorEvent.ObjectDetected, function () {
|
||||||
@ -96,7 +96,7 @@ sensors.infrared1.onEvent(InfraredSensorEvent.ObjectDetected, function () {
|
|||||||
|
|
||||||
In the ``||music:play sound effect until done||`` block, use the drop-down menu to select ``information error alarm`` sound effect.
|
In the ``||music:play sound effect until done||`` block, use the drop-down menu to select ``information error alarm`` sound effect.
|
||||||
|
|
||||||
![Sound effect dropdown selections](/static/tutorials/intruder-alert/play-sound-effect-dropdown.png)
|
![Sound effect dropdown selections](/static/tutorials/security-alert/play-sound-effect-dropdown.png)
|
||||||
|
|
||||||
## Step 9
|
## Step 9
|
||||||
|
|