How to set up a switch on jetson orin nano?

I’m trying to connect a switch to my Jetson Orin Nano. I want to use the switch to run my code (I’m building a line-following robot), but I don’t want it to shut down the entire board. However, I’m not sure how to set it up correctly. I tried connecting the switch between a GPIO pin and a GND pin, but it didn’t work.

Hello @maxyesno,

Hope everything is going great!

Would it be possible for you to provide more details about what specifically you want the switch to do to your NVIDIA Jetson Board?

Do you want it to control power? Or to act as a reset?

best regards,
Andrew
Embedded Software Engineer at ProventusNova

JetsonHacks has a great video ( https://youtu.be/a8espzPAzu4?si=LUj8NF5iLeX7BZw8 ) on enabling the GPIO pins, as it sounds like you’ve discovered they aren’t enabled by default.

I’d probably write an application that has a main loop that mostly sleeps till the GPIO button press triggers is to do something.

There’s another header that can be used to turn on and off the Jetson, but that doesn’t sound like what you are after.

Hi Andrew,

Since it takes some time to turn on the board, I do not want to use the switch to reset or control the power of jetson orin nano. Instead, I am looking forward to using a switch or button to run and stop the code for my robot.

thanks!

Hey @maxyesno,

Thanks for getting back!

Got it. That is very smart, did not thought of that.

Yeah I think with the answer from lanchlanhurst you should be good to go.

Please keep us posted on your project, sounds very interesting.

best regards,
Andrew
Embedded Software Engineer at ProventusNova