我们使用一些必要的Cookie来确保网站正常运行。

我们使用可选的 Cookie,具体详情请参阅我们的Cookie政策,用于记住您的设置并了解您如何使用我们的网站。

Raspberry Pi Pico W 教会这辆车避障

打造一辆避障机器人汽车,听起来可能是你能尝试的较棘手的 Raspberry Pi 项目之一,因为需要用到各种电机、驱动器和传感器。但Karam Haddad让它在自己的七分钟视频里看起来小菜一碟制作视频.

它是如何运作的?

机器人汽车的大脑是一个树莓派 Pico W,选择它是因为它足够小,可以整齐地藏在底盘内,但又具备处理导航所需控制逻辑的必要处理能力。安装在伺服电机上的超声波传感器使汽车能够通过向各个方向测量距离来感知环境。“那堵墙在七米外,所以我应该在大约再行驶 6.9 米时停止朝它开过去,”这就是汽车会对自己说的话。机器人被训练为在路径畅通时始终优先前进,只有在检测到物体时才评估其他路径。

The image displays a graphical presentation of the main parts used in a DIY robotic vehicle. It is divided into sections, each highlighting a different component with an image and a label: MEGO Power Supply: Shown at the top left, this is a portable power supply unit with various input and output options. L298N Motor Driver: Located next to the power supply, this is a red circuit board used for controlling the motors of the robot. 2 DC Motors: Illustrated on the top right, these are yellow-cased motors that power the movement of the robot. Servo Motor: Below the power supply, there’s a blue servo motor, typically used for precise control of angular or linear position. Ultrasonic Sensor: Next to the servo motor, this sensor (blue with two circular elements) is used for distance measuring. Pico W: At the bottom right, this small green circuit board is a microcontroller unit with wireless capabilities. Tires: Accompanying the DC motors, shown at the very right, are wheels with yellow hubs and black tires, which facilitate the robot's mobility. The layout is clear and educational, providing a quick overview of the essential components involved in building a basic robotic vehicle.
所有图片均截屏自Karam 的搭建视频

一台可调 DC 电源为机器人供电。电机驱动器调节连接到汽车每个车轮的 DC 电机的方向和速度。

The image shows a close-up of a DIY robotic vehicle on a carpeted floor. A hand is reaching towards the robot, possibly for adjustment or demonstration. The robot features a variety of components: Chassis: The base of the robot has large yellow wheels, providing stability and mobility. MEGO Power Supply: Mounted on the robot, this white box supplies power and displays a digital readout (not visible in this view). Ultrasonic Sensor: Mounted on a bracket at the front of the robot, this sensor has two cylindrical elements for distance measurement. Electronic Components: There are several boards and a mass of wires visible, indicating a complex setup likely involving a microcontroller and motor drivers. Servo Motor: Visible as part of the steering or operational mechanism. This setup seems to be part of a robotics project or hobbyist activity, demonstrating the integration of mechanical and electronic engineering components. The context suggests testing or development, typically seen in educational or DIY technology environments.

汽车的物理底盘,包括用于电机和传感器的定制支架,是 3D 打印并用热熔胶粘合在一起的。

The image shows a close-up view of someone working on a DIY robotic vehicle at a desk. In their hand, they hold an ultrasonic sensor module, which consists of two round sensors on a blue circuit board. The workspace features several components: Robot Chassis: The base of the robot includes wheels and various mounted electronic parts. Ultrasonic Sensor: Currently being held, this sensor is used for distance measurement. Power Supply: To the left, a portable power supply labeled "MEGO" displays a voltage reading of 7.41 volts. Microcontroller Board: A green circuit board, possibly a Raspberry Pi or similar, with other connected electronic components and wires. Servo Motor: Visible as part of the robot's hardware, potentially used for steering or other movements. In the background, the desk is equipped with a mechanical keyboard and a modern computer mouse, suggesting this setting is a well-used personal or work area for technological projects.
把所有东西接好线

小状况与升级

测试期间出现电压下降,导致电机电力不足,Karam 不得不做了一番折腾来处理,但之后机器人就准备好在临时搭建的障碍赛道周围进行路测了。这位制作者想探索集成智能手机连接功能的可能性,这样你就能手动控制机器人。

The image features a DIY robotic vehicle on a carpeted floor, facing a pair of worn cowboy boots. The robot has wheels, wires, and a couple of electronic modules, including one with a digital display showing "609". Above the scene, a strip of LED lights is mounted along the baseboard, illuminating the area with a soft glow. The setting appears to be a home environment, suggested by the domestic-looking carpet and wall base. The juxtaposition of the traditional cowboy boots with the modern, homemade robot creates an interesting contrast between rustic and technological elements.
评估场景

前往和 GitHub 上提供了完整的搭建说明,包括所有必要的代码和外设。获取所有代码,并给 Karam 的制作视频在 YouTube 上点个赞。

3条评论

Karam Haddad avatar

感谢推荐!
我一直用 Raspberry Pi 做项目,并会把所有内容记录在 YouTube 频道上。
另外,我很快会给这辆车添加一些 WiFi 功能,以充分利用 Pico W!

Ashley Whittaker avatar

Karam!是 yoooou!

Bsimmo avatar

看看用于 Raspberry Pi 的 BlueDot(它其实就在 org 网站的机器人汽车教程里)。
) 它是给完整版 Pi 的,但你可以用它来获取灵感,或者也许从 Android App 入手,以某种方式配合 PicoW 使用。

评论已关闭