Merge pull request #589 from Microsoft/light-monster-eds
Some edits to the 'light monster' project
This commit is contained in:
commit
f90a8af25f
@ -1,7 +1,7 @@
|
||||
|
||||
# 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
|
||||
|
||||
@ -17,8 +17,8 @@ https://youtu.be/BiZLjugXMbM
|
||||
|
||||
## Materials
|
||||
|
||||
* 3 Coffee cup holders
|
||||
* 2 Coffee cup strirer wood sticks
|
||||
* 3 Coffee cup holders (hot cup sleeves)
|
||||
* 2 Wood coffee strirer sticks
|
||||
* Glue gun
|
||||
* Scissors that can cut cardboard
|
||||
* 1 @boardname@, battery holder and 2 AAA batteries
|
||||
@ -28,7 +28,7 @@ https://youtu.be/BiZLjugXMbM
|
||||
|
||||
## Preparation
|
||||
|
||||
* [Equip the microservo with crocodile clips](/device/servo)
|
||||
* [Setup the microservo with crocodile clips](/device/servo)
|
||||
|
||||
## Activities
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Code
|
||||
## @description code to make the coffee cup monster alive
|
||||
|
||||
## @description Code to make the light monster come alive
|
||||
|
||||
## ~avatar avatar
|
||||
|
||||
@ -9,8 +10,7 @@ Add code to open the mouth when light is detected.
|
||||
|
||||
## Duration: ~30 minutes
|
||||
|
||||
We are going to add code to open the mouth proportionally to the amount of light on the @boardname@.
|
||||
In a loop, we will read the light and map it to an angle using the ``pins.map`` function.
|
||||
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.
|
||||
|
||||
```blocks
|
||||
basic.forever(() => {
|
||||
|
@ -2,15 +2,13 @@
|
||||
|
||||
## ~avatar avatar
|
||||
|
||||
Remote control your monster with another @boardname@
|
||||
Remote control your monster with another @boardname@.
|
||||
|
||||
## ~
|
||||
|
||||
## Duration: ~30 minutes
|
||||
|
||||
You will need 2 @boardname@ for this part. By using the radio, we can make the inchworm controlled by another @boardname@.
|
||||
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.
|
||||
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.
|
||||
|
||||
```blocks
|
||||
radio.onDataPacketReceived(({receivedNumber}) => {
|
||||
|
@ -1,25 +1,27 @@
|
||||
# Make
|
||||
|
||||
## @description Building the light monster
|
||||
|
||||
## ~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
|
||||
|
||||
## Materials
|
||||
* 3 Coffee cup holders
|
||||
* 2 Coffee cup strirer wood sticks
|
||||
* Scissors
|
||||
* glue gun or tape
|
||||
* 1 paper clip
|
||||
|
||||
## Step 1: cardboard
|
||||
* 3 coffee cup holders (hot cup sleeves)
|
||||
* 2 ood coffee strirer sticks
|
||||
* scissors
|
||||
* glue gun or tape
|
||||
* 1 paper clip
|
||||
|
||||
## Step 1: Glue the cup holders and sticks together
|
||||
|
||||
TODO
|
||||
|
||||
## ~button /projects/coffee-cup-monster/code
|
||||
## ~button /projects/light-monster/code
|
||||
NEXT: Code
|
||||
## ~
|
Loading…
Reference in New Issue
Block a user