Start Asset Tracker's SARA-R5 from code w/o pushing button

Hi all, first post.

I recently got an AWS ExpressLink Tracker board for a work project. I am making an enclosure for it, so the buttons will be inaccessible. I am looking for a way to control the SARA button from code. I have both an ESP32 w/ the Arduino IDE and an RP2040 w/ MicroPython, so I can use either language, though I prefer MicroPython for simplicity.

I read that you need to pull the PWR_ON pin high for 1 second, though in MicroPython there isn’t a pin with that designation.

Does anyone have any example code I can reference?

Thanks!

Could not find any other tutorial or example code apart from the documents given here:https://www.sparkfun.com/products/18450

I think you’ll get enough clues if you study these meticulously. And if you ever consider choosing any simple gps module for arduino based projects, this write-up may help you: https://www.theengineeringprojects.com/ … -isis.html

It has been a while and still no luck! The Arduino examples provided only work for the Artemis micromods. As I am using the ESP32, I cannot get it to start the modem from code.

The documentation for the ESP32 says:

Pin 44 - G2/BUS2 - LTE_PWR_ON - General purpose pin configured for turning SARA on/off

I’ve tried the following pins:

44, 34, 3, 2, G2…

With the code:

SARA_R5 mySARA(44);
mySARA.modulePowerOn();