This might seem like a silly question but I have to ask it as I was unable to find proper answers to this online. I want to know whether it is possible to interface electronic components such as proximity sensors, servo motors, LEDs, etc. through the GPIO pins available on the Jetson TK1 board. I know how to do this with arduino. Can anyone provide me a walk-through or any relevant links for using the same components with my jetson?
Typical GPIO access is via sysfs. Keep in mind Jetson mostly uses 1.8V, so 3.3V or other needs a level shifter.
The general URL for schematics and TRM for the most current R21.4:
Some links related to using “echo” to enable/disable/toggle GPIO:
The tutorial here is pretty easy to follow and should get you started:
FYI, just added this to the sticky topic for Jetson URLs.
I have already gone through that link. What I want is to write programs (preferably in Java) for interfacing an ultrasonic sensor with the jetson. Please go through this link http://www.raspberrypi-spy.co.uk/2012/12/ultrasonic-distance-measurement-using-python-part-1/. I want the jetson equivalent of this. Ofcourse, I am not asking for the whole program but the trick for accessing the GPIO pins inside a program.
File read/write works to /sys for GPIO regardless of language. Java won’t change that, and Java can easily write “1” or “0” into files where manually echoing “1” or “0” works.
Thank you all for your answers. I found what I was looking for here-
This is exactly what I was looking for; library functions for accessing GPIO pins.