【樹莓派】樹莓派問題合集

1、樹莓派系統備份

  • 參考鏈接:
    http://www.360doc.com/content/17/0805/03/40492717_676751545.shtml
    http://www.fendou.info/raspberry-pi-sd-card-backup-and-recovery/
    新建一個.img文件 然後使用Win32DiskImager的Read按鈕讀取內存卡就可以了。

  • 安裝QT5
    https://blog.csdn.net/weixin_40490238/article/details/83932180

sudo apt-get update
sudo apt-get upgrade
sudo rpi-update
sudo apt-get install qt5-default
sudo apt-get install qtcreator

2、控制攝像頭
參考鏈接:
http://www.cirmall.com/bbs/thread-106051-1-1.html
https://www.cnblogs.com/uestc-mm/p/7587783.html
https://blog.csdn.net/fhqlongteng/article/details/80433633 (5.3節是最簡單的)
https://blog.csdn.net/u011303443/article/details/52518369 (簡明)

sudo apt install motion
sudo cp /etc/motion/motion.conf /etc/motion/motion.conf.bak
sudo vim /etc/motion/motion.conf
(將motion.conf改爲下面形式:
daemon on                        #開啓守護進程(選配)
target_dir /home/pi/motion-images    #圖片保存的路徑
#videodevice /dev/video0            #攝像頭設備(默認)可修改            
stream_localhost off                 #允許通過網頁查看攝像頭。**必須off否則只能本地web查看**
stream_auth_method 2               #開啓密碼認證
stream_authentication 用戶名:密碼    #網頁查看攝像頭的用戶名和密碼
)
mkdir ~/motion-images
sudo service motion start
sudo motion

motion官方配置:http://lavrsen.dk/foswiki/bin/view/Motion/ConfigFileOptions

3、樹莓派每個GPIO電流很小帶不動大電機
http://ju.outofmemory.cn/entry/118339
結論:樹莓派引腳電流大小的限制是:每個引腳最大輸出電流爲16毫安(mA),且同一時刻所有引腳的總輸出電流不超過51毫安。
4、樹莓派監測外部電壓問題
我有個板子引腳每秒輸出一次高電壓。但是我用樹莓派引腳連在一起缺讀取不到引腳的高電壓。但是燈泡是每秒亮一次的。
把樹莓派和板子的GND接起來就可以了。

5、 USB 讀寫
樹莓派Qt安裝串口庫:https://www.cnblogs.com/wangha/p/10559834.html

sudo apt-get install libqt5serialport5
sudo apt-get install libqt5serialport5-dev

6、樹莓派學習論壇
http://www.waveshare.net/study/portal.php?mod=list&catid=29

7、樹莓派紅外線遙控
https://www.jianshu.com/p/9cfb0bf02006
https://blog.csdn.net/perry0418/article/details/83796035
https://blog.csdn.net/waterseason/article/details/84916642
http://www.waveshare.net/study/article-622-1.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章