---
title: "EC-M12-BC-C6-C-A – USER GUIDE V2"
description: "## Overview The NORVI EC-M12-BC-C6-C-A is a rugged, IP67-rated IoT telemetry unit designed for reliable outdoor and remote monitoring applications. Powered by high-capacity non-rechargeable lithium batteries and built on the ultra-low-power STM32L072CZT6TR MCU, it delivers years of autonomous operation even…"
url: "https://norvi.io/docs/ec-m12-bc-c6-c-a-user-guide-v2/"
updated: "2026-11-27"
category: "NORVI EC-M12 / EC-M12-BC-C6-C-A"
---

# EC-M12-BC-C6-C-A – USER GUIDE V2

## Overview

The NORVI EC-M12-BC-C6-C-A is a rugged, IP67-rated IoT telemetry unit designed for reliable outdoor and remote monitoring applications. Powered by high-capacity non-rechargeable lithium batteries and built on the ultra-low-power STM32L072CZT6TR MCU, it delivers years of autonomous operation even in harsh environments, making it well suited for agriculture, environmental monitoring, utilities, and industrial asset management.

The device supports multi-network cellular connectivity through the SIM7070G modem, covering 2G, Cat-M, and NB-IoT for wide-area, low-power data transmission. It integrates directly with two industrial Current Input interfaces., and features a fully sealed enclosure with contactless magnetic controls - including a Magnetic Reset and Magnetic Transport Switch - that preserve IP67 protection while enabling safe field handling and storage.

This guide walks through everything needed to confidently install, configure, and deploy the EC-M12-BC-C6-C-A covering safety requirements, hardware specifications, GPIO and wiring references, Arduino IDE setup, diagnostic test code, supported communication protocols, and troubleshooting.

## Key Features

Rugged Design IP67 weatherproof enclosure with industrial-grade connectors

Cellular Connectivity Multi-band modem (2G / Cat-M / NB-IoT) via SIM7070G

The device is powered by two ER34615H lithium batteries (38,000 mAh total), and the USB-C connector is used only for uploading code and debugging, though it can also power the device if wanted.

**Magnetic Reset:** Contactless device reset using a magnet, with no need to open the enclosure.

The magnetic transport switch is a contactless switch that saves battery power while the device is being transported, and it is not an on/off switch, as the device keeps running continuously after its first power-up via the switch.

MicroSD card slot for storage expansion

Current Inputs: Two 4–20 mA current input channels for measuring industrial process signals.

Industrial M8 8-pin connector for sealed field wiring

## Safety Information

**Warning:**Before inserting the battery, verify that the polarity is correctly aligned to avoid damage to the device.

Ensure the slide switch is set to the correct position (5V / 12V) to match the voltage required by the connected sensor.

Confirm the jumper is correctly placed before powering the device via USB or Battery.

Verify that the sensor wiring is properly connected before applying power to the unit.

Ensure input current remains within the specified 4–20 mA range.

## Technical Specifications

### Peripherals

#### Microcontroller

#### MicroSD Card (SPI)

| Interface | SPI |
| --- | --- |
| CS | PB0 |
| MISO | PA6 |
| MOSI | PA7 |
| SCLK | PA5 |
| SD Detect | Not Implemented |

#### Cellular Modem (SIMCOM 7070G)

| Model of GSM Modem | SIMCOM SIM7070G |
| --- | --- |
| Technology | 4G LPWA (LTE Cat-M1 and Cat-NB1/NB2) with 2G GPRS/EDGE fallback |
| Cat-M1 bands | B1, B2, B3, B4, B5, B8, B12, B13, B14, B18, B19, B20, B25, B26, B27, B28, B66, B85 |
| Cat-NB (NB1/NB2) bands | B1, B2, B3, B4, B5, B8, B12, B13, B18, B19, B20, B25, B26, B28, B66, B71, B85 |
| RXD  | PA3 |
| TXD | PA2 |
| POWER | PA1 |
| DTR | PB12 |

#### Analog Inputs

| Number of Analog Inputs | 2 |
| --- | --- |
| Analog Input Measurement Range | 4-20 mA |
| Terminal Arrangement |  |

#### M8 8-Pin Connector

The device uses an M8, 8-pin connector for field wiring. The pin functions are listed below.

## Hardware Layout & GPIO Map

The table below lists the STM32L072 GPIO assignments as used on the EC-M12-BC-C6-C-A board. Use this reference when writing or adapting firmware.

## Power Source Selection

The device has a built-in battery, which is designed for low power operation. During programming and testing of the device, the power source can be changed to USB to save the battery power for its actual operation. The power source can be changed to USB by setting the onboard jumper to the USB side.

