Edge Impulse enables developers to create the next generation of intelligent device solutions with embedded machine learning. This repository contains the Edge Impulse firmware for Infineon PSoC62 BLE Pioneer Kit with E-ink Display kit. This device supports all of Edge Impulse's device features, including ingestion, remote management and inferencing.
This project supports:
- Data ingestion using the EdgeImpulse Studio
- Movement sampling from the Bosch BMI160 Inertial sensor on the EPD hat
- Audio sampling using the PDM Microphone on the EPD hat
- Temperature sampling using the Environmental sensor on the EPD hat
- Live inference with all sensors
- Sensor Fusion using Inertial and Environmental sensor together
- Storing samples on the external NOR Flash using the QSPI inteface
TODO:
- Migrate from shared MTB to local (All libraries must be provided in this code repository)
Project dependencies:
- PSoC6 io_retarget library for UART interface
- PSoC6 serial-flash library for QSPI interface
- PSoC6 I2C library for hardware-driven Master I2C interface
- BMI160 driver
- Install ModusToolbox SDK and IDE
- Toolchain in the SDK is GNU Arm® embedded compiler v9.3.1
- Development board: PSoC 62 BLE pioneer kit (
CY8CKIT-062-BLE
) - Evaluation board: Infineon E-ink Display kit (
CY8CKIT-028-EPD
)
-
Install ModusToolbox
-
Clone this repository.
-
Open terminal and go to the directory with cloned project
-
Run the following commands
make getlibs make build
-
Build docker image
docker build -t edge-impulse-infineon .
-
Build firmware
docker run --rm -v $PWD:/app edge-impulse-infineon
Infineon provides extensive documentation, with screenshots, about how to use the ModusToolbox IDE. Topics covered include:
- Importing a project
- Building the project
- Flashing the project to the board
Please visit this link for the Infineon ModusToolbox IDE guide
-
After building the firmware (see steps above) connect the board and run
make program
-
Install CyProgrammer
-
Connect the board and run
CyProgrammer
-
Select a probe/kit
-
Select compiled hex file
-
Connect to the board
-
Program the firmware
-
After successful flashing, you should see a LED blinking patter
The current firmware version can not sample at 8kHz. We have put request to the engineering team at Infineon for clarification of the PDM setings.
Audio sampling at 16 and 32kHz works and the audio quality is high.