Working with Jetson Nano
Hardware Connection
- The 40PIN header on the Jetson Nano is compatible with the Raspberry Pi's 40PIN header, and it provides a Jetson.GPIO library whose API is consistent with the Raspberry Pi's RPI.GPIO library. Therefore, the pin numbers used here are the same as those for the Raspberry Pi. When using the 40PIN interface, you can directly plug the module into the 40PIN header of the Jetson Nano.
- If using a 9PIN cable, please refer to the pin mapping table below:
- Jetson Nano pin mapping
e-Paper Jetson Nano Developer Kit BCM2835 Pin Board Physical Pin Number VCC 3.3V 3.3V GND GND GND DIN 10(SPI0_MOSI) 19 CLK 11(SPI0_SCK) 23 CS 8(SPI0_CS0) 24 DC 25 22 RST 17 11 BUSY 24 18 PWR 18 12
- Jetson Nano pin mapping
Running the C Example
-
Download the demo (skip if already downloaded)
wget https://files.waveshare.com/wiki/5inch_e-Paper/5inch_e-Paper.zip
unzip 5inch_e-Paper.zip -d 5inch_e-Paper
cd 5inch_e-Paper/RaspberryPi_JetsonNano/Alternative extraction method
sudo apt-get install p7zip-full
7z x 5inch_e-Paper.zip -O./5inch_e-Paper
cd 5inch_e-Paper/RaspberryPi_JetsonNano/Download the program via GitHub (alternative method, skip if already downloaded)
- Accessing GitHub may not be very smooth at present. It is recommended to use the above method to download from our official website.
git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/E-paper_Separate_Program/5inch_e-Paper/E-RaspberryPi_JetsonNano
- Accessing GitHub may not be very smooth at present. It is recommended to use the above method to download from our official website.
-
Compile the program (Note: -j4 uses 4 threads for compilation; you can modify the number)
# It is now in 5inch_e-Paper/RaspberryPi_JetsonNano position
cd c
sudo make clean
sudo make JETSON -j4 -
Run the program
sudo ./epd
Running the Python Example
-
Install libraries
sudo apt-get update
sudo apt-get install python3-numpy
sudo apt-get install python3-pip
sudo pip3 install Jetson.GPIO -
Download the demo (skip if already downloaded)
wget https://files.waveshare.com/wiki/5inch_e-Paper/5inch_e-Paper.zip
unzip 5inch_e-Paper.zip -d 5inch_e-Paper
cd 5inch_e-Paper/RaspberryPi_JetsonNano/Alternative extraction method
sudo apt-get install p7zip-full
7z x 5inch_e-Paper.zip -O./5inch_e-Paper
cd 5inch_e-Paper/RaspberryPi_JetsonNano/Download the program via GitHub (alternative method, skip if already downloaded)
- Accessing GitHub may not be very smooth at present. It is recommended to use the above method to download from our official website.
git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/E-paper_Separate_Program/5inch_e-Paper/E-RaspberryPi_JetsonNano
- Accessing GitHub may not be very smooth at present. It is recommended to use the above method to download from our official website.
-
Run the program
# Make sure it is in 5inch_e-Paper/RaspberryPi_JetsonNano/ position
cd python/examples/
python3 epd_5in0_test.py