Merge branch 'master' of https://github.com/Microsoft/pxt-microbit
This commit is contained in:
commit
d7eda8a9e5
@ -1,7 +1,7 @@
|
||||
|
||||
# Inchworm
|
||||
|
||||
## @description A inchworm like robot built with the @boardname@
|
||||
## @description A inchworm-like robot built with the @boardname@
|
||||
|
||||
## ~avatar avatar
|
||||
|
||||
@ -29,7 +29,7 @@ https://youtu.be/BiZLjugXMbM
|
||||
|
||||
## Preparation
|
||||
|
||||
* [Equip the microservo with crocodile clips](/device/servo)
|
||||
* [Setup the microservo with crocodile clips](/device/servo)
|
||||
|
||||
## Activities
|
||||
|
||||
|
@ -11,8 +11,7 @@ Add code to make the inchworm move.
|
||||
|
||||
## Step 1: walk forever
|
||||
|
||||
In order for the inchworm to move, the @boardname@ needs to command the servo to go between ``0`` and ``180`` degrees
|
||||
at a certain pace. In the code below, the user pressed button ``A`` to launch the inchworm.
|
||||
In order for the inchworm 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
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
@ -25,8 +24,7 @@ input.onButtonPressed(Button.A, () => {
|
||||
|
||||
## ~ hint
|
||||
|
||||
You may have noticed that the inchworm can be rather slow or simply won't move. Try to improve the design of your legs, teeth
|
||||
so that the inchworm goes as fast as possible. Trying it on carpet also great helps avoiding skidding.
|
||||
You might notice that the inchworm goes really slow or maybe just won't move at all. Try to improve the design of your legs and teeth until the inchworm can go as fast as possible. Also, trying it on the carpet gives it more grip and helps to avoid skidding.
|
||||
|
||||
## ~
|
||||
|
||||
|
@ -8,8 +8,7 @@ Remote control your inchworm 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 inchworm will move once.
|
||||
You will need one more @boardname@ for this part. By using the radio, we can control the inchworm with another @boardname@. Download the code below to the @boardname@ on the inchworm and then again onto a "controller" @boardname@. Whenever button **A** is pressed, the inchworm moves once.
|
||||
|
||||
```blocks
|
||||
radio.onDataPacketReceived(({receivedNumber}) => {
|
||||
|
@ -15,45 +15,45 @@ Turn a piece of cardboard into an inchworm!
|
||||
* glue gun or tape
|
||||
* 1 paper clip
|
||||
|
||||
## Step 1: cardboard
|
||||
## Step 1: Cardboard
|
||||
|
||||
Cutout a cardboard rectangle. You can use the @boardname@ as a ruler to figure out the size.
|
||||
|
||||
![](/static/mb/projects/inchworm/chassis1.jpg)
|
||||
|
||||
## Step 2: center fold
|
||||
## Step 2: Fold the middle
|
||||
|
||||
Fold the cardboard in half over the short edge.
|
||||
Make a fold in the cardboard right in the middle of the long side.
|
||||
|
||||
![](/static/mb/projects/inchworm/chassis2.jpg)
|
||||
|
||||
## Step 3: legs
|
||||
## Step 3: Body arch
|
||||
|
||||
Fold each end so they rest flat on the ground.
|
||||
Make two smaller folds at the ends which lay flat on the ground. This is the base of the inchworm's body.
|
||||
|
||||
![](/static/mb/projects/inchworm/chassis3.jpg)
|
||||
|
||||
## Step 4: front teeth
|
||||
## Step 4: Front teeth
|
||||
|
||||
Fold each corners on one end of the cardbard. This will be the front of the inchworm which is supposed to grip the ground.
|
||||
Fold in each of corner on one end of the cardboard. This is the front of the inchworm which will grip the ground.
|
||||
|
||||
![](/static/mb/projects/inchworm/chassis4.jpg)
|
||||
|
||||
## Step 5: back teeth
|
||||
## Step 5: Back legs
|
||||
|
||||
Using a scissor or a cutter (watch the fingers!), cut out various strips in the other edge. Fold one after the other.
|
||||
Using scissors or a cutter (watch the fingers!), cut slits in the other end to make finger-like (these will be the actually) shapes. Fold one up, one down, and so on.
|
||||
|
||||
![](/static/mb/projects/inchworm/chassis5.jpg)
|
||||
|
||||
## Step 6: mounting the board
|
||||
## Step 6: Mounting the board
|
||||
|
||||
Using tape or a glue gun, mount the @boardname@ on one side and the microservo on the cardboard.
|
||||
Using tape or a glue gun, mount the @boardname@ on one side.
|
||||
|
||||
![](/static/mb/projects/inchworm/chassis6.jpg)
|
||||
|
||||
## Step 7: mounting the servo
|
||||
## Step 7: Mounting the servo
|
||||
|
||||
Attach the servo on the **edge** of the other cardboard side.
|
||||
Attach the servo (with tape or glue) on the **edge** of the other side of the cardboard.
|
||||
|
||||
![](/static/mb/projects/inchworm/chassis7.jpg)
|
||||
|
||||
@ -63,21 +63,20 @@ Use tape to route the cables nicely on the inchworm.
|
||||
|
||||
![](/static/mb/projects/inchworm/chassis8.jpg)
|
||||
|
||||
## Step 9: attaching paper clip to servo
|
||||
## Step 9: Attaching paper clip to servo
|
||||
|
||||
Unfold a paper clip and attach it to the servo arm.
|
||||
|
||||
![](/static/mb/projects/inchworm/clip2.jpg)
|
||||
|
||||
## Step 10: attaching paper clip to cardboard
|
||||
## Step 10: Attaching paper clip to cardboard
|
||||
|
||||
Slide the folder paper clip into the cardboard, and use tape to secure it.
|
||||
Slide the folded part of the paper clip into the cardboard and use tape to secure it.
|
||||
You might need to toy around with the size of the clip so that the servo rotation opens the inchworm sufficiently.
|
||||
|
||||
![](/static/mb/projects/inchworm/clip3.jpg)
|
||||
|
||||
|
||||
## Step 11: it's ready!
|
||||
## Step 11: It's ready!
|
||||
|
||||
Your inchworm is ready!
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user