Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Matek AP_Periph CAN Digital Power Monitor, CAN-L4-BM: Examples, Pinouts, and Specs

Image of Matek AP_Periph CAN Digital Power Monitor, CAN-L4-BMDesign with Matek AP_Periph CAN Digital Power Monitor, CAN-L4-BM in Cirkit Designer

Introduction

The Matek AP_Periph CAN Digital Power Monitor (Model: CAN-L4-BM) is a high-precision power monitoring module designed for use in UAVs, robotics, and other embedded systems. It leverages the UAVCAN protocol for seamless integration with modern flight controllers and other CAN-enabled devices. This module provides real-time monitoring of voltage, current, and power consumption, making it an essential component for applications requiring accurate power management and telemetry.

Explore Projects Built with Matek AP_Periph CAN Digital Power Monitor, CAN-L4-BM

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino Nano-Based Smart Power Monitoring System with Bluetooth and LCD Display: A project utilizing Matek AP_Periph CAN Digital Power Monitor, CAN-L4-BM in a practical application
Arduino Nano-Based Smart Power Monitoring System with Bluetooth and LCD Display

This circuit is a power monitoring system that uses an Arduino Nano to measure and display voltage, current, and power consumption. It includes sensors for voltage (ZMPT101B) and current (ACS712), a Bluetooth module (HC-05) for wireless communication, and a Nokia 5110 LCD for displaying the measurements. The system is powered by a 12V adapter and can monitor a 240V power source, with the Arduino running code to calculate and display real-time electrical parameters.

Open Project in Cirkit Designer
Image of ESP32 and INA3221-Based Smart Power Monitoring System with Bluetooth and Environmental Sensing: A project utilizing Matek AP_Periph CAN Digital Power Monitor, CAN-L4-BM in a practical application
ESP32 and INA3221-Based Smart Power Monitoring System with Bluetooth and Environmental Sensing

This circuit is a sensor monitoring and communication system that uses an ESP32 microcontroller to read data from a BME/BMP280 environmental sensor and an INA3221 power monitor. The ESP32 communicates with the sensors via I2C and transmits data wirelessly using an HC-05 Bluetooth module. Additionally, the circuit includes optocouplers and diodes for signal isolation and protection.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

The following table outlines the key technical specifications of the Matek AP_Periph CAN Digital Power Monitor:

Parameter Value
Input Voltage Range 6V to 60V
Current Measurement Range 0A to 200A (with external shunt resistor)
Communication Protocol UAVCAN (CAN bus)
Microcontroller STM32L4 series
Power Consumption < 0.5W
Operating Temperature -20°C to 85°C
Dimensions 30mm x 20mm x 5mm
Weight 5g

Pin Configuration and Descriptions

The Matek AP_Periph CAN Digital Power Monitor features the following pinout:

Pin Name Description
VIN+ Positive input voltage terminal (connect to battery +)
VIN- Negative input voltage terminal (connect to battery -)
CANH CAN bus high signal
CANL CAN bus low signal
GND Ground connection
VCC Power supply for the module (5V input)

Usage Instructions

How to Use the Component in a Circuit

  1. Power Connection: Connect the VIN+ and VIN- terminals to the positive and negative terminals of the power source (e.g., battery). Ensure the voltage is within the specified range (6V to 60V).
  2. CAN Bus Connection: Connect the CANH and CANL pins to the corresponding CAN bus lines of your system. Use a 120-ohm termination resistor if the module is at the end of the CAN bus.
  3. Power Supply: Provide a stable 5V power supply to the VCC pin. Ensure the GND pin is connected to the system ground.
  4. Shunt Resistor: If measuring high currents, connect an appropriate external shunt resistor to the module. Ensure the shunt resistor is rated for the expected current range.

Important Considerations and Best Practices

Example Code for Arduino UNO (via CAN Interface)

To interface the Matek AP_Periph CAN Digital Power Monitor with an Arduino UNO, you will need a CAN transceiver module (e.g., MCP2515). Below is an example code snippet:

#include <SPI.h>
#include <mcp_can.h>

// Define CAN bus pins for MCP2515
#define CAN_CS 10  // Chip Select pin
#define CAN_INT 2  // Interrupt pin

MCP_CAN CAN(CAN_CS);  // Create CAN object

void setup() {
  Serial.begin(115200);
  while (!Serial);

  // Initialize MCP2515 CAN module at 500kbps
  if (CAN.begin(MCP_ANY, 500000, MCP_8MHZ) == CAN_OK) {
    Serial.println("CAN bus initialized successfully!");
  } else {
    Serial.println("CAN bus initialization failed!");
    while (1);
  }

  CAN.setMode(MCP_NORMAL);  // Set CAN module to normal mode
  Serial.println("CAN module set to normal mode.");
}

void loop() {
  // Check for incoming CAN messages
  if (CAN.checkReceive() == CAN_MSGAVAIL) {
    long unsigned int rxId;
    unsigned char len = 0;
    unsigned char rxBuf[8];

    // Read CAN message
    CAN.readMsgBuf(&rxId, &len, rxBuf);

    // Print received message ID and data
    Serial.print("Message ID: 0x");
    Serial.println(rxId, HEX);
    Serial.print("Data: ");
    for (int i = 0; i < len; i++) {
      Serial.print(rxBuf[i], HEX);
      Serial.print(" ");
    }
    Serial.println();
  }
}

Note: Ensure the MCP2515 library is installed in your Arduino IDE. This code initializes the CAN bus and listens for incoming messages from the Matek AP_Periph CAN Digital Power Monitor.

Troubleshooting and FAQs

Common Issues Users Might Face

  1. No Data on CAN Bus:

    • Cause: Incorrect wiring or missing termination resistor.
    • Solution: Verify the CANH and CANL connections. Add a 120-ohm resistor if the module is at the end of the CAN bus.
  2. Inaccurate Measurements:

    • Cause: Improper calibration or incorrect shunt resistor value.
    • Solution: Recalibrate the module using the UAVCAN tool. Ensure the shunt resistor matches the expected current range.
  3. Module Not Powering On:

    • Cause: Insufficient or unstable power supply.
    • Solution: Check the VCC and GND connections. Ensure a stable 5V supply is provided.

Solutions and Tips for Troubleshooting

By following this documentation, users can effectively integrate and utilize the Matek AP_Periph CAN Digital Power Monitor in their projects.