V_INT pin control

Hello,

Can you please let us know how we can access the SARA_1.8V (V_INT signal) pin from the programming environment? We have checked the Rev3c of the schematics and this is connected to pin 41 of the MCU.

Thank you,

Ionel

Hi @ionel ,

You can the pin definition “SARA_STATUS” to use this pin.

Best regards,
Jan

Hi Jan,
I try to use SARA_STATUS. I write a function:

void ReadStatus() {
if (digitalRead(SARA_STATUS) == HIGH) {
DEBUG_STREAM.println(“V_INT = HIGH <=============”);
} else {
DEBUG_STREAM.println(“V_INT = LOW <=============”);
}
}

When compile the sketch I receive a error message:
‘SARA_STATUS’ was not declared in this scope

How can I declare?
I use Arduino IDE 1.8.13 and SODAQ Boards 1.8.6.

Thank you,
BR Ionel

Hi @ionel,

You are correct.
Do you have a rev3 board? Older boards don’t have this pin connected.
The pin isn’t in the boardfiles yet, I can see a change was made to the beta files.
I will ask to publish the latest changes in the test url.
I will let you know when these are available.

Best regards,
Jan

Hi Jan,

Thank you for the answer.
Please let’s me know when files will be available.
BR,
Ionel

1 Like

Hi @ionel,

The beta with v1.8.9 is available.
You can read on this page how to get it: Getting Started - SODAQ Support pages

Best regards,
Jan

Hi Jan,
Thank you very much. I have been working with this board version.
BR,
Ionel

Hi Jan,

I come back with the request to reopen this topic.
A few months ago, I updated to version 1.8.9 for SODAQ Boards.
But for the SARA SFF board, I did not find in the variant.h and variant.cpp the statement for SARA_STATUS so that I can control the V_INT pin from the N310 modem.

So I did this:

#define MODEM_STATUS 41 // I defined a MODEM_STATUS pin
pinMode (MODEM_STATUS, INPUT); // I declared it as the input pin

And I used it to determine the status of V_INT.
It seems to work.

I put 41 because I saw in the sodaq_sara_sff_r3c.pdf diagram that V_INT is called 1.8V and then it is converted to the SARA_1.8V / 1.8C signal, which then connects to the ATSAMD21G18A-MU microcontroller at pin 41.

The question is, did I do well?

I have no experience with the variant.h and variant.cpp files, so please help me with update these files, so that I can properly control the SARA_STATUS pin (generated from V_INT).

Thank you,
Ionel

Hi @ionel,

Can you maybe try to remove and reinstall the v1.8.9 boardfiles?
You might need to remove the download cache, before reinstalling v1.8.9
Go to folder %localappdata%\Arduino15 on Windows and delete the staging folder.

You can find the changes I made on our GitHub: Add SARA_STATUS pin for the SODAQ SARA SFF. · SodaqMoja/SodaqCore-samd@b42c260 (github.com)

Best regards,
Jan