树莓派驱动的乒乓球追踪器
Will Jessop是一名系统管理员,就职于37signals,他在曼彻斯特运营North West Ruby User Group。我最近遇到他,发现他正在用 Raspberry Pi 做一个个人项目。该项目旨在解决 37signals 芝加哥办公室里乒乓球满地的问题。解决方案是一个支持网络的机器人,带有摄像头,可以让人们把球收集到篮子里。
机器人的最初版本使用了Custard Pi扩展板,然后我让他看看MotorPiTX电机控制器,由Jason Barnett开发。他订购了一个,并加入了Manchester Hackspace,开始动手制作或采购机器人所需的所有部件。
发现新的电机板在原底盘上更加整洁后,Will 着手设计并 3D 打印了电机支架、履带支架、新底座、球筐,然后加装了带鱼眼镜头的 Pi camera。
有了这款小巧的摄像头机器人,Will 开始考虑用电池供电,让它可以自由移动。根据功率需求测试,在电机运行和通过无线传输视频时的使用情况,Will 选择了一块 5000mAh 7.4V 的锂电池。他还在底盘上加装了一个升降臂,独立于机器人本身控制。
Pi 上的所有软件都是用前往,Will 认为这是一种非常适合 Raspberry Pi 的语言,因为它能生成小巧、高效、静态编译的二进制文件,轻松满足 Pi 的资源限制。这与 Will 的游戏手柄库(用 C 编写,以 Ruby gem 形式提供)一起在一台笔记本电脑上运行。Will 还写了一个电源控制脚本,以便通过 MotorPiTX 实现 Pi 的干净关机。
随着机器人在新电池上自由漫游,通过 Xbox 手柄控制,摄像头画面通过 WiFi 实时传输,升降臂功能正常,它已准备好在第 16 届曼彻斯特树莓派聚会(Manchester Raspberry Jam)做准备。上展示!在 Jam 期间参观 Manchester Hackspace 时,Eben、Liz 和 Pete 亲眼目睹了它的运作。Eben 拿起手柄,通过观看笔记本电脑上的视频流,操控机器人四处移动并捡起乒乓球。
随后 Will 将机器人带到 Miami,在RubyConf上展示,许多 Ruby 爱好者都有机会体验了一番。
机器人捡乒乓球:
机器人视角:
查看系列文章发布在 Will 的博客上。感谢Manchester Hackspace和Jason Barnett协助促成这个项目。机器人尚未安装在 37signals 办公室,但一旦可以远程访问,我们一定会发布链接,让大家都能上手试试!
Will 还为 Pimoroni 的Piglow: github.com/wjessop/go-piglow编写了 Go 库。去看看吧,玩一玩,告诉我们你的想法!










19条评论
Jonathan
This is really cool. I really should start hacking my roomba before it collects more dust. **Shudders**
Douglas6
Isn't that what it's supposed to do?
Will Jessop
I'll be happy to answer any questions people have here, or on twitter (@will_j).
树莓派达人
Woah… Cool project!
What chassis is that? Looks like a Zumo from Pimoroni? Am I correct?
树莓派达人
Will Jessop
It's oneI 3D printed myself.
Will Jessop
The *tracks* are the Pololu ones, available from Pimoroni.
树莓派达人
Ah, yes!
It looked a tad similar!
树莓派达人
Ben Shamsian
Would you post a complete how to in one post in order to make this one?
Will Jessop
I've got a few more months work on the robot before it's "finished". I'll post more on how it's made at that point.
I might post bits and pieces on my blog in the meantime.
AndrewS
Is that a common office problem?
Will Jessop
It is in the room with the ping-pong table in it!
TheRafMan
Pretty cool. I was thinking that adding some kind of a vacuum pick up system might give you more success since the ping pong balls are very light.
Will Jessop
A vacuum pick-up is planned, I need to move away from the easily destructible arm system somehow.
stick
I particularly like the two at a time trick. Maybe it's time to resurrect Robot Wars…
liz
My own take on it is that it'd make a FANTASTIC remote-control war version of Hungry Hungry Hippos.
HKwhyIP
It would be great if it can use the image processing power of RPi to recognize the balls and pick up the ball by itself!
Will Jessop
I've considered OpenCV, but I think part of the charm of this project is that other people can drive a tiny robot round our office :)
AndrewS
I guess you'd need to add some kind of "basket is full" indicator, otherwise you'd just end up scattering the 'overflow' balls everywhere :-)
Will Jessop
我觉得这个会和真空球升降器配套使用。不过它肯定是必需的。
评论已关闭