当前位置:网站首页>基于树莓派的智能箱包开发环境搭建
基于树莓派的智能箱包开发环境搭建
2022-08-02 03:29:00 【GentleTK】
1.换源,更新
1.1编辑软件源文件
# 编辑source.list文件
sudo nano /etc/apt/source.list
替换内容为:
# 清华源
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free
1.2编辑系统更新源文件
# 编辑raspi.list文件
sudo nano /etc/apt/sources.list.d/raspi.list
替换内容为:
# 清华源
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui
2.安装输入法
sudo apt-get install fcitx fcitx-googlepinyin fcitx-module-cloudpinyin fcitx-sunpinyin
安装完毕,重启树莓派
3.安装pybluez
# 克隆项目
git clone https://github.com/karulis/pybluez
# 配置项目
sudo python setup.py build
# 安装plbluez
sudo python setup.py install
4.安装GPS库
# 安装gps相关库
sudo apt-get install gpsd gpsd-clients python-gps
5.安装yagmail
# 安装yagmail
pip install yagmail
6.安装蓝牙驱动与A2DP支持
6.1蓝牙驱动
# 安装蓝牙驱动及配置相关
sudo apt-get install pi-bluetooth bluez bluez-firmware blueman
sudo usermod -G bluetooth -a pi
sudo systemctl start bluetooth
sudo reboot
6.2A2DP支持
# 克隆仓库
git clone https://github.com/bareinhard/super-simple-raspberry-pi-audio-receiver-install
# 打开对应目录
cd super-simple-raspberry-pi-audio-receiver-install
# 切换分支
git checkout stretch-fix
# 执行安装脚本
sudo ./install.sh
- Car和Home,我选的Home
- Device name和AirPlay Device Name,写PiMusic
- 密码,不输入
- Do you want all the Devices to use the same name? (y/n) : Choose y or n,选n
- Which Sound Card are you using? (0/1/2/3/4/5/6/7/8/9/10/11),写0
7.安装Webiopi
# 克隆仓库
git clone https://github.com/thortex/rpi3-webiopi
# 打开对应目录
cd rpi3-webiopi/webiopi_0.7.1
# 执行配置脚本
sudo ./setup.sh
# 修改密码
sudo webiopi-passwd
# 启动webiopi
sudo webiopi 8000
# 让webopio后台运行,否则按ctarl+c就会断掉
sudo /etc/init.d/webiopi start
# 设置webopio随系统启动
sudo update-rc.d webiopi defaults
| 登陆网址 | 用户名 | 默认密码 |
|---|---|---|
| 树莓派IP:8000 | webiopi | raspberry |
文章作者:GentleTK
原文链接:https://gentletk.gitee.io/基于树莓派的智能箱包开发环境搭建
边栏推荐
猜你喜欢
随机推荐
【Arduino连接时钟模块在LCD1602上显示时间】
mysql 原生语句点滴学习记录
Flutter入门之网络请求篇
Spark MLlib特征处理 之 StringIndexer、IndexToString使用说明以及源码剖析
centos8 安装搭建php环境
【树莓派入门(2)树莓派的远程控制】
laravel 写api接口时 session获取不到处理办法
Binder机制详解(三)
Android-Kotlin anko库实现优雅跳转
面试必备:Android性能分析与优化实战进阶手册
SGDP(1)——猜数字游戏
[Spark]-LSH局部敏感哈希
自定义ViewGroup实现搜索栏历史记录流式布局
Glide中图片处理
2021-09-04 最简单的Golang定时器应用以及最简单的协程入门儿
完全背包问题(动态规划)
深度学习理论:测试集与验证集的区别及各自用途
Temporal action localization in untrimmed videos via Multi-stage CNNs SCNN论文阅读笔记
【NTC 热敏电阻与 Arduino 读取温度】
无源域适应(SFDA)方向的领域探究和论文复现(第一部分)