![Figure 1: Setting Jumper Pins for USB or Battery Supply Mode](https://norvi.io/wp-content/uploads/2026/11/Setting-Jumper-Pins-for-USB-or-Battery-Supply-Mode.jpg)
Figure 1: Setting Jumper Pins for USB or Battery Supply Mode

USB power is a separate path and does not go through these enabled sensor power lines.

![Figure 02:Battery Monitoring Functional Block Diagram Version 02](https://norvi.io/wp-content/uploads/2026/11/Battery-Monitoring-Functional-Block-Diagram-Version-02.jpg)
Figure 02:Battery Monitoring Functional Block Diagram Version 02

## Wiring Guide

### Analog Inputs Wiring Connections

![Figure 3: Connecting the 8-Pin M8 Sensor Cable](https://norvi.io/wp-content/uploads/2026/11/Connecting-the-8-Pin-M8-Sensor-Cable.jpg)
Figure 3: Connecting the 8-Pin M8 Sensor Cable

### Utilizing Analog Inputs

![Figure 3: Analog Inputs](https://norvi.io/wp-content/uploads/2026/11/Analog-Inputs.jpg)
Figure 3: Analog Inputs

The analog inputs are converted to digital through ADS1115 16bit ADC. ADS1115 provides internal comparators with a digital alarm output, which you can set the ADS1115 to monitor an analog input, while the other peripherals are on sleep. For the reading operation of ADS1115, it is available on I2C bus at the address 0x49. Output from the sensor should be connected to 4-20mA 1 or 4-20mA 2 analog with the reference GROUND.

**Battery Monitoring**

The Power output of the device can be utilized to power the sensor or the external device. The output voltage can be configured as 5V or 12V according to requirement.

Battery voltage is monitored through a **voltage divider circuit**, which scales down the battery voltage to a suitable level for the ADC. The ADC measures the analog voltage and converts it into a digital value, which the system uses to monitor the battery voltage.

### Mounting and Connecting the Module

**Mount the enclosure** using the provided wall-mounting points.

**Connect the M8 8-pin connector** to the device’s mating field cable. Tighten the connector fully to maintain the **IP67 protection rating**. Verify the wiring against the terminal arrangement shown in the above diagram.

**Check the sensor supply selection:** Set the **selectable sensor-voltage switch** according to the sensor being used. Select the appropriate **5 V or 12 V** supply before connecting the sensor.

**Verify the SIM card and SD card:** Confirm that the SIM card and SD card are properly installed in the device before operation.

## Programming the Device

![Figure 4: Arduino IDE Boards Manager Window](https://norvi.io/wp-content/uploads/2026/11/Arduino-IDE-Boards-Manager-Window.png)
Figure 4: Arduino IDE Boards Manager Window

NORVI EC-M12-BC-C6-C-A is powered by a STM32L Series microcontroller, STM32L072CZT6. This microcontroller is designed for low power applications and can be programmed with Arduino IDE or any other IDE which supports STM32 micro-controllers. The board includes SWD programming Pins for connection with an ST-Link and USB Port for Serial Debugging.Configuring Arduino IDE for STM32LThe boards package : STM32 MCU Based boards should be installed from the Arduino Boards Manager. **Figure 4: Arduino IDE Boards Manager Window**

Then setup the board setting from tools as the below Figure. In there; to get the serial monitor output needed to enable generic serial and CDC (generic ‘serial’ superseded U(S)ART.Board : Generic STM32L0 SeriesBoard Part number : Generic L072CZTxU(S)ART support : Enabled generic Serial

![Figure 5: Arduino IDE Board and Tools Menu Configuration](https://norvi.io/wp-content/uploads/2026/11/Arduino-IDE-Board-and-Tools-Menu-Configuration-1.png)
Figure 5: Arduino IDE Board and Tools Menu Configuration

**Compiling and Uploading Code for STM32L with Arduino IDE**Figure 5: Arduino IDE Board and Tools Menu Configuration

The compiled binary can be exported from Arduino IDE from Sketch –> Export Compiled Binary Option.

Once the process is complete the binary file can be fetched from the program's saved location.

![Figure 6: STM32 Exported Binary Upload via ST-Link Programmer](https://norvi.io/wp-content/uploads/2026/11/STM32-Exported-Binary-Upload-via-ST-Link-Programmer.png)
Figure 6: STM32 Exported Binary Upload via ST-Link Programmer

The exported binary file can be uploaded through a ST-Link Programmer. The connections GROUND, SWCLK, SWDIO, RESET should be connected with the ST-Link Programmer .Figure 6: STM32 Exported Binary Upload via ST-Link Programmer

Open STM32 ST-LINK Utility, go to Target > Connect, then open the BIN file and update the board using Target > Program & Verify.

## Test Code Examples

This test code lets you test all the peripherals and the device's shutdown mode. It is intended only for initial testing and evaluation and does not represent the final firmware.

![Figure 7: Sensor Supply Voltage Output](https://norvi.io/wp-content/uploads/2026/11/Sensor-Supply-Voltage-Output.png)
Figure 7: AUX Sensor Supply Voltage Selector Switch (S2) for 5V/12V Selection

### Sensor Supply Voltage Output

The device has a selector switch for choosing a 12 V or 5 V sensor supply, and a 3.3 V supply is also available. Set the switch to 12 V or 5 V if the sensor requires it, or use the 3.3 V supply for 3.3 V sensors. The selected 12 V / 5 V supply and the 3.3 V supply can be used together, so sensors with different voltage requirements can be powered at the same time through the M8 8-pin connector.

**Enabling Power Output from firmware**

The output enable pin is connected to the GPIO PA4 on STM32.

By turning the PA4 High, the output can be turned ON.

```cpp

                pinMode(BOOST_EN, OUTPUT);

digitalWrite(BOOST_EN, HIGH);
delay(1000);
```

**MicroSD Card Support**

The microSD card is connected to the SPI bus of the STM32, with a GPIO to control its power. This cuts power to the microSD card when the device is in sleep mode. Booster enable, SD card enable, and 3.3V output enable are all controlled by a single GPIO, PA4. The example code below shows how to enable power to the microSD card and read the data.

```cpp

                void SD_CHECK(){
  Serial.print("nInitializing SD card...");
   if (!card.init(SPI_HALF_SPEED, SD_chipSelect))
    {   Serial.println("CARD NOT FOUND");
    }
    else
    {
      Serial.println("SD WORKING");
    }
    Serial.print("nCard type: ");
    Serial.println(card.type());
    if (!volume.init(card)) {
      Serial.println("Could not find FAT16/FAT32 partition.nMake sure you've formatted the card");
      return;
    }
    if (!SD.begin(SD_chipSelect)) {
      Serial.println("Card failed, or not present");
      // don't do anything more:
      return;
    }

}
```

**Low Power Mode**

The device uses low-power mode to conserve battery energy. In the test code, the device can be put into low-power mode by sending the LP command through the serial monitor. In this mode, power consumption drops to just a few microamps, which makes the device suitable for long-term battery-powered operation.

**Power Control Pins**

**Active Cycle (after wake-up)**

**Preparing for Low Power**

Before sleep, the peripherals are powered down in this order:

**Entering Shutdown Mode**

```
LowPower.shutdown(ShutdownPeriod);
```

The STM32 enters deep shutdown for ShutdownPeriod (default 30000 ms = 30 s). In this mode:

Most peripherals and clocks are off.

Power consumption drops to a few microamps.

The RTC keeps running and wakes the MCU when the timer expires.

**Wake-Up and Resume**

After the period ends, the MCU performs a cold start and runs setup() again. All peripherals are re-initialized, data acquisition and communication resume, and the cycle repeats.

**Notes**

To change the sleep duration, edit uint32_t ShutdownPeriod = <milliseconds>;

RAM contents are lost in shutdown mode. Store any data that must survive in the microSD card.

Avoid serial communication immediately before shutdown, to prevent incomplete transmissions.

Make sure the modem is powered off before entering shutdown, otherwise sleep current will be higher.

**Powering On the Modem**

The modem is controlled through the power key on PA1:

```cpp

                digitalWrite(GSM_POWER, HIGH);   // Power key pulse
delay(200);
digitalWrite(GSM_POWER, LOW);    // Release power key
delay(2000);                     // Wait for the modem to start
```

To power the modem off before sleep, set GSM_POWER HIGH.

**Basic AT Command Communication**

The modem is connected to the microcontroller through Serial2 (PA2 TX, PA3 RX). After powering on the modem, open the serial interface at 9600 bps and send an AT command:

```
Serial2.begin(9600);
```

```
Serial2.println("AT");
```

The modem replies with OK when communication is successful.

**Indicator LED**

The indicator LED is connected to the NET light output of the modem and shows the network status:

**Blinking every 1 second:** Modem is searching for a network.

**Blinking every 3 seconds:** Modem is registered on the network successfully.

**Blinking rapidly:** Modem is establishing a data connection.

**Off:** Modem is powered off or in low-power mode.

The Indicator provides a quick visual reference to confirm modem activity and network connection status.

## Support & Resources

Product documentation & datasheets: [https://norvi.io/docs/ec-m12-bc-c6-c-a-datasheet/](https://norvi.io/docs/ec-m12-bc-c6-c-a-datasheet/)

Product page: [https://norvi.io/](https://norvi.io/)

Technical support: support@norvi.io

| Rev. | Date | Change Description | Board Revision |
| --- | --- | --- | --- |
| 2.0 | 10/11/2026 | Updated modem power distribution, added a user-configurable LED, magnetic reset and transport switches and introduced UART communication | V3 |
