跳到主要内容

Jetson Nano 使用说明

硬件连接

  • Jetson Nano 的 40PIN 引脚是兼容树莓派的 40PIN 引脚的,并且提供了一个 Jetson.GPIO 库跟树莓派的 RPI.GPIO 库的 API 是一致的,所以这里连接的序号跟树莓派的是一样的,使用 40PIN 接口时,可以直接将模块插入 Jetson Nano 的 40Pin 排座。
  • 如果是选择用 9PIN 排线连接的话,请参考下方的引脚对应表格:
    • Jetson nano连接引脚对应关系
      e-PaperJetson Nano Developer Kit
      BCM2835 编码Board 物理引脚序号
      VCC3.3V3.3V
      GNDGNDGND
      DIN10(SPI0_MOSI)19
      CLK11(SPI0_SCK)23
      CS8(SPI0_CS0)24
      DC2522
      RST1711
      BUSY2418
      PWR1812

运行 C 语言例程

  • 下载程序(已下载可跳过)

    wget https://www.waveshare.net/w/upload/2/2d/5inch_e-Paper.zip
    unzip 5inch_e-Paper.zip -d 5inch_e-Paper
    cd 5inch_e-Paper/RaspberryPi_JetsonNano/
    备用解压方式
    sudo apt-get install p7zip-full
    7z x 5inch_e-Paper.zip -O./5inch_e-Paper
    cd 5inch_e-Paper/RaspberryPi_JetsonNano/
    通过 GitHub 下载程序(备用方式,已下载可跳过)
    • 目前访问 GitHub 并不是很流畅,建议使用上面的方法从我们官网下载。
      git clone https://github.com/waveshare/e-Paper.git
      cd e-Paper/E-paper_Separate_Program/5inch_e-Paper/E-RaspberryPi_JetsonNano
  • 编译程序(说明:-j4 为使用 4 线程编译,数字可自行修改;)

    # 此时在 5inch_e-Paper/RaspberryPi_JetsonNano 位置
    cd c
    sudo make clean
    sudo make JETSON -j4
  • 运行程序

    sudo ./epd

运行 python 例程

  • 安装函数库

    sudo apt-get update
    sudo apt-get install python3-numpy
    sudo apt-get install python3-pip
    sudo pip3 install Jetson.GPIO
  • 下载程序(已下载可跳过)

    wget https://www.waveshare.net/w/upload/2/2d/5inch_e-Paper.zip
    unzip 5inch_e-Paper.zip -d 5inch_e-Paper
    cd 5inch_e-Paper/RaspberryPi_JetsonNano/
    备用解压方式
    sudo apt-get install p7zip-full
    7z x 5inch_e-Paper.zip -O./5inch_e-Paper
    cd 5inch_e-Paper/RaspberryPi_JetsonNano/
    通过 GitHub 下载程序(备用方式,已下载可跳过)
    • 目前访问 GitHub 并不是很流畅,建议使用上面的方法从我们官网下载。
      git clone https://github.com/waveshare/e-Paper.git
      cd e-Paper/E-paper_Separate_Program/5inch_e-Paper/E-RaspberryPi_JetsonNano
  • 运行程序

    # 确保在 5inch_e-Paper/RaspberryPi_JetsonNano/ 位置
    cd python/examples/
    python3 epd_5in0_test.py