ArduinoCore-stm32l0 is targeted at ultra low power scenarios, sensor hubs, with LoRaWAN connectivity.
This repository is here to add to original one CH2i custom boards
- CH2i various boards on Murata L082CZ chip
CH2i boards are based on Tlera Corp Gnat boards but we added some features such as:
- RGB LED pins defined with
LED_RED
,LED_GRN
,LED_BLU
- DS18B20 GPIO definition defined
ONEWIREPWR
(Pin to power DS18B20, usually pin connected to VDD of the DS18B20),ONEWIREBUS
(DS_DQ with 4K7 pullup) - Battery Reading defined by
BAT_ENABLE
(Pin to enable battery reading),BAT_ANALOG
(pin to read analog value)
When selected board you can select type by a new submenu called Board Type, and the following symbol will also be defined
- V1.0
BOARD_V10
- V1.0a
BOARD_V10a
- ED V1.0
BOARD_ED_V10
You can see these boards pinout definition in the file variant.h
Boards can be identified at compilation by the defined symbol ARDUINO_STM32L0_CH2I_MURATA
and version with also the following symbols
#if defined (ARDUINO_STM32L0_CH2I_MURATA)
#if defined (BOARD_V10)
// Code
#elif defined (BOARD_V10a)
// Code
#elif defined (BOARD_ED_V10)
// Code
#endif
#endif
CH2i private board called Sentinel that is based on Tlera Corp but we added some features such as:
- RGB LED dedicated IC chip controller by I2C
- GPS UBLOX M8Q
- Magnetometer LIS2MDL
- Accelerometer BM400
- SPI Flash allowing DOSFS
- Quectel modem M66
- Solar harvesting dedicated chip
- Battery Reading defined by
BAT_ENABLE
(Pin to enable battery reading),BAT_ANALOG
(pin to read analog value)
When selected board CH2i Sentinel L082CZ
You can see these boards pinout definition in the file variant.h
Boards can be identified at compilation by the defined symbol ARDUINO_STM32L0_CH2I_MURATA
and version with also the following symbols
#if defined (ARDUINO_STM32L0_CH2I_MURATA)
#if defined (BOARD_SENTINEL_V10)
// Code
#endif
#endif
Follow installation for original repository
Please to this step each time you update Tlera Corp Board from Arduino Board Manager
Donwload ZIP file from this repo folder using Clone or Download
button then select Download ZIP and decompress the folder.
- Locate were the original repository was stored by Arduino Board Manager
- OS X:
~/Library/Arduino15/packages/TleraCorp/hardware/stm32l0/0.0.10
(see below) - Linux:
~/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.10
- Windows:
~/AppData/Local/Arduino15/packages/TleraCorp/hardware/stm32l0/0.0.10
- Extract the ZIP file content (
ArduinoCore-stm32l0-master
) into thehardware/stm32l0/0.0.10/
folder overwriting all files when asked
OS X copying whole folder on existing folder with finder will erase original folder contents so you need to go on each archive folder and copy files into destination folder, this will add new files, replace other but not delete existing ones.
Or you can use the following terminal command assuming you exracted zip file into your Download
folder
ditto -V Downloads/ArduinoCore-stm32l0-master/ ~/Library/Arduino15/packages/TleraCorp/hardware/stm32l0/0.0.10/
- Restart the Arduino IDE
Sometimes a faulty sketch can render the normal USB Serial based integration into the Arduindo IDE not working. In this case plugin the STM32L0 board and toggle the RESET button while holding down the BOOT button and program a known to be working sketch to go ack to a working USB Serial setup.
This fork is based GrumpyOldPizza Arduino STM32L0 This core is based on and compatible with the Arduino SAMD Core