JetBot AI 烧写镜像学习笔记一 电脑版发表于:2024/4/28 15:23 ![](https://img.tnblog.net/arcimg/hb/6aa6b76fbfa24f63bba611654ca6f61b.png) >#JetBot AI 烧写镜像学习笔记一 [TOC] 购买JetBot ------------ ```bash 【淘宝】https://m.tb.cn/h.g0v9FnntUA6422l?tk=UfJuWIAKI2n HU9196 「英伟达JETSON NANO B01微雪替代版 存储/接口升级开发板4GB核心板」 点击链接直接打开 或者 淘宝搜索直接打开 ``` ![](https://img.tnblog.net/arcimg/hb/d69e3dc4d6c34490b4f0c2797d29cb22.png) 组装JetBot ------------ tn2>按照如下教程组装成小车 <a href="https://www.waveshare.net/wiki/JetBot_AI_Kit_%E6%95%99%E7%A8%8B%E4%B8%80%E3%80%81%E7%BB%84%E8%A3%85%E5%B0%8F%E8%BD%A6">组装链接</a> ![](https://img.tnblog.net/arcimg/hb/614098bfea6d4940bdd29a7c151406a1.png) 烧写镜像 ------------ ### 下载镜像 tn2>下载镜像百度网盘密码:0755 下载:https://pan.baidu.com/s/1q0VE9vwGTpqBy6VWkFIBUQ ![](https://img.tnblog.net/arcimg/hb/89709bbf889b4acb9840fcca8c360a44.png) ![](https://img.tnblog.net/arcimg/hb/a7c66d379e954346bd569f3b25a159fd.png) ### 下载烧录工具 tn2>点击:https://etcher.balena.io/#download-etcher 进行下载并安装打开 ![](https://img.tnblog.net/arcimg/hb/7d0b4358d2ff44f2952a40da3c37f9ca.png) tn2>点击下载第二个:https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip 安装完成后可看到如下界面 ![](https://img.tnblog.net/arcimg/hb/6e10ec1ceaa74ca4b584a015d8ad46de.png) ### 格式化SD卡 tn2>用usb读卡器把sd卡插入电脑 // 注意要用高速sd卡(如闪迪tf卡Extreme),否则烧写很慢 打开SD Card Formatter -> Select card 选SD卡 //注意:千万别选错了,把别的盘格式了 -> 选Quick format -> 让Volume label空白 -> 点Format ![](https://img.tnblog.net/arcimg/hb/c5ff1f1233a844dfa5aaaa4b9929c4b3.png) tn2>选好U盘进行格式化 ![](https://img.tnblog.net/arcimg/hb/666a833ccd6e4931b181bc68b0c91231.png) tn2>格式化完成 ![](https://img.tnblog.net/arcimg/hb/ba7b71963c764a8db38e499976ad743b.png) tn2>然后使用balenaEtcher进行烧写镜像 ![](https://img.tnblog.net/arcimg/hb/8f6dfb1218cd408d9abb1deb65e1653c.png) ![](https://img.tnblog.net/arcimg/hb/1485cd24135d4ee4a3596542c5a55c04.png) ![](https://img.tnblog.net/arcimg/hb/e2c57d3e17b14ab69f59660164acedb7.png) ![](https://img.tnblog.net/arcimg/hb/b51e6fea00134e78abf5ff553a6230f9.png) ![](https://img.tnblog.net/arcimg/hb/c3dd80c626044d7d9278a9b0a4ec52d3.png) ![](https://img.tnblog.net/arcimg/hb/e4a3b4ed64714fd7855893040859f3eb.png) tn2>烧录了很多次都不行,发现是卡不行。 推荐大家买闪迪的牌子。 ![](https://img.tnblog.net/arcimg/hb/7d3dba74e4c24baf8542c5478127f71b.png) 运行测试 ------------ tn2>烧录完成后插上内存卡到JetBot然后启动。 ![](https://img.tnblog.net/arcimg/hb/165ce687915b4e08995664fa7e6876d7.png) ![](https://img.tnblog.net/arcimg/hb/20556aeda77f40d989a38b104350254d.png) tn2>这里的初始账号和密码都是:jetbot ![](https://img.tnblog.net/arcimg/hb/7e0d2412924b48d1bf69b31c82d82152.png) tn2>执行如下命令,启动图像界面。 ```bash startx ``` ![](https://img.tnblog.net/arcimg/hb/ef698d0949e94e8a9ae605188ec59e63.png) tn2>先连上wifi ![](https://img.tnblog.net/arcimg/hb/0a1f77208b48476ea2c74075650d061b.png) ### 测试摄像头 tn2>默认video是排线摄像头,video1是usb摄像头。 ```bash ls /dev/video0 ``` tn2>看到显示视频,表示启动csi排线摄像头成功。 ```bash nvgstcapture-1.0 --cus-prev-res=1280x720 ``` ![](https://img.tnblog.net/arcimg/hb/e5a5cc9d29864798bd7c1b07737c4298.png) JupyterLab测试 ------------ tn2>通过`ifconfig`查看局域网的ip。 通过访问IP来进行访问Jupyter ```bash http://{your IP}:8888 ``` ![](https://img.tnblog.net/arcimg/hb/d676a5118068491d83f59a26914c5f3a.png) tn2>密码是:jetbot 打开后,接着访问路径`/jetbot/notebooks/basic_motion.ipynb` ![](https://img.tnblog.net/arcimg/hb/105104e6953e46d9bde0ee5869ff8e4c.png) tn2>执行初始化Jetbot代码 ```python from jetbot import Robot robot = Robot() ``` tn2>然后执行旋转操作。 ```python robot.left(speed=0.3) ``` ```python robot.stop() ``` ![](https://img.tnblog.net/arcimg/hb/4e3e24eea4934c4588c2d6f342198f22.gif) tn2>当然还有一些时间上控制这里就不演示了。