Axel Elettronica Mc27561 Asme Lion Board User Guide

Axel Elettronica Mc27561 Asme Lion Board User Guide

AXEL logoASME Lion
User Guide
Ver 1.3 Copyright 2016 Axel Elettronica
www.axelelettronica.it
Downloaded from Arrow.com.

Copyright Notice and Disclaimer

All rights reserved. No parts of this manual may be reproduced in any form without the express written permission of Axel Elettronica.

Axel Elettronica makes no representations or warranties with respect to the contents hereof.
In addition, the information contained herein is subject to change without notice. Every precaution has been taken in the preparation of this manual. Nevertheless, Axel Elettronica assumes no responsibility for errors or omissions or any damages resulting from the use of the information contained in this publication.

Axel Elettronica does not assume any liability arising out of the application or use of any of its products or designs. Products designed or distributed by Axel Elettronica are not intended for or authorized to be used in, applications such as life support systems or for any other use in which the failure of the product could potentially result in personal injury, death or property damage.

Revision Sheet

Release No. Date Revision Description 
Ver 1.014/12/2016First Release
Ver 1.114/01/2017PDF error conversion fixed & General review
Ver 1.231/01/2017Fig. 2 and Fig. 5 changed
Ver1.311/2/2017MCU pin column added to table 4; Table 5,6,7 added

Table 1: Document History 

Chapter 1 Introduction

This document describes ASME Lion SoM (System On Module) based on an Atmel D21 Ultra-low-power microcontroller using the 32-bit ARM® Cortex®-M0+ processor.
The ASME Lion Board provides the following peripherals or modules:

  • Crypto Authentication chipset
  • Lora Module
  • GPS Module with Embedded Antenna
  • Bluetooth Low Energy (BLE) Interface

The ASME Lion Board is supported by the Arduino IDE for a fast and easy software development cycle (https://www.arduino.cc/en/Main/Software).
The software can also be developed using the Atmel Studio IDE commonly preferred by professional software engineers (http://www.atmel.com/Microsite/atmel-studio/).

Board Specifications
CharacteristicsValue
CPU Clock speed48MHz
Flash Memory256K
SRAM32K
Connector1 Power Jack
1 USB
1 Lora antenna
1 Li-Po Battery
1 SWD Debugger
Arduino compatible PinOut
Board supply voltage6V — 24V CC
Operative Voltage3.3V
Temperature-40°C to +85°C
Dimensions68×30 mm
RoHS statusCompliant

Table 2: Board Specifications 

Chapter 2 Hardware

External View

AXEL ELETTRONICA MC27561 ASME Lion Board

ASME Lion Block Diagram

AXEL ELETTRONICA MC27561 ASME Lion Board - Diagram

Figure 2: SmartEverything Block Diagram

ATMEL SAMD21Ultra low-power ARM® Cortex®-M0+ MCU

Atmel SAMD21 Ultra-low-power microcontroller using the 32-bit ARM® Cortex®-M0+ processor is the core of the entire board.

Memory

  • 256KB in-system self-programmable Flash
  • 8KB Flash Read-While-Write section
  • 32KB SRAM Main Memory
  • 8KB SRAM Low power Memory

Clock Frequency

  • 32.768kHz crystal oscillator (XOSC32K)

Arduino compliance

  • Digital i/o Pins: 20
  • PWM Pins: all but 2 and 7
  • USART: 2 (USB and TTL Digital)
  • Analog Input Pins: 6, 12-bit DAC
  • Analog Output Pins: 1, 10-bit DAC
  • External Interrupts: All pins except pin 4

More information can be found on the ATMEL SAMD21 Data Sheet (See the link in Chapter 6 )

Power Supply Circuitry

The board can be powered by three different power supply sources:

  • External Li-Po Battery
  • A 6V to 24V input
  • A 5V Mini USB connector

WARNING:
Li-Po batteries are charged at 4,2V with a current that is usually half of the nominal capacity (C/2). This board has a specialized chip that has a preset charging current of  350mAh. This means that the MINIMUM capacity of the Li-Po battery shall be 700 mAh. Smaller cells will be damaged by this current and may overheat, develop internal gasses and explode, setting the surroundings on fire.

All the components can work with the voltage range provided by the batteries, with the exception of the GPS module which requires at least 2.8V. For this reason, it is recommended to use an appropriate battery pack for prolonged use of the GPS.

AXEL ELETTRONICA MC27561 ASME Lion Board - diagram 1

NameNominalDescriptionRange
J103 VBattery Power Supply1.4V to 3.2V
J126V to 24VExternal Power Supply6V to 24V
USB5VUSB Port5V

Table 3: Power Supply Connectors and ranges 

Use Li-Ion battery Vnom = 3.7V, Vchrg = 4.2V Capacity >= 700 mAh

Microchip LoRa Module (RN2483)

The Microchip RN2483 is a Low-Power Long Range LoRa® Technology Transceiver Module, providing a low-power solution for long-range wireless data transmission.
The RN2483 module complies with the LoRaWAN Class A protocol specifications. It integrates RF, a baseband controller, and a command Application Programming Interface  (API) processor. More information can be found on the relevant Data Sheet (See the link in Chapter 6 )

Main Features

On-board LoRaWAN protocol stack:

  • ASCII command interface over UART
  • Environmentally friendly, RoHS compliant
  • European R&TTE Directive Assessed Radio Module

RF/Analog Features

  • Low-Power Long-range Transceiver operating in the 433 MHz and 868 MHz frequency bands
  • High Receiver Sensitivity: down to -146 dBm
  • TX Power: adjustable up to +14 dBm high-efficiency PA
  • Up to15km coverage at suburban and up to 5km coverage at urban area
Crypto Authentication Chip (ATMEL ATECC508A)

The ATECC508A is a member of the Atmel Crypto Authentication™ family of high-security hardware authentication devices. It has a flexible command set that allows to use it  in many applications, including the following, among others:

  • Anti-counterfeiting
  • Protecting Firmware or Media
  • Exchanging Session Keys
  •  Storing Data Securely
  •  Checking User Passwords
Device Features

The ATECC508A device includes an Electrically Erasable Programmable Read-Only Memory (EEPROM) array that can be used for key storage, miscellaneous read/write data,  read-only, secret data, consumption logging, and security configuration.
Access to the various sections of memory can be restricted in a variety of ways, and the configuration can then be locked to prevent changes.
The ATECC508A features a wide array of defense mechanisms specifically designed to prevent physical attacks against the device itself or logical attacks against data transmitted between the device and the system.
Hardware restrictions on the way keys are used or generated provide further defense against certain styles of attack.
Access to the device is made through a standard I2C interface.
Each ATECC508A ships with a guaranteed unique 9-byte (72-bit) serial number. Using the cryptographic protocols supported by the device, a Host system or remote server can prove that the serial number is authentic and is not a copy. Serial numbers are often stored in a standard Serial EEPROM, which can be easily copied with no way for the  Host to know if the serial number is authentic or if it is a clone. The entire serial number must be utilized to guarantee uniqueness.

Cryptographic Operation

The ATSHA204A supports a standard challenge-response protocol to simplify programming. In its most basic installation, the Host system sends a challenge (i.e. a number) to the device in the Client, which combines that challenge with a secret key by using the Message Authentication Code (MAC) command from the system and sends that response back to the system.

This basic operation can be expanded in many ways because of the flexible command set of the ATECC508A.
For a complete explanation of the possible Cryptographic Operations check the Data Sheet (See the link in Chapter 6 )

 GPS Module with Embedded Antenna (Telit Jupiter SE868-A)

The Telit Jupiter SE868-A is a GPS Module designed to fully support GPS, QZSS, GLONASS and it is Galileo ready. It has an embedded SMT antenna and it is able to track GPS + GLONASS (and eventually Galileo) constellations simultaneously and to provide the position through the standard serial interface (UART).
The module software can increase the position accuracy by supporting:

  • Ephemeris file injection (A-GPS)
  • Satellite-Based Augmentation System (SBAS)

More information can be found on the relevant Data Sheet (See the link in Chapter 6 ).

Bluetooth Low Energy (Microchip RN4871)

The RN4871 is a small form factor, Bluetooth 4.2 Low-Energy module measuring just 9 x 11.5 x 2.1 mm. This fully-integrated module is designed for easy implementation into  a broad range of applications. Supporting the latest Bluetooth standard, it delivers up to 2.5x throughput improvement and more secure connections vs. Bluetooth 4.1 based products. Developers can easily interface to the device via a standard UART interface, available on most Microcontrollers and Processors.

 Characteristics
  • FCC Certified Yes
  • Min Temp Range -20C
  • Max Temp Range +70C
  • Op Voltage Min 1.9V
  • Op Voltage Max 3.6V

More information can be found on relevant Data Sheet (See the link in Chapter 6 ).
The module on the board is equipped with the firmware able to communicate with the ATMEL SAMD21 MCU.
A suggested App for Android is
B-BLE (https://play.google.com/store/apps/details?id=com.billy.billylightblue&hl=it)

32Kx8 Bits EEProm (AT24C256C)

The Atmel® AT24C256C provides 262,144-bits of Serial Electrically Erasable and  Programmable Read-Only Memory (EEPROM) organized as 32,768 words of 8 bits each.
The device’s cascading feature allows up to eight devices to share a common 2-wire bus.
The device is optimized for use in many industrial and commercial applications where low-power and low-voltage operations are essential
The device operates from 1.7V to 5.5V.
More information can be found on the relevant Data Sheet (See the link in Chapter 6 ).

 Characteristics
  • Low-voltage and Standard-voltage Operation ̶ VCC = 1.7V to 5.5V
  • 400kHz (1.7V) and 1MHz (2.5V, 2.7V, 5.0V) Compatibility
  • Write Protect Pin for Hardware Protection
  •  64-byte Page Write Mode ̶ Partial Page Writes Allowed
  • High Reliability ̶ Endurance: 1,000,000 Write Cycles ̶ Data Retention: 40 Years
EEprom Address

The EEPROM is mapped to the following I2C address 0x57

Board Interfaces and Connectors

AXEL ELETTRONICA MC27561 ASME Lion Board - Connector

Conn.PinDescriptionArduino pin labelDriven by
J41Digital I/O D8 / PWM—8MCU Port PA06
J42Digital I/O D9 / PWM—9MCU Port PA07
J43Digital I/O D10 / PWM SS—10MCU Port PA18
J44Digital I/O Dll / PWM MOSI—11MCU Port PA16
J45Digital I/O D12 / PWM MISO—12MCU Port PA19
J46Digital I/O D13 / PWM SCK—13MCU Port PA17
J47Ground pinGND
J48Analogue Reference (used by ADC)AREFMCU Port PA03
J4912C Interface SDASDAMCU Port PA22
J41012C Interface SCLSCLMCU Port PA23
151Digital I/O ATNATNMCU Port PB06
152IOREF
153ResetRESET
1543.3V
1555V
156Ground pinGND
157Ground pinGND
158External Power Supply InputVIN
J61Analog I/O AOAOMCU Port PA02
J62Analog I/O AlAlMCU Port PB08
J63Analog I/O A2A2MCU Port PB09
J64Analog I/O A3A3MCU Port PA04
J65Analog I/O A4A4MCU Port PA05
J66Analog I/O ASASMCU Port PB02
171Digital I/O DO / Seriall (RX)RX<-0MCU Port PAll
172Digital I/O D1 / Seriall (TX)TX->1MCU Port PA10
173Digital I/O D2 / PWM—2MCU Port PA14
174Digital I/O D3 / PWM—3MCU Port PA09
175Digital I/O D4 / PWM—4MCU Port PA08
176Digital I/O D5 / PWM—5MCU Port PA15
177Digital I/O D6 / PWM—6MCU Port PA20
178Digital I/O D7 / PWM—7MCU Port PA21

Table 4: Arduino Compatible Headers 

DescriptionDriven by
BLE TXDMCU Port PB16
BLE RXDMCU Port PB17
BLE RTSMCU Port PB22
BLE CTSMCU Port PB23
BLE P10I/O Expander GPIO4
BLE PllI/O Expander GPIO5
BLE P32I/O Expander GPIO6
BLE P33I/O Expander GP107
BLE RSTI/O Expander GPIO1

Table 5 BLE port description

DescriptionDriven by
LORA TXDMCU Port PB12
LORA RXDMCU Port PB13
LORA RTSMCU Port PB14
LORA CTSMCU Port PB15
LORA GPIOOMCU Port PB07
LORA GPIO1MCU Port PB10
LORA GPIO2MCU Port PB11
LORA RSTI/O Expander GPIOO

Table 6 LORA port description

DescriptionDriven by
GPS TXDMCU Port PAl2
GPS RXDMCU Port PA13
GPS RSTI/O Expander GPIO2
GPS FORCE ONI/O Expander GPIO3

Table 7 GPS/GNSS port description

Chapter 3 Mechanical Information

Main components layout

AXEL ELETTRONICA MC27561 ASME Lion Board - components layout

Mechanical Characteristics

The maximum length and width of the Smarteverything Lion PCB are 2.7 and 2.1 inches respectively, with the USB connectors, power jack and antenna extending beyond the former dimension.
Three screw holes allow the board to be attached to a surface or case.
Note that the distance between digital pins 7 and 8 is 160 mil (0.16″), not an even multiple of the 100 mil spacing of the other pins.
This makes the SmartEverything Lion fully compatible with most shields designed for the Uno, Diecimila or Duemilanove.

AXEL ELETTRONICA MC27561 ASME Lion Board - Dimensions

Chapter 4 Software Development
The following chapters provide an overview of how users can develop their software and run it on the ASME Lion board.
There are two main ways to develop a software, load and debug it on the card:

  • Using the Arduino IDE and Sketch Projects
  •  Using the Atmel Studio and Standard C/C++ language

When developing a software running on a microcontroller, having some tools to easily debug the code and fix what does not work as expected is really important.
The possibility to use an external debugger like the Atmel-ICE (http://www.atmel.com/tools/atatmel-ice.aspx) is available.

Chapter 5 Getting Started with Arduino IDE and Sketch Projects

Tools

The following tools are needed:

  • Arduino IDE (Release 1.6.4 or newer)
  •  USB cable
Setup the Environment

Download and install the Arduino IDE from the Arduino web site (See the link in Chapter 6 )
The first time you run the ArduinoIDE it is necessary to load the Arduino Zero & SmartEverything Core.
Click on the Tools Boards  Boards Manager… menu entry

AXEL ELETTRONICA MC27561 ASME Lion Board - Manager

The two steps of installation shall be done as follows:

  1. Select from the “Type” combo Arduino and choose Arduino SAMD Boards in order to install the core of the Arduino Zero.AXEL ELETTRONICA MC27561 ASME Lion Board - Core Installation
  2. Select from the “Type” combo Partner and choose the ARROW Boards in order to install the core of the SmartEverything.

AXEL ELETTRONICA MC27561 ASME Lion Board - SmartEverything

The installation procedure will automatically install all the necessary USB drives. Once the installation is completed, you will be able to connect the Board and start coding.
If the Driver installation process does not completed successfully, follow the steps described in Chapter 7 .

Compile the Example project

This procedure explains how to compile and download the code on the SmartEverything Lion board.
As every other Arduino board, the SmartEverything Lion has the basic examples code. To try those examples, just go to File->Examples and select one under the 01.Basics menu. AXEL ELETTRONICA MC27561 ASME Lion Board - Example

 Run the software

Verify the codeAXEL ELETTRONICA MC27561 ASME Lion Board - SmartEverything

Load the software on the Connect the SmartEverything Lion board. AXEL ELETTRONICA MC27561 ASME Lion Board - Upload

Importing the Lora SmartEverything Board Library

The SmartEverything Lion board will provide, a few days after its release on the market, some useful libraries to interface with some of its main components.
In order to include the Smart Everything library use the menu Sketch Include Library Manage Libraries. AXEL ELETTRONICA MC27561 ASME Lion Board - Manage

Once the Library Manager is started, you can filter the available libraries by writing SmartEverything, or the name of the component, in the right top text box, and then you can select the necessary library.

The procedure to download the other SmartEverything Lion libraries is identical. AXEL ELETTRONICA MC27561 ASME Lion Board - Manager 1

Another way to install the Library of the supported components is going to the GitHub repository and downloading the zip file.

AXEL ELETTRONICA MC27561 ASME Lion Board - Library

Once it is downloaded, go to the “include Library” menu and use the “Add . ZIP Library…item.

Official GitHub library repository

Here is the official repository where the zip file to download can be found:

Chapter 6 References and Useful Links

Data sheets
Tools
  • Arduino IDE
  • Atmel Studio
 Web Sites

Chapter 7 Troubleshooting

Driver installation problems

It can happen that the installation of the driver does not automatically complete successfully. The drivers to manage the COM Port are not properly installed and the device is reported as an Unknown Device.
If this happens, it is necessary to install the driver manually.
The correct drivers can be found in the following directory.
C:\Users\<login name>\AppData\Local\Arduino15\packages\Arrow\hardware\samd\<installed Rel>\drivers.

AXEL ELETTRONICA MC27561 ASME Lion Board - problems

ASME Lion User Guide
Ver. 1.3 – 11/02/2017

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals