R2-D2 VEX机器人
你好!祝你#MakerMonday快乐。本周,我们要分享的是新一期中我们最喜爱的制作项目之一Raspberry Pi Official Magazine。一个标志性电影角色的empty shell构成了一个出色的基于Raspberry Pi和VEX的robot build基础。
少年时期沉浸在各种科幻电影和电视剧中,例如Forbidden Planet, Silent Running, 星球大战, 星际迷航以及《迷失太空》,嵌入式软件工程师Daniel Ramirez对机器人的持久兴趣以及他首次涉足electronics领域正是源于此。当他在当地的大卖场偶然发现一个R2-D2 shell时,Daniel看到了将自己的技术专长与sci-fi dreams结合的机会。起初,这款R2-D2 toy静静地放在他的房间里,“像匹诺曹望着皮诺丘一样期盼地看着我,想知道自己何时能start moving around on its own”。感到“a little bit guilty”的他开始寻找合适的parts来animate R2-D2。最终,他选择了一块Raspberry Pi和一些VEX Robotics construction kit components,让这个“trash-can-sized”的星球大战robot back into use.

Beep, beep, beep!
小时候,Daniel和他哥哥拥有一台Heathkit ET-18 HERO 1 robot,那是他们父亲买来帮他们learn electronics和get through college的。当时,Daniel在maths和science方面很吃力,但这个four-week project组装和testing从kit获得的机器人却带来了丰厚的回报:他后来在Massachusetts的advanced technology companies就职,并publishing articles about his various robotics and electronics projects。
Dan findsVEX construction setsideal for new robot and animatronics projects, and for rapidly prototyping new inventions. He recommends theVEX user forumfor inspiration and ideas. Parts are inexpensive and stronger, “with more rigid metal structural parts” than similar construction sets, and are often used in robot building contests in the US. He wanted to learn more about building an autonomous or tele-operated robot and chose Raspberry Pi because he could use it with software development tools like Python3, C, C++, Ada, and FreeBASIC.

Reimagined classic
Daniel热衷于customise这款toy robot,惊喜地发现它原本就有一个rotating geared head和一个empty battery compartment,但并未安装wheels、motors、drivers或controllers。To operate it as a robot that moved on its own and could sense its surroundings,他需要rebuild the toy from scratch,翻出他的VEX Inventor kits存货取parts。Dan began by writing code in C and developing “a simple serial interface between树莓派 2and the VEX EDR microcontroller, since it could drive the servo motors and read the sensors as plug and play”. Raspberry Pi proved a good choice, as it would be simple to connect up all the components that needed to fit inside. However, he needed to remove the robot toy’s base — not easy given just how robust the plastic case is. Removing the battery compartment gave Dan access to the inside, where he discovered a small hole for gearing, presumably to make the head turn. VEX motors and an axle joining the legs enable the robot to walk.
Using the VEX construction system allowed Dan to get the electromechanical aspects going “pretty fast”, but the firmware for the Raspberry Pi and the robot controller software required many iterations. In fact, his R2-D2 VEX robot began as a Raspberry Pi 2–based project that Daniel subsequently upgraded to树莓派 3.

The project cost approximately $300. Daniel observes that used parts can be found on eBay fairly inexpensively, as schools have upgraded to VEX Cortex and VEX V5 systems. “The R2-D2 shell was $50, but enterprising hobbyists with 3D printers could manufacture their own.” He advises a slightly larger shell than the one he used: fitting the VEX parts into its 1ft 6in, 8in-diameter case was “a bit tight”. Smaller motors that fit inside the hollow legs could make for an elegant alternative.
“我对Raspberry Pi 3的赞赏之情简直无法用言语表达,”丹尼尔赞叹道,“它运行稳定且耗电量很低,因此我可以连续数小时让机器人运转。它的软件开发工具非常棒!”不过,“让两个主控制器之间建立通信确实费了一番功夫”。
这里有大量详尽的资料,它们收录在VEX Library中。你还可以在下方观看一段YouTube视频,看看丹尼尔基于VEX打造的R2-D2机器人的实际运行表现。
新奇妙的玩法
原始机器人目前仍在正常运行。退休后,丹尼尔将其升级至Raspberry Pi 3,并且目前正在开发一款新型号,该型号配备6DOF (degrees of freedom) 机械臂、腕部与夹爪,能够下国际象棋。他还近期为他的VEX机器人增添了温度与压力传感器、物体检测功能以实现自主移动,并增加了通过笔记本电脑或远程操控的选项,取代了传统的物理遥控器。
对于热衷于自己动手制作机器人和动画装置项目的人来说,丹尼尔的建议是先从LEGO、VEX或Meccano Erector等拼装套件入手,以便熟悉其即插即用的电机、传感器、控制器、齿轮和结构件。“学会将它们适配到[your]机器人上,混搭不同的构建系统,或者利用废旧金属和剩余零件。”
暂无评论
评论已关闭