Merge pull request #589 from Microsoft/light-monster-eds

Some edits to the 'light monster' project
This commit is contained in:
Galen Nickel 2017-12-05 16:42:20 -08:00 committed by GitHub
commit f90a8af25f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 19 deletions

View File

@ -1,7 +1,7 @@
# Light Monster # Light Monster
## @description A monster made of cardboard that responds to light ## @description A monster made of coffee cup holders that responds to light
## ~avatar avatar ## ~avatar avatar
@ -17,8 +17,8 @@ https://youtu.be/BiZLjugXMbM
## Materials ## Materials
* 3 Coffee cup holders * 3 Coffee cup holders (hot cup sleeves)
* 2 Coffee cup strirer wood sticks * 2 Wood coffee strirer sticks
* Glue gun * Glue gun
* Scissors that can cut cardboard * Scissors that can cut cardboard
* 1 @boardname@, battery holder and 2 AAA batteries * 1 @boardname@, battery holder and 2 AAA batteries
@ -28,7 +28,7 @@ https://youtu.be/BiZLjugXMbM
## Preparation ## Preparation
* [Equip the microservo with crocodile clips](/device/servo) * [Setup the microservo with crocodile clips](/device/servo)
## Activities ## Activities

View File

@ -1,5 +1,6 @@
# Code # Code
## @description code to make the coffee cup monster alive
## @description Code to make the light monster come alive
## ~avatar avatar ## ~avatar avatar
@ -9,8 +10,7 @@ Add code to open the mouth when light is detected.
## Duration: ~30 minutes ## Duration: ~30 minutes
We are going to add code to open the mouth proportionally to the amount of light on the @boardname@. We are going to add code to open the mouth proportionally to the amount of light on the @boardname@. The code is in a loop so we'll continually read the light level and map it to an angle using the ``||pins:map||`` function.
In a loop, we will read the light and map it to an angle using the ``pins.map`` function.
```blocks ```blocks
basic.forever(() => { basic.forever(() => {

View File

@ -2,15 +2,13 @@
## ~avatar avatar ## ~avatar avatar
Remote control your monster with another @boardname@ Remote control your monster with another @boardname@.
## ~ ## ~
## Duration: ~30 minutes ## Duration: ~30 minutes
You will need 2 @boardname@ for this part. By using the radio, we can make the inchworm controlled by another @boardname@. You will need one more @boardname@ for this part. By using the radio, we can control the monster with another @boardname@. Download the code below to the @boardname@ on the monster and then again onto a "controller" @boardname@. Whenever button **A** is pressed, the monster's mouth moves once.
Download the code below to the @boardname@ on the inchworm and another "controller" @boardname@.
Whenere A is pressed, the monster will open and close it's mouth will move once.
```blocks ```blocks
radio.onDataPacketReceived(({receivedNumber}) => { radio.onDataPacketReceived(({receivedNumber}) => {

View File

@ -1,25 +1,27 @@
# Make # Make
## @description Building the light monster ## @description Building the light monster
## ~avatar avatar ## ~avatar avatar
Turn a piece of coffee holders into a monster! Turn some coffee cup holders into a monster that moves to light!
## ~ ## ~
## Duration: ~60 minutes ## Duration: ~60 minutes
## Materials ## Materials
* 3 Coffee cup holders
* 2 Coffee cup strirer wood sticks * 3 coffee cup holders (hot cup sleeves)
* Scissors * 2 ood coffee strirer sticks
* scissors
* glue gun or tape * glue gun or tape
* 1 paper clip * 1 paper clip
## Step 1: cardboard ## Step 1: Glue the cup holders and sticks together
TODO TODO
## ~button /projects/coffee-cup-monster/code ## ~button /projects/light-monster/code
NEXT: Code NEXT: Code
## ~ ## ~