How To Make A Six-feet Micro:bit Insect

标签:DIY

LUCY 发布于 2018-01-19 16:45

fp.jpg

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.

 

 

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

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




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.)


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.


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


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.


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.


Next step is to make the central servo rotate to the angle of 105 degree and the weight center stay in the left.


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.


Circulate these movements, then the robot insect will come into life!


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.


https://www.elecfreaks.com/12147.html


在淘宝中搜索“恩孚电子”,你可以以最优惠的价格购买到英国原装正版micro:bit哦!

如果想联系我们,请发邮件至:louise@elecfreaks.com

 

作者

LUCY

广东,深圳

6粉丝 62作品 15随笔
  关注 私信

作者的最新作品


阅读数: 4038