Micro:bit | Coeur

Aperçu
Construisez un cœur mécanique qui utilise un capteur de pouls pour faire battre le cœur avec le vôtreMatériaux
- UNBase de coeur
- BEngrenages linéaires
- CEngrenage d'entraînement
- DChaussette servo
- ECapteur de pouls
- FCâble de capteur
- gGuides x3
- HRondelles en bois x 3
- je#6 x Vis 1/2" x14

Étapes de construction
Étape 1
Installer les guides en position A, B et C à l'aide de 2 vis #6 x 1/2"

Étape 2
Installez les engrenages linéaires dans les positions A, B et C à l'aide d'une vis #6 x 1/2". Laissez ces vis desserrées afin que les engrenages puissent glisser facilement.

Étape 3
Installez les rondelles en bois dans les trous du milieu aux positions A, B et C. Laissez les vis un peu desserrées pour que les rondelles puissent tourner facilement.

Étape 4
Install the drive gear A onto the servo sock using 2 #6 x 1/2" screws.
Next, hook the Servo Sock up to position 15 (B).
Download the code example below to your board but, change the "analog read pin P4" temporarily to "analog read pin P0", this will make the servo listen to the knob
Power up the board and turn the first knob (c) clockwise until it stops to turn the gear fully clockwise.
Next, hook the Servo Sock up to position 15 (B).
Download the code example below to your board but, change the "analog read pin P4" temporarily to "analog read pin P0", this will make the servo listen to the knob
Power up the board and turn the first knob (c) clockwise until it stops to turn the gear fully clockwise.

Étape 5
Power off the board then connect the pulse sensor to the connection labeled 4(B). On the sensor end (C) line up the the orange wire to the "S" on the sensor. This is the signal wire.

Étape 6
Installez le cœur assemblé sur la chaussette du servo en vous assurant que les engrenages sont bien enfoncés au centre du cœur.
Allumez et maintenez le capteur avec le symbole du cœur vers votre peau. Tenez-le immobile et le cœur devrait commencer à battre avec le vôtre !
Allumez et maintenez le capteur avec le symbole du cœur vers votre peau. Tenez-le immobile et le cœur devrait commencer à battre avec le vôtre !

Le code
Read the value from the pulse sensor to move the servo.
Répartition des codes
*Note to configure the heart you will need to do the following:
- Change “analog read pin P4″ to analog read pin P0”.
- Download the code to your Micro:bit
- with the heart not installed on the Servo Sock, rotate the first knob “P0” fully clockwise.
- Power off the board and fit the heart onto the Servo Sock gear as it is in Step 6