树莓派 Step by Step之调试上手

烧录固件

 

修改启动配置

将系统镜像写入SD卡后,进入boot盘,编辑config.txt文件,在文件最后添加“enable_uart=1”,然后保存,将SD卡插入树莓派。

 

https://www.jianshu.com/p/bed7c2a5f3d1

 

连接串口

http://shumeipai.nxez.com/raspberry-pi-pins-version-40

rpi-pins-40-0

 

 

波特率115200 8N1;

用户名:pi,密码:raspberry

 

 

电压低

Under-voltage detected! (0x00050005)

其实就是warning,官方要求5v 2A 比较稳定的电源,负载比较大的时候,可能对 鼠标、键盘、显示屏照成影响;

http://bbs.elecfans.com/jishu_450017_1_1.html

 

 

https://lfoder.github.io/2018/05/12/%E6%A0%91%E8%8E%93%E6%B4%BE%E7%B3%BB%E7%BB%9F%E7%9A%84%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/

默认配置

https://lfoder.github.io/2018/05/12/%E6%A0%91%E8%8E%93%E6%B4%BE%E7%B3%BB%E7%BB%9F%E7%9A%84%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/

 

配置树莓派基本命令

sudo raspi-config

 

恢复英文(我的默认成了西班牙文之类的)

https://blog.csdn.net/wto882dim/article/details/102757048

 

 

 修改wifi 配置

vim /etc/wpa_supplicant/wpa_supplicant.conf
network={
    ssid="HomeOneSSID"
    psk="passwordOne"
    priority=1
    id_str="homeOne"
}

network={
    ssid="HomeTwoSSID"
    psk="passwordTwo"
    priority=2
    id_str="homeTwo"
}

https://www.cnblogs.com/shubin/p/7746399.html

 

更换软件源

默认的软件源速度比较慢,官网有一个镜像列表 http://www.raspbian.org/RaspbianMirrors
这里推荐中科大的 https://lug.ustc.edu.cn/wiki/mirrors/help/raspbian 感觉他们的主页做的不错,像有在用心维护的感觉。

方法如下。

编辑/etc/apt/sources.list文件。删除原文件所有内容,用以下内容取代

deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ jessie main non-free contrib
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ jessie main non-free contrib

然后运行 sudo apt-get update

 

https://testerhome.com/topics/6183

 

远程桌面

https://blog.csdn.net/qq_35682844/article/details/78600138

静态IP

https://www.jianshu.com/p/308fb22a7dab

 

 

其它树莓派入门教程

https://blog.csdn.net/weixin_43073852/article/details/82746022

  • 树莓派环境搭建
  • 树莓派GPIO端口控制
  • 树莓派USB摄像头的配置使用
  • 树莓派小车
  • 树莓派远程视频小车
  • 树莓派与arduino通信
  • 树莓派控制arduino小车
  • 树莓派结合arduino远程视频小车

 

https://www.jianshu.com/p/b8dbb4b43f81

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值