SODAQ SARA R410M

SODAQ SARA R410M

The SODAQ SARA is a developers board in the standard Arduino formfactor. It comes with a powerful 32 bits microcontroller, two grove sockets to easily connect any sensor, two jst connectors to connect your battery and solar panel, onboard charge circuit, accelerometer, GPS and NB-IoT or Cat M1.

Install the latest SODAQ SAMD boardfiles.
See Arduino setup page

SARA-R1-schematic PDF

       

Passthrough

With the passthrough sketch you can send AT commands (NB-IoT) to the ublox module on the Sodaq Sara.

Note that the SARA R410M module has a default baud rate of 115200 bps.

This example doesn’t require any additional libraries.

#include 

#if defined(ARDUINO_SODAQ_SARA)
/* SODAQ SARA */
#define DEBUG_STREAM SerialUSB
#define MODEM_STREAM Serial1


#else
#error "Please select the SODAQ SARA as your board"
#endif

unsigned long baud = 115200;

void setup() 
{
pinMode(SARA_ENABLE, OUTPUT);
pinMode(SARA_TX_ENABLE, OUTPUT);
pinMode(SARA_R4XX_TOGGLE,OUTPUT);

digitalWrite(SARA_ENABLE,HIGH);
digitalWrite(SARA_TX_ENABLE,HIGH);
digitalWrite(SARA_R4XX_TOGGLE,LOW);


  // Start communication
  DEBUG_STREAM.begin(baud);
  MODEM_STREAM.begin(baud);
}


// Forward every message to the other serial
void loop() 
{
  while (DEBUG_STREAM.available())
  {
    MODEM_STREAM.write(DEBUG_STREAM.read());
  }

  while (MODEM_STREAM.available())
  {     
    DEBUG_STREAM.write(MODEM_STREAM.read());
  }
}


 

 

Need Help?

Ask your question on our forum.