> ## Documentation Index
> Fetch the complete documentation index at: https://docs.edgeimpulse.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ambiq Apollo5 evaluation boards

> Set up Ambiq Apollo5 evaluation boards for audio and image data collection, training, testing, and deployment.

Introducing [Apollo510 System-on-Chip (SoC)](https://ambiq.com/apollo510/), a cutting-edge solution engineered to revolutionize the landscape of ultra-low-power performance in conventional edge and AI applications. Leveraging Ambiq's advanced Subthreshold Power Optimized Technology (SPOT®), Apollo510 delivers exceptional energy efficiency, operating on minimal power while providing unparalleled performance. Equipped with an Arm® Cortex®-M55 application processor running at up to 250MHz, this SoC enables efficient and high-performance computing, empowering developers to design innovative devices with ease.

Apollo510 incorporates advanced security features in secureSPOT® 3.0 with TrustZone® technology, such as secure boot and secure firmware updates, ensuring the integrity and confidentiality of data transmitted and processed by connected devices, making it an ideal choice for secure deployment in bodyworn and ambient AI applications. Designed to meet the evolving needs of conventional edge and AI devices, the Apollo510 represents a significant leap forward in energy efficiency, performance, and security. With its unparalleled combination of ultra-low power operation, high-performance computing capabilities, and robust security features, this wireless SoC is designed to drive innovation and enable the next generation of smart and connected devices.

**Features**

* Up to 250 MHz Arm Cortex-M55 application processor with turboSPOT® and Helium™ technology
* Enhanced memory performance with 64KB I-Cache and 64KB D-Cache, 3.75MB of system RAM, and 4MB of embedded non-volatile memory for code/data
* Ultra-low power ADC and stereo digital microphone PDM interfaces for truly always-on voice
* High-fidelity telco-quality audio
* High-speed USB 2.0
* Wide range of integrated sensor interfaces including ADC, SPI, I²C, and UART

![Ambiq Apollo510 system-on-chip package](https://mintcdn.com/edgeimpulse/yFhUTvBmotQWHOGx/.assets/images/ambiq/ambiq-apollo5-SoC.png?fit=max\&auto=format\&n=yFhUTvBmotQWHOGx\&q=85\&s=6e182af32b419bb448ef8f4362523814)

Ambiq Apollo5 SoC

## Deployment options

> [accordion] Ambiq Apollo510 EVB firmware
>
> A binary containing both the Edge Impulse data acquisition client and your full impulse.

## Installing dependencies

To set this device up in Edge Impulse, you will need to install the following software:

1. [Edge Impulse CLI](https://docs.edgeimpulse.com/tools/clis/edge-impulse-cli/installation.md)
2. [Segger JLink](https://www.segger.com/downloads/jlink/)

> [!WARNING]
>
> **Problems installing the CLI?**
>
> See the [Installation and troubleshooting](https://docs.edgeimpulse.com/tools/clis/edge-impulse-cli/installation.md) guide.

### Connecting the Apollo 5 Audio Add-on Board (Models with Audio Input Only)

This step is only needed when using models requiring microphone input, such as the example below. Skip this section if you are testing other models that do not need audio input.

Connect the microphone board to the Apollo510-EVB as shown below.

![Apollo510 evaluation board connected to a PDM microphone board](https://mintcdn.com/edgeimpulse/yFhUTvBmotQWHOGx/.assets/images/ambiq/ambiq-apollo5-plus-PDM.png?fit=max\&auto=format\&n=yFhUTvBmotQWHOGx\&q=85\&s=1947dec615068a1248af65ca66250e93)

Apollo510-EVB With Microphone

### Connecting an ArduCam Mega 5MP SPI

This step is only needed when using models requiring camera input. Skip this section if you are testing other models that do not need camera input.

The [ArduCam Mega 5MP SPI](https://www.arducam.com/product/presale-mega-5mp-color-rolling-shutter-camera-module-with-autofocus-lens-for-any-microcontroller/) connects to the Apollo510-EVB pins as shown in the table below:

| Camera Pin | EVB Pin |
| - | - |
| GND | Any EVB GND |
| 5V/VDD | Any EVB 5V |
| SCK | Pin 47 |
| MISO | Pin 49 |
| MOSI | Pin 48 |
| CS | Pin 60 |

![ArduCam Mega 5MP SPI camera wired to the Apollo510 evaluation board](https://mintcdn.com/edgeimpulse/yFhUTvBmotQWHOGx/.assets/images/ambiq/ambiq-apollo5-plus-arducam-5mp-spi.png?fit=max\&auto=format\&n=yFhUTvBmotQWHOGx\&q=85\&s=ac5f518d6d9d2eec8f1629131bcd7cfd)

ArduCam connected

> [!WARNING]
>
> **The wiring harness provided with the camera can be sensitive, so pin jumpers or another wiring harness may help**

### Flashing pre-built firmware

Pre-built image with only audio support and "Hello World" detector example [here](https://cdn.edgeimpulse.com/build-system/firmware-ambiq-apollo510-audio.zip)

Get started by extracting the archive and choose the appropriate script for your system architecture to flash the firmware:

![Terminal window running the Apollo5 firmware flashing script](https://mintcdn.com/edgeimpulse/yFhUTvBmotQWHOGx/.assets/images/ambiq/ambiq-apollo5-flash.png?fit=max\&auto=format\&n=yFhUTvBmotQWHOGx\&q=85\&s=dbd6b6444c8bcb6f83ada26480584e5a)

Flashing new firmware

## Connecting to Edge Impulse

### Using the daemon

From a command prompt or terminal, run:

```
edge-impulse-daemon
```

This will start a wizard which will ask you to log in and choose an Edge Impulse project. If you want to switch projects run the command with `--clean`.

Alternatively, you can access the project API Key as shown below by navigating to the **Dashboard** section on the left pane of your Studio project and select the **Keys** tab, then click the copy/paste icon next to the API Key to copy the entire text to your clipboard, then run:

```
edge-impulse-daemon --api-key [paste your key here]
```

![Project dashboard Keys tab with the API key copy control highlighted](https://mintcdn.com/edgeimpulse/U4x1b15m-R6msMsX/.assets/images/API-Key-annotated.png?fit=max\&auto=format\&n=U4x1b15m-R6msMsX\&q=85\&s=e347035d11c0117f84244ec5badba18a)

edge-impulse-api-key

### Connecting to Studio

Run the `edge-impulse-daemon` and connect to your project, you will be prompted to name your device:

![Terminal wizard connecting the Apollo5 board to an Edge Impulse project](https://mintcdn.com/edgeimpulse/yFhUTvBmotQWHOGx/.assets/images/ambiq/ambiq-apollo5-daemon-connect.png?fit=max\&auto=format\&n=yFhUTvBmotQWHOGx\&q=85\&s=0d431a13dc7160bc4f1dd2d935bdc151)

Connecting to Edge Impulse.

That's all! Your device is now connected to Edge Impulse. To verify this, go to [your Edge Impulse project](https://studio.edgeimpulse.com/studio/profile/projects), and click **Devices**. The device will be listed here.

![Devices page listing the connected Apollo5 evaluation board](https://mintcdn.com/edgeimpulse/yFhUTvBmotQWHOGx/.assets/images/ambiq/ambiq-apollo5-device-connected.png?fit=max\&auto=format\&n=yFhUTvBmotQWHOGx\&q=85\&s=b830ebb3ad89f7044989ff38a02b56cd)

Device connected to Edge Impulse.

### Collecting data

#### Audio

With the device connected to Studio, you can use it to collect audio data up to 5 seconds in length for training and testing your model. Navigate to the Data acquisition tab and start collecting samples:

![Data acquisition page configured to collect an audio sample](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-sample-audio.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=5c760035f115dd604150708d84078a16)

How to collect an audio sample

Daemon output during sampling:

![Terminal output while collecting an audio sample from the Apollo5 board](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-daemon-sample.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=9c9a878fb7c75bb402e8ded339450a67)

Collecting an audio sample

![Audio sample view with waveform collected from the Apollo5 board](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-audio-sample.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=d281a50f3a42f10116e74708af05e25b)

Example sample

##### Video

![Data acquisition page configured to collect an image sample](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-camera-sample.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=ff5356f702535662915934f0846529a4)

How to collect an image sample

Sampling images:

![Camera feed frames being ingested from the Apollo5 board](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-camera-ingest.gif?s=215354109424eec9331b87b928eede8d)

Collecting an image sample

Three supported sizes 96x96, 128x128, 160x160:

![Image sample previews collected at the supported camera sizes](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-samples-camera.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=38e4e012d39d96981d1025509bc09729)

Three different options

## Next steps: building a machine learning model

With everything set up you can now build your first machine learning model with these tutorials:

* [Recognizing sounds from audio](https://docs.edgeimpulse.com/tutorials/end-to-end/sound-recognition.md)
* [Keyword spotting](https://docs.edgeimpulse.com/tutorials/end-to-end/keyword-spotting.md)
* [Detecting objects with FOMO](https://docs.edgeimpulse.com/tutorials/end-to-end/object-detection-centroids.md)

### Example project

Start by going to [your Studio projects](https://studio.edgeimpulse.com/studio/profile/projects) then create a new project and navigate to the `Create impulse` section of `Impulse design`, at which point you will be prompted to select your target, choose the Apollo5:

![Create impulse page with Apollo5 selected as the target hardware](https://mintcdn.com/edgeimpulse/yFhUTvBmotQWHOGx/.assets/images/ambiq/ambiq-apollo5-target-select.png?fit=max\&auto=format\&n=yFhUTvBmotQWHOGx\&q=85\&s=b491818fffa66deed56ae86696472c82)

Choosing target hardware

Then add the DSP block:

![Impulse design page with an audio processing block added](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-add-dsp.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=ed270af68819e601cbfb611d27249525)

DSP

Then the keyword spotting learn block:

![Impulse design page with a keyword spotting learning block added](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-add-learn.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=73defab8d031043913a2ec5aa0d5b53f)

KWS

And finally save the impulse:

![Saved impulse showing audio input, processing, and keyword spotting blocks](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-impulse.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=6a7bb83f0fb393833bd7ed484de4d4a5)

Saving it all

#### Processing

Now select the DSP block:

![Impulse design sidebar with the DSP block selected](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-dsp-select.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=caa0c8ff9ba6726c09d1c4554a5a1180)

Select DSP

And go to `Generate features`:

![Generate features page for the Apollo5 example project](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-dsp-gen.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=388b6bc572388f53995cabc4a8fdcb95)

Generate features

Click the button and wait for the job to finish, when it does you'll see something like this:

![Feature explorer showing generated DSP features for the Apollo5 example project](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-dsp.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=2e1190ec04db2962752d61d257f6b28a)

DSP complete

#### Training

Select the learning block:

![Impulse design sidebar with the learning block selected](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-train-select.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=bce356e7c14437640f3907fa339dd367)

Select learning block

Then click `Save & train` and you'll eventually see an output like this:

![Training output for the Apollo5 keyword spotting model](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-train.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=507d4d42a0a40b126d4384d69d3808c7)

Training

#### Testing

Go to the `Model testing` section and enable int8 testing:

![Model testing page with int8 testing enabled](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-test-select.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=283638412aa476a040dc99f00e37649e)

Select int8 testing

And run the test:

![Model testing results for the trained Apollo5 model](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-test.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=eca51d0ddf8019a3536b1fb26f26ef9e)

Test results

#### Deploying

Navigate to the `Deployment` section and choose the **Apollo 5**:

![Deployment page with Apollo5 selected](https://mintcdn.com/edgeimpulse/yFhUTvBmotQWHOGx/.assets/images/ambiq/ambiq-apollo5-deploy-select.png?fit=max\&auto=format\&n=yFhUTvBmotQWHOGx\&q=85\&s=4dd98dcada3b907a72f1014b08ef3d89)

Selecting the Apollo5

Now click `Build` and wait for the job to finish, when it does a zip archive will be downloaded to your computer.

#### Flashing

See the previous section on flashing the board.

#### Running the impulse

You can run your impulse by using `edge-impulse-run-impulse`:

![Terminal output from edge-impulse-run-impulse on the Apollo5 board](https://mintcdn.com/edgeimpulse/mgw9p71KrE70NXBr/.assets/images/ambiq/ambiq-apollo4-run-impulse.png?fit=max\&auto=format\&n=mgw9p71KrE70NXBr\&q=85\&s=642d5b0989194ac2b09176ff336bf770)

Running the impulse

## Troubleshooting

If you have problems with the flashing script make sure you are using USB cables with data and not just power-only cables.

Reach out to us on the [forum](https://forum.edgeimpulse.com/) and have fun making machine learning models on the [Apollo510-EVB](https://ambiq.com/apollo510/) from Ambiq!
