Micro:bit | Ver de pouce

Aperçu

Inchworms are so simple in their movement which makes it a fun challenge to build and animate their movement. The inchworm shifts its weight during its "pinching/folding" to push the front and pull the back.

Compétences + Objectifs

Construction

Construisez le projet en suivant les instructions de montage

Charpenterie

Principes et quincaillerie de menuiserie de base

Animation

Apprenez à animer un seul cycle de mouvement pour créer un mouvement continu.

Âge 10+

Temps 45 minutes

Matériaux

  • UN 1 tournevis
  • B 1 x Clé 8mm ou 5/16"
  • C 1 x chaussette servo avec servo positionnable
  • D 5 x bâtons
  • E 1 x câble d'extension servo
  • F 12 vis #6 x 1/2"
  • g 2 vis mécaniques 6-32 3/4"
  • H 2 rondelles
  • je 2 contre-écrous 6-32
  • J 1 x bande élastique (de Servo Sock)
  • K Bloc de pin de 2 po x 1,5 po x 0,75 po

Étapes de construction

Étape 1

Enroulez une bande élastique [A] autour du bloc de bois [b]

Fixez ensuite les bâtons [C] aux deux côtés du bloc de bois à 15 mm de l'extrémité du bloc à l'aide de 2 vis #6 x 1/2".

Étape 2

Fixez 2 bâtons [A] aux disques Servo Sock [C] à l'aide de 2 vis #6 x 1/2"

Étape 3

joignez l'extrémité avant [A] à l'extrémité arrière [B] à l'aide des vis à métaux 6-32 x 3/4", des rondelles et des contre-écrous 6-32 [C et D]. Les contre-écrous seront plus difficiles à tourner. Utilisez le un tournevis avec l'embout Robertson #1 (carré) une clé de 8. Serrez les écrous uniquement jusqu'à ce que le joint bouge encore librement.

Étape 4

Fixez un bâton [A] au bas de la chaussette servo à l'aide de 2 vis #6 1/2" La partie arrière doit dépasser d'environ 20 mm

Étape 5

Ajoutez 2 vis #6 x 1/2" [A] au bas du manche à l'avant [B]. Laissez les vis vers le bas afin qu'elles ne dépassent pas le haut du manche.

Étape 6

Connect the control board to a USB power source and connect the servo to the 13 connection on the board

Étape 7

Remarque - Vous devrez peut-être ajuster la position du servo klaxon sur le servo à l'intérieur de la chaussette servo pour se déplacer (balayage) dans la plage requise

If using the animate breakout code, Move the inchworm using the first knob. To create an animation loop, click the record "A" button, move the inch for one cycle (in/out) then click record again. To playback the animation click the play "B" button

Le code

The Code below shows how to move the inch worm in a cycle. You may need to adjust the 2 servo positions to different numbers to get the ideal movement.

https://makecode.microbit.org/S42308-02238-15804-13710

Répartition des codes

  1. On Start, we do a small move to test that it moves.
  2. In the Forever loop, we move between 2 positions with a 1-second delay (1000ms)
  3. Try changing the pause and servo positions to see how it changes the worm’s movement