From f0fd19fa8b3bd14797ab049532ade547ae1f04da Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sun, 30 Aug 2020 14:36:06 -0400 Subject: [PATCH] Updated install instructions --- .gitignore | 3 +++ README.md | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7f7cccc..e15eec3 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,6 @@ docs/_build/ # PyBuilder target/ +#Pycharm +.idea/ + diff --git a/README.md b/README.md index 17238d9..74b4fc3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,35 @@ # learn_jetson_nx -Learning how to use the Jetson NX \ No newline at end of file +Learning how to use the Jetson NX + +## Remote Python Interpreter +Since this needs to run on the Jetson Xavier NX we have to ensure that the remote python interpreter is set. + +``` +sudo apt update +sudo apt install python3.8-dev python3.8-venv +``` + +To use the GPIO you need the [Jetson.GPIO] library installed, create a gpio group, and apply the custom udev rules. + +``` +python3.8 -m pip install Jetson.GPIO +``` + +This installs the package in the user home .local folder. We need to know this location to copy the [udev rules]. + +``` +sudo cp ~/.local/lib/python3.8/site-packages/Jetson/GPIO/99-gpio.rules /etc/udev/rules.d/ +sudo udevadm control --reload-rules && sudo udevadm trigger +``` + +To start playing with GPIO you can reference the samples at https://github.com/NVIDIA/jetson-gpio. A detailed GPIO pinout +can be found [here at JetsonHacks](https://www.jetsonhacks.com/nvidia-jetson-xavier-nx-gpio-header-pinout/). + + +## Additional + +- [Enabling CAN bus](https://medium.com/@ramin.nabati/enabling-can-on-nvidia-jetson-xavier-developer-kit-aaaa3c4d99c9) + +[Jetson.GPIO]: https://github.com/NVIDIA/jetson-gpi +[udev rule]: https://opensource.com/article/18/11/udev \ No newline at end of file