The SCHEMATIC of the board is available in Schematic/AIoT-001-Jun2621-SCH.pdf
The instruction of Connecting to External Sensors/Devices is available in doc/UCA-AIoT-ExternalConnectivity-rev10-Nov2622.pdf
- Download and install the Arduino IDE (at least version v1.8.13)
- Start the Arduino IDE
- Go to Preferences
- Copy & Add the following JSON URL to your "Additional Board Manager URL"
https://fabienferrero.github.io/ArduinoBoardManagerJSON/package_uca-dkaiot_index.json
- Open the Boards Manager from the Tools -> Board menu and install "UCA-DKAIoT by FabienFerrero"
- Select your DKAIoT board from the Tools -> Board menu
- Config the approriate settings in Tools menu, and upload your source code.
All examples & libraries used in this reposistory are integrated into the Arduino Core. Make sure that the installed core version is latest to be compatible with all examples in this repository!
Attention: If you have problems in uploading source code to the board (e.g. Uploading failed, COM Port doesn't listed, etc.), refer to MCU Bootloader Mode section in FAQ.
- Go to ~/.arduino15/packages/uca-aiot/hardware/stm32l4/
<VERSION>
/drivers/linux/ - sudo cp *.rules /etc/udev/rules.d
- reboot
Attention: If you have problems in compiling source code (i.e. Permission denied), refer to Linux / MacOS file permission for dfu-utils section in FAQ.
- Download Zadig
- Plugin STM32L4 board and toggle the RESET button while holding down the BOOT button
- Let Windows finish searching for drivers
- Start
Zadig
- Select
Options -> List All Devices
- Select
STM32 BOOTLOADER
from the device dropdown - Select
WinUSB (v6.1.7600.16385)
as new driver - Click
Replace Driver
After installing the core, select the DKAIoT board by Tools > Board > UCA-DKAIoT Boards > DKAIoT. Examples will be available in File > Examples > ELLIOT_Examples > ...
Select the board | Examples |
---|---|
For more information on the examples:
- dkaiot_test_w_LacunaSpace
The board has been successfully tested with several SX1262 library :
- LoRaWAN Mac protocol: FabienFerrero/basicmac forked from: LacunaSpace/basicmac
Warning: Add the following line in the code to make it work.
#define ARDUINO_STM32L4_LS200
- LoRa Physical layer: StuartsProjects/SX12XX-LoRa
Warning: SPI PINS for SX1262 must be defined
cfg.nssPin = E22_NSS;
cfg.resetPin = E22_NRST;
cfg.antennaSwitchPin = E22_RXEN;
cfg.busyPin = E22_BUSY;
cfg.dio1Pin = E22_DIO1;