Connecting power and reset buttons to Jetson Nano

The robot that I’m currently building has two brains. There’s ESP32, who is responsible for motor, sensors and other spine cord reflexes. And there is Jetson Nano, who’s kinda a.. brain. Before even thinking about how they could to talk to each other, I had to understand how to power them ON and OFF first.

It’s trivial for ESP32, which I can simply connect to or disconnect from a power source and nothing bad happens. But Jetson Nano, which runs proper operating system, definitely won’t enjoy loosing the power in the middle of some IO.

esp32 power switch
Hi-tech ESP32 power switch

In some distant future I’d want ESP32 to be responsible for deciding when to turn Jetson Nano ON and OFF. For instance, when I turn the switch, ESP32 would power up and signalled Jetson to do the same. When it turns off, though, Jetson Nano would detect that and gracefully shutdown on its own. One power switch – two affected boards.

However, at this stage I’d be more than satisfied to could control Jetson Nano power state via regular push buttons. It’s already a way better than plugging and unplugging a power cord. And you know what, that’s really easy to implement.

Magic

As of today, both of Jetson Nano revisions (A02 with one camera slot and B01 with two) have button pins that control board’s power state. It’s J40 pins header for A02, and J50 for B01. As I’m the proud owner of A02, I’ll focus at that one, but configuring B01 should be fairly identical.

Jetson Nano rev A02 top view
From official user guide

Jetson Nano A02 power pins

So, here’s how to do that:

  1. Shorten “auto power ON” pins. It prevents board from powering up every time it sees the power cord. For that I simply scavenged a jumper from one of the older boards and put it on pins 7 and 8.
  2. After that, shortening pins 1 and 2 with a push button or even a screwdriver will initiate power up sequence. If the board is already running, shortening them for a little bit longer will turn the board off.
  3. If you want a reset button, shortening pins 5 and 6 will do. The logic is the same as with power on button. Well, except for “a little bit longer” part.

What’s cool is that because the whole power/reset sequences are basically triggered by pulling pins 1/5  low, I could have connected those pins to ESP32’s GPIOs and control Jetson Nano’s power state programmatically! Just as planned.

Power buttons Jetson Nano

But for now I just took two push buttons, soldered them to connectors, plugged into a board, and voila! Another small step for a man, a huge leap towards a robot dominated world for a mankind.

4 thoughts on “Connecting power and reset buttons to Jetson Nano

  1. Hey, how to do it programmatically? like I can give the ground signals to the pin 1 to powerOff but what should be on the GPIO of ESP32 the rest of the time? Or can I simply use a transistor to short pin 1 and 2 ?

    1. hey Aditya, my first choice would be a transistor between pins 1 and 2. There are probably even simpler approaches, but I was thinking about transistors.

  2. The B01 has a 2nd MIPI CSI-2 port in the place of the mentioned pins, so mentioning the B01 is quite misleading. Not saying that the pins are not somewhere (I am on a search now to find them 🙂 ), but is certainly not on the same place as on the A02.
    Other than that, good job with providing an informative reading.

    1. I did mention that power pins in B01 are grouped in J50 block 😉 Googling that block shows proper pinout right away

Leave a Reply

Your email address will not be published. Required fields are marked *