zt07elecfreaks 发表于 2018-1-10 18:08:34

How To Make A Six-feet Micro:bit Insect

Introduction

This time we have made a six-feet robotic insect with micro:bit. We use three servos to adjust the center weight of the robot and make it slowly crawl like an insect.






Tools & Materials:

2 x Micro:bit Board

3 x 360°Plastic Micro Servo for Robot Robotic Arm

1 x ELECFREAKS Ring:bit

Acrylic Board

Glue Gun

Iron Wire

How To Make:

Step 1: Adhere the three servos onto the acrylic board.

https://www.elecfreaks.com/wp-content/uploads/2018/01/010418_1127_HowToMakeAS1.jpg
https://www.elecfreaks.com/wp-content/uploads/2018/01/010418_1127_HowToMakeAS2.jpg
https://www.elecfreaks.com/wp-content/uploads/2018/01/010418_1127_HowToMakeAS3.jpg
Step 2: Connect the servos according to schematic diagram. (The servo in the center is connected to P0, the rest two are connected to P1 and P2 separately.)

https://www.elecfreaks.com/wp-content/uploads/2018/01/010418_1127_HowToMakeAS4.jpg
Programming

Click to open Microsoft Makecode, write your code in the editor area.

Click Edit in the upper right corner to edit your program and then click Download below to download your code into micro:bit.




Code Explain

First of all, adjust your servo to the angle of 90 degrees and display an image on the micro:bit board.

https://www.elecfreaks.com/wp-content/uploads/2018/01/010418_1127_HowToMakeAS5.png
The six-foot robot marches forward by adjusting its central weight. So we must rotate the center servo to the angle of 75 degrees and make the robot center turn right. Because the servo rotation takes some time, here we delay time for 200ms.

https://www.elecfreaks.com/wp-content/uploads/2018/01/010418_1127_HowToMakeAS6.png
At this moment, the weight center turns right and its two feet both in front and back can touch the ground now. Next, try to make the two servo in the head and tail rotate to the angle of 100 degrees like human walk with a right foot stretched in the front.

https://www.elecfreaks.com/wp-content/uploads/2018/01/010418_1127_HowToMakeAS7.png
Next step is to make the central servo rotate to the angle of 105 degree and the weight center stay in the left.

https://www.elecfreaks.com/wp-content/uploads/2018/01/010418_1127_HowToMakeAS8.png
Now the weight center is in the left and the left two feet in the head and tail can touch the ground. Then rotate the two servos in the head and tail to the angle of 70 degrees like a human walk with left foot stretched in the front.

https://www.elecfreaks.com/wp-content/uploads/2018/01/010418_1127_HowToMakeAS9.png
Circulate these movements, then the robot insect will come into life!

https://www.elecfreaks.com/wp-content/uploads/2018/01/010418_1127_HowToMakeAS10.png
Success

Now you've made your own micro:bit robot insect successfully. Try to show it around your friends! I am sure they will like it very much.
页: [1]
查看完整版本: How To Make A Six-feet Micro:bit Insect