Skip to content

embeddip/examples-esp32

Repository files navigation

Embedded Digital Image Processing with Microcontrollers: ESP32 Examples

Source repository: https://github.com/embeddip/examples-esp32

This repository contains ESP32 example sketches and support files for the book Embedded Digital Image Processing with Microcontrollers. It includes listing applications, Arduino sketches, board configuration, and local library files used by the examples.

Contents

  • apps/: listing applications from the book.
  • examples/: Arduino sketch directories used for testing and demonstration.
  • libraries/: local Arduino libraries required by the examples.
  • boards.fqbn: default Arduino board target.
  • arduino-cli.yaml: Arduino CLI configuration.
  • build_all_apps.sh: script for compiling all listing applications.

Requirements

  • Arduino CLI
  • ESP32 Arduino core
  • A supported ESP32 board
  • USB serial access to the board, usually /dev/ttyUSB0 on Linux

Install or update the board indexes:

arduino-cli --config-file arduino-cli.yaml core update-index

Install the default ESP32 core:

arduino-cli --config-file arduino-cli.yaml core install esp32:esp32

Build

Compile the current test sketch:

arduino-cli compile --config-file arduino-cli.yaml --fqbn "$(tr -d '\r\n' < boards.fqbn)" examples/mytest/

Build every listing in apps/:

./build_all_apps.sh

The generated .bin files are written to binaries/.

Upload

Upload the current test sketch:

arduino-cli upload --config-file arduino-cli.yaml --fqbn "$(tr -d '\r\n' < boards.fqbn)" --port /dev/ttyUSB0 examples/mytest/

Change /dev/ttyUSB0 if the board appears on a different serial port.

Board Configuration

The default board target is stored in boards.fqbn. To use another board, edit that file or set BOARD_FQBN when running the build script:

BOARD_FQBN="esp32:esp32:esp32:PSRAM=enabled" ./build_all_apps.sh

Some listings require PSRAM. Use a board and FQBN configuration that enables it when needed.

Related Repositories

About

Embedded Digital Image Processing with Microcontrollers: Applications on Arduino Boards

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors