A few edits to the 'inchworm' project (#588)

This commit is contained in:
Galen Nickel 2017-12-05 15:55:29 -08:00 committed by Peli de Halleux
parent efda8290cf
commit a52fbac8c2
4 changed files with 22 additions and 26 deletions

View File

@ -1,7 +1,7 @@
# Inchworm # Inchworm
## @description A inchworm like robot built with the @boardname@ ## @description A inchworm-like robot built with the @boardname@
## ~avatar avatar ## ~avatar avatar
@ -29,7 +29,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

@ -11,8 +11,7 @@ Add code to make the inchworm move.
## Step 1: walk forever ## 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 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.
at a certain pace. In the code below, the user pressed button ``A`` to launch the inchworm.
```blocks ```blocks
input.onButtonPressed(Button.A, () => { input.onButtonPressed(Button.A, () => {
@ -25,8 +24,7 @@ input.onButtonPressed(Button.A, () => {
## ~ hint ## ~ 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 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.
so that the inchworm goes as fast as possible. Trying it on carpet also great helps avoiding skidding.
## ~ ## ~

View File

@ -8,8 +8,7 @@ Remote control your inchworm 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 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.
Download the code below to the @boardname@ on the inchworm and another "controller" @boardname@. Whenere A is pressed, the inchworm will move once.
```blocks ```blocks
radio.onDataPacketReceived(({receivedNumber}) => { radio.onDataPacketReceived(({receivedNumber}) => {

View File

@ -15,45 +15,45 @@ Turn a piece of cardboard into an inchworm!
* glue gun or tape * glue gun or tape
* 1 paper clip * 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. Cutout a cardboard rectangle. You can use the @boardname@ as a ruler to figure out the size.
![](/static/mb/projects/inchworm/chassis1.jpg) ![](/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) ![](/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) ![](/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) ![](/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) ![](/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) ![](/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) ![](/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) ![](/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. Unfold a paper clip and attach it to the servo arm.
![](/static/mb/projects/inchworm/clip2.jpg) ![](/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. 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) ![](/static/mb/projects/inchworm/clip3.jpg)
## Step 11: It's ready!
## Step 11: it's ready!
Your inchworm is ready! Your inchworm is ready!