Tuesday, 12 October 2021

End-to-End tinyML Audio Classification with the RP2040

This tutorial-style blog will be very useful for those who want to use machine learning to detect audio events from the surrounding environment. The author, Sandeep Mistry from Arm, uses Arm Cortex-M based microcontrollers, a Raspberry Pi Pico and a SparkFun MicroMod RP2040 Processor Board to walk through a TensorFlow based audio classification model to detect a fire alarm sound.


In this article, Sandeep demonstrates how an Arm Cortex-M based microcontroller can be used for local on-device machine learning to detect audio events from its surrounding environment. This is a tutorial-style article, and he’ll guide you through training a TensorFlow based audio classification model to detect a fire alarm sound. Have fun trying it out!


Are you planning to try it?

If you are going to do this tutorial on your own, you can use either the SparkFun MicroMod RP2040 Processor Board with the SparkFun MicroMod Machine Learning Carrier Board -OR- the Raspberry Pi Pico - both options are based on the RP2040 chip that Raspberry Pi released earlier this year.

If you use SparkFun MicroMod

If you choose to use the SparkFun MicroMod RP2040 Processor Board with the SparkFun MicroMod Machine Learning Carrier Board, you will need the following, along with a Phillips screwdriver. This option alleviates the need for breadboards, jumper wires, or soldering and has two MEMS microphones on board.

SparkFun MicroMod RP2040 Processor

SparkFun MicroMod RP2040 Processor

DEV-17720
$11.95
USB 2.0 Type-C Cable - 1 Meter

USB 2.0 Type-C Cable - 1 Meter

CAB-16905
$4.50
SparkFun MicroMod Machine Learning Carrier Board

SparkFun MicroMod Machine Learning Carrier Board

DEV-16400
$19.95
Pocket Screwdriver Set

Pocket Screwdriver Set

TOL-12891
$3.95
5

If you use Raspberry Pi Pico

If you choose to use the Pico, you will also need a breadboard, jumper wires, USB-B micro cable, and an Adafruit PDM MEMS Microphone Breakout.

Raspberry Pi Pico

Raspberry Pi Pico

DEV-17829
$4.00
2
Breadboard - Self-Adhesive (White)

Breadboard - Self-Adhesive (White)

PRT-12002
$4.95
42
USB micro-B Cable - 6 Foot

USB micro-B Cable - 6 Foot

CAB-10215
$4.95
13
Jumper Wires Premium 6" M/M - 20 AWG (10 Pack)

Jumper Wires Premium 6" M/M - 20 AWG (10 Pack)

PRT-11709
$5.95
2

comments | comment feed



No comments:

Post a Comment