h10 technical documentation Buy

Getting started with Berta H10

This article illustrates step-by-step how to getting started with Berta-H10 fast prototyping systems

Hardware requested:

Software requested:

  • A Debian or Ubuntu Linux distribution
  • An ASCII editor

Charge the hybrid supercap

On Berta-H10 board is mounted a 50 Farad Hybrid Supercap. The J11 jumper detach this capacitor to the circuitry to avoid discharging it during shipping or storage.

Probably this capacitor was already charged when you received the board but could be a good thing to charge it before starting with the in-circuit programming.

Plug the solar panel to the J7 connector the short close the J11 supercap jumper and put the board inside a light source.

Install the H10 Software Development Kit on your Linux PC

The software environment of Berta-H10 is based on C language and RIOT Operative Systems. All the software you need is Open Source and available for free from Internet.

In this article we'll explain how to install it on a Ubuntu 22 Linux PC but probably it can be used on other distributions.

Install some packages needed for compilation:

sudo apt update
sudo apt -y install build-essential gcc-arm-none-eabi libudev-dev python3-serial git

Create a base folder:

mkdir lora3a-projects
cd lora3a-projects

Download the RIOT sources from the official repository:

git clone --depth 1 https://github.com/RIOT-OS/RIOT

Download the Acme Systems H10 specific sources:

Basic sensors handling example code :

git clone --depth 1 https://github.com/lora3a/lora3a-boards

LoRa based sensors example code :

git clone --depth 1 https://github.com/lora3a/demo_acme_dev

Try to compile a code example:

cd lora3a-boards/examples/sensor-node
make

In-circuit programming

The Microchip Sam R34/35 chip mounted on H10 board use the ARM Serial Wire Debug (SWD) standard for programming, test and debugging.

This standard is based on two wires called SWCLK and SWDIO. These signals are available on Berta-H10 J12 PROG connector as shown below:

Due to the large diffusion of the SWD stardard a lot of hardware solutions are available. Here is a list of ones we tried:

Debug port

Berta H10 has a serial debug port used by RIOT to send the debug messages. To read the messages on this port you need and USB to Serial interface like the USB to debug port adapter and a serial terminal emulator configured at 115200,8,N,1.

If you are using a Raspberry Pi, a FOX Board D27 or a Linux Debian/Ubuntu PC you could install tio by typing:

sudo apt update
sudo apt install tio

Then insert the USB to serial adapter and type:

tio -m INLCRNL /dev/ttyUSB0

[tio 19:17:08] tio v1.32
[tio 19:17:08] Press ctrl-t q to quit
[tio 19:17:08] Connected

Turn on the Berta H10 and you will start to receive the debug messages send by the Berta-H10:

Enable ACME Sensor 0 as MODE_I2C
main(): This is RIOT! (Version: 2023.07)
Periodic task.
[BOARD vcc] READ:  2985
[BOARD vpanel] READ:     2
[SENSOR Data] Temperature : 24.28, Humidity :  55.41
SIGNATURE: 0224, NODE_CLASS: 001, CPUID: 3BBBB1AC46395351202020310D0D0E02, VCC: 2985, VPANEL: 0002, BOOST: 1, POWER: 014, SLEEP: 00010, TEMP: 097C, HUM: 15A5

SIGNATURE: 00E0, NODE_CLASS: 01, CPUID: 3BBBB1AC46395351202020310D0D0E02, VCC: 0BA9, VPANEL: 0002, BOOST: 1, POWER: 0E, SLEEP: 000A, TEMP: 02428, HUM: 05541

E000013BBBB1AC46395351202020310D0D0E0200A90B02000E010A007C09A515
boost=1 txpower=14
Lora transmit packet.
Entering backup mode.
Enable ACME Sensor 0 as MODE_I2C
main(): This is RIOT! (Version: 2023.07)
Periodic task.
[BOARD vcc] READ:  2985
[BOARD vpanel] READ:     2
[SENSOR Data] Temperature : 24.41, Humidity :  54.10
SIGNATURE: 0224, NODE_CLASS: 001, CPUID: 3BBBB1AC46395351202020310D0D0E02, VCC: 2985, VPANEL: 0002, BOOST: 1, POWER: 014, SLEEP: 00010, TEMP: 0988, HUM: 1521

SIGNATURE: 00E0, NODE_CLASS: 01, CPUID: 3BBBB1AC46395351202020310D0D0E02, VCC: 0BA9, VPANEL: 0002, BOOST: 1, POWER: 0E, SLEEP: 000A, TEMP: 02440, HUM: 05409

E000013BBBB1AC46395351202020310D0D0E0200A90B02000E010A0088092115
boost=1 txpower=14
Lora transmit packet.
Entering backup mode.

To exit from tio type ctrl-t q

Related products

Features Index Buy

Battery-free energy harvesting solar powered LoRa sensor
  • Low power consumption:
    Stand-by mode 4.29 µW
    Transmit mode 66 mW
  • Energy harvesting from in-door ambient light (Just 50 lux)
  • Energy storage based on hybrid supercap
  • Open source RIOT OS
  • Ready for LoRa and LoRaWan
H10

Features Index Buy

Energy harvesting LoRa module for battery-free custom applications.
  • CPU Microchip SAM R3x ultra-low power LoRa® Sub-GHz SiP
  • ARM Cortex-M0
  • Battery-free design
  • Solar energy harvesting circuitry for indoor and outdoor applications
  • Open source firmware based on RIOT the Real Time Operating System for IoT


Home page h10 technical documentation Buy