惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
B
Blog
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Help Net Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
IT之家
IT之家
D
Docker
Google DeepMind News
Google DeepMind News
罗磊的独立博客
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
博客园 - 叶小钗
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
博客园 - 司徒正美
Engineering at Meta
Engineering at Meta

程序员笔记(huoyijie.cn)

generate new dataset with llm and knowledge graph resume deepseek applications Implement the classic huarongdao game with react Implement the classic tetris game with react Writing admin dashboard template with Nextjs How to AuthN user with OpenLDAP share whiteboard with websocket ocr overview tech notes subscribe topic with sse multi devices github an algorithm used for image text detect an algorithm used for image text detect facial expression recognition technology based on neural network oauth2 mysql store a real time collaborative whiteboard with infinite space How to perform load testing with Grafana k6 fix split of undefined with gitbook theme nodejs http proxy middleware analyze referer of express website writing a CDN origin server with Django a personal lightweight CMS tool writing in Golang profile introduce the post processing introduce the text detect method blockchain for dummies medical applications on ai facial expression recognition study facial expression recognition auth
从零开始制作树莓派小车 · GitBook
huoyijie · 2024-05-24 · via 程序员笔记(huoyijie.cn)

从零开始制作树莓派小车

制作一个遥控小车是 2020 下半年时产生的一个想法,当时偶然接触到树莓派,感觉瞬间进入一个新世界。看着各种各样基于树莓派创建的有趣的项目层出不穷,手有点痒痒。我虽然学的是计算机专业,但对硬件、芯片等不太在行,决定还是从相对简单的遥控车项目上手。

以前买过遥控小车玩具,可能比较便宜的原因?可玩性都很差,也没有 DIY 的乐趣,孩子玩几下也就扔一边了。所以就想带着小孩从头开始制作一个遥控小车,让他全程参与这个过程,对他来说,过程远比最后的结果重要。

car

虽然用树莓派4B来控制小车实在是有些大材小用,但是“用牛刀杀鸡”确实简单明了。树莓派 4B 本身性能强劲,基于 Linux 系统生态,再搭配 Python 语言丰富的社区软件库,使得编程任务非常简单,适合有创意的小伙伴儿基于它开发各种好玩的东西。

选定了遥控小车项目后,开始查阅相关资料,利用业余时间组装调试小车,前后差不多用了几个星期时间,小车终于可以通过电脑控制跑起来了,通过输入方向键控制小车前进、后退、左右转弯。键盘控制不太方便,想着等再有时间,要把蓝牙通信加上,这样可以用手机蓝牙遥控小车。时间一晃就来到了 2021 年,再次拿出吃灰已久的小车(还好还可以跑),把手机遥控加上了。

car

上面是调试小车时拍的照片,线路没有焊接,组件是胶布粘的,看起来一碰就散,跑起来还挺稳的。下面是我们录制的视频。