体验树莓派+墨水屏应用

树莓派是基于Linux系统的微型电脑,硬件接口比较丰富,可以基于这些硬件接口做一些有趣的应用,正好身边有树莓派4b和4.2inch电子墨水屏,想体验一下树莓派+墨水屏的应用。

一、树莓派sd卡安装系统、更新软件运行环境

  1. 树莓派sd卡安装系统:https://www.raspberrypi.org/software/
  2. 打开SPI接口:sudo raspi-config,选择Interfacing Options -> SPI -> Yes 开启SPI接口
  3. 修改系统软件源:https://mirror.tuna.tsinghua.edu.cn/help/raspbian/
    编辑 /etc/apt/sources.list 文件,删除原文件所有内容,用以下内容取代:
    deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi
    deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi
    编辑 /etc/apt/sources.list.d/raspi.list 文件,删除原文件所有内容,用以下内容取代:
    deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
  4. 更新系统
    sudo apt-get update
    sudo apt-get upgrade

二、树莓派+墨水屏硬件接线

  1. 接线示例:
  2. 管脚连接:
  3. 树莓派gpio接口图:

三、下载微雪github示例运行demo

  1. 微雪官方在github上面发布了运行demo源码,可以通过git下载到树莓派
    demo地址:https://github.com/waveshare/e-Paper/tree/master/
  2. 切换到下载的源码的相应目录,运行示例。
  3. 墨水屏运行结果截图:

参考资料:

  1. https://www.waveshare.net/
  2. https://www.waveshare.net/wiki/7.5inch_e-Paper_HAT_(B)
  3. https://github.com/waveshare/e-Paper/blob/master/RaspberryPi_JetsonNano/python/readme_rpi_CN.txt
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章