Some edits to the 'light monster' project
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
 | 
			
		||||
# Light Monster
 | 
			
		||||
 | 
			
		||||
## @description A monster made of cardboard that responds to light
 | 
			
		||||
## @description A monster made of coffee cups that responds to light
 | 
			
		||||
 | 
			
		||||
## ~avatar avatar
 | 
			
		||||
 | 
			
		||||
@@ -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(() => {
 | 
			
		||||
 
 | 
			
		||||
@@ -8,9 +8,7 @@ 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.
 | 
			
		||||
In order for the light monster to move, the @boardname@ needs to command the servo to move between ``0`` and ``180`` degrees at a certain pace. The code below starts the inchworm moving when the **A** button is pressed.
 | 
			
		||||
 | 
			
		||||
```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 cups 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
 | 
			
		||||
* 2 ood coffee strirer sticks
 | 
			
		||||
* scissors
 | 
			
		||||
* glue gun or tape
 | 
			
		||||
* 1 paper clip
 | 
			
		||||
 | 
			
		||||
## Step 1: Glue the cups and sticks together
 | 
			
		||||
 | 
			
		||||
TODO
 | 
			
		||||
 | 
			
		||||
## ~button /projects/coffee-cup-monster/code
 | 
			
		||||
## ~button /projects/light-monster/code
 | 
			
		||||
NEXT: Code
 | 
			
		||||
## ~
 | 
			
		||||
		Reference in New Issue
	
	Block a user