Merge branch 'master' of https://github.com/microsoft/pxt-ev3
@ -24,7 +24,7 @@
|
||||
* [Line Following](/tutorials/line-following)
|
||||
* [Red Light, Green Light](/tutorials/redlight-greenlight)
|
||||
* [Object Near?](/tutorials/object-near)
|
||||
* [Intruder Alert](/tutorials/intruder-alert)
|
||||
* [Security Alert](/tutorials/security-alert)
|
||||
|
||||
* [Coding](/coding)
|
||||
* [Autonomous Parking](/coding/autonomous-parking)
|
||||
|
@ -21,11 +21,11 @@ Here are some fun programs for your @boardname@!
|
||||
"imageUrl": "/static/maker/security-gadget.png"
|
||||
},
|
||||
{
|
||||
"name": "Intruder Detector",
|
||||
"description": "Raise the alarm when an intruder sneaks in",
|
||||
"url":"/maker/intruder-detector",
|
||||
"name": "Movement Detector",
|
||||
"description": "Raise the alarm when an movement sneaks in",
|
||||
"url":"/maker/movement-detector",
|
||||
"cardType": "example",
|
||||
"imageUrl": "/static/maker/intruder-detector.png"
|
||||
"imageUrl": "/static/maker/movement-detector.png"
|
||||
},
|
||||
{
|
||||
"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.
|
||||
|
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
|
||||
[{
|
||||
"name": "Intruder Alert",
|
||||
"description": "Build an intruder alert using the infrared sensor.",
|
||||
"name": "Security Alert",
|
||||
"description": "Build an security alert using the infrared sensor.",
|
||||
"cardType": "tutorial",
|
||||
"url":"/tutorials/intruder-alert",
|
||||
"imageUrl":"/static/tutorials/intruder-alert.png"
|
||||
"url":"/tutorials/security-alert",
|
||||
"imageUrl":"/static/tutorials/security-alert.png"
|
||||
}]
|
||||
```
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
# Intruder Alert
|
||||
# Security Alert
|
||||
|
||||
## 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
|
||||
|
||||
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
|
||||
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.
|
||||
|
||||
![Screen image selections](/static/tutorials/intruder-alert/show-image-dropdown.png)
|
||||
![Screen image selections](/static/tutorials/security-alert/show-image-dropdown.png)
|
||||
|
||||
```blocks
|
||||
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
|
||||
|
||||
![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
|
||||
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.
|
||||
|
||||
![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
|
||||
|