Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jetson nano (NVIDIA) ARM Cortex-A57, Platform is not supported. #39

Open
Avi-avidan opened this issue Nov 8, 2020 · 3 comments
Open

Comments

@Avi-avidan
Copy link

Avi-avidan commented Nov 8, 2020

hi,
loved this repo.
I am trying to read dc motor encoder link, using your example, how ever I am getting NotImplementedError: Platform is not supported.
exception is raised for this line -
gpio = gaugette.gpio.GPIO()

any advice will be appreciated.

this is the motor I am using -
https://www.aliexpress.com/i/4000098341909.html

this is jetson nano board -
https://developer.nvidia.com/embedded/jetson-nano-developer-kit

here is my gpio setup -

import Jetson.GPIO as GPIO
GPIO.setmode(GPIO.TEGRA_SOC)
ENC1, ENC2 = 'LCD_TE', 'SPI2_SCK'
GPIO.setup(ENC1, GPIO.IN)
GPIO.setup(ENC2, GPIO.IN)

thank a lot, a.

@guyc
Copy link
Owner

guyc commented Nov 8, 2020

The problem is that the gpio wrapper needs a new block to adapt the Jetson.GPIO library.
At a glance the Jetson library looks like a drop-in for Adafruit_BBIO.GPIO, so try changing the block for beagleboneblack
to support your platform:

elif gaugette.platform.isBeagleBoneBlack:

eg experimentally change this:

elif gaugette.platform.isBeagleBoneBlack:
            import Adafruit_BBIO.GPIO
            self.gpio = Adafruit_BBIO.GPIO

to

else:
            import Jetson.GPIO
            self.gpio = Jetson.GPIO

@Avi-avidan
Copy link
Author

thanks :) that helped alot. moving down the rubbit hole reveals Jetson.GPIO has no attribute 'trigger'...

@jpalves
Copy link

jpalves commented Apr 25, 2024

I have a modified version to work with Jetson Nano, take a look https://github.com/jpalves/py-gaugette

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants