Skip to content

Commit

Permalink
update:j401+jp6
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoujiang committed Sep 25, 2024
1 parent 91ae052 commit b584c45
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ cat /sys/class/hwmon/hwmon0/rpm

## GPIO

### The detail of 40-pin header is shown below:
**The detail of 40-pin header is shown below:**

<div class="table-center">
<table style={{textAlign: 'center'}}>
Expand Down Expand Up @@ -948,6 +948,11 @@ You will see the result as below, before connecting to the I2C, no I2C device wa

<div align="center"><img width ="1000" src="https://files.seeedstudio.com/wiki/reComputer-Jetson/A608/J401-I2C-test.png"/></div>

:::info
If you want to use general IO pins for logic control, please refer to [this wiki](/reComputer_Jetson_GPIO).
:::


## Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.
Expand Down
4 changes: 2 additions & 2 deletions docs/Edge/NVIDIA_Jetson/RecomputerPage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ keywords:
image: https://files.seeedstudio.com/wiki/wiki-platform/S-tempor.png
slug: /NVIDIA_Jetson
last_update:
date: 08/03/2023
author: Lakshantha
date: 09/25/2024
author: Yaohui
---

import RecomputerPage from '@site/src/components/jeston';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,51 @@ cd ..
echo 433 > unexport
```

### For Jetpack6+
Similar to method 2, we need to refer to another document (pinmux) and obtain this pin label information. Refer the links below according to the SoM.

- [Jetson Nano](https://developer.nvidia.com/jetson-nano-pinmux)
- [Jetson Xavier NX](https://developer.nvidia.com/jetson-xavier-nx-pinmux-configuration-template-v106)
- [Jetson Orin NX/ Nano](https://developer.nvidia.com/downloads/jetson-orin-nx-and-orin-nano-series-pinmux-config-template)

**Step 1:** Download the pinmux document according to the SoM you are using. Here we choose the [Jetson Orin NX/ Nano](https://developer.nvidia.com/downloads/jetson-orin-nx-and-orin-nano-series-pinmux-config-template) document

**Step 2:** Find the GPIO label (under Customer Usage column) corresponding to the Module Pin Name that we got before. For example, for **GPIO12**, it is **GPIO3_PN.01** and here we refer to **PN.01**

<div align="center"><img width={800} src="https://files.seeedstudio.com/wiki/reComputer-GPIO/4.png" /></div>

**Step 3:** Enter the terminal of the Jetson device and execute this command

```bash
sudo apt update
sudo apt install gpiod

gpioinfo
```

**Step 4:** Find the **GPIO number** corresponding to the **GPIO label** that we got before

<div align="center">
<img width={800} src="https://files.seeedstudio.com/wiki/reComputer-Jetson/gpio/gpioinfo1.png" />
<img width={800} src="https://files.seeedstudio.com/wiki/reComputer-Jetson/gpio/gpioinfo2.png" />
</div>

In this case, it is **gpiochip0 line85** corresponding to **PN.01** which is also equal to **GPIO12**

**Step 5:** Then we can use the **gpioset** command to configure the working mode of the GPIO.

```bash
# To set GPIO12 to HIGH
sudo gpioset --mode=wait gpiochip0 85=1
# To set GPIO12 to LOW
sudo gpioset --mode=wait gpiochip0 85=0
```

:::info
If you want to learn more about the **gpioset** command, please refer to this:
https://www.acmesystems.it/gpiod
:::

## Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.
Expand Down

0 comments on commit b584c45

Please sign in to comment.