Overview This course is a complete reworking of the Embedded Systems course first offered at the University of Cape Coast in 2017. It uses Python 3 and ESP32 WeMo...
Understanding the LSM6DS3 measurement data Static measurements Before trying to understand movement we simply read out accelerometer and gyroscope data over a ce...
The Magic Wand Example Introduction The magic wand example shows how to detect gestures using an accelerometer. Different types of accelerometers are easily avai...
The Hardware The CPU card The ESP8266 CPU card has the following pinouts: There are two different ESP32 CPU cards available for the WeMos D1 mini bus. The first ...
The Magic Wand Example In the Magic Wand example a "magic wand" is used to paint digits into the air. An accelerometer and gyroscope is used to record the movemen...
Magnetometer and Compass Introduction Magnetometers measure magnetic field. The electronic devices available are very sensitive, and can measure fields down to t...
The Hello World example as provided by the tflite micro repository The TensorFlowLite Micro repository provides the code * creating the hello world neural netw...
The ESP32 S3 FN8 CPU board This page shows the hardware connections of the onboard devices provided be the ESP32 S3 FN8 CPU board. First of all, this is an ESP32 ...
The SHT30 I2C Temperature and Humidity Sensor Introduction The SHT30 is a temperature and humidity sensor that communicates over the I2C bus. Typical accuracy fo...
TinyML Introduction Machine learning (ML) algorithms usually work on huge datasets and require an enormous amount of resources. On the other hand many mobile pho...
The ESP IDF version The esp idf version of hello world is almost identical to the Arduino version except the way it built. We must first tell the idf.py that we a...
The Hello World example Introduction The Hello World example demonstrates a regression model implemented as a neural network with an input layer of a single scal...
The Arduino hello world example For the Arduino SDK (Software Development Kit) you can install the TensorFlow_ESP32 library, which does not only contain the Tenso...
The TinyML examples written in C The TinyML examples in C , ported to the ESP32 can be found at https://github.com/espressif/tflite micro esp examples/tree/maste...
Lecture 3: Switches CSC 321: Embedded Sysytem First Semester 2020/2021 Switches A Switch is a device which is designed to interrupt the current flow of electrons...
The tinyML Hello World example How does tinyML hello world work? The program takes a value between 0 and 2 Pi; and outputs the corresponding sine value. Of cours...
Person detection withMicroPython Even though the final goal of this demo is to get images from a camera and to decide on the spot if there is a person in sight, ...
Running the TensorFlow examples in MicroPython The MicroPython interface to TensorFlow The MicroPython interface to TensorFlow is implemented as a module writte...
Running the TensorFlow examples in MicroPython The MicroPython interface to TensorFlow The MicroPython interface to TensorFlow is implemented as a module writte...
The TinyML examples written in C The TinyML examples in C , ported to the ESP32 can be found at https://github.com/espressif/tflite micro esp examples/tree/maste...
BlueTooth Low Energy (BLE) The ESP32 provides a BlueTooth interface and MicroPython implements a low level interface tto BlueTooth Low Energy or BLE. Some applica...
Preparing the PC for Tensorflow Setting up a virtual Python environment The procedure is described in https://www.freecodecamp.org/news/virtualenv with virtualen...
A detailed Analysis of the hello_world_test.cc program Below the license header the program has a number of include directives giving access to the tflite micro l...
TinyML on the esp32s3 wroom Introduction The esp32s3 wroom is a very cheap esp32s3 board with 8MB of octal PSRAM and an integrated OV2640 2 MPixel camera. Becaus...
The tinyML examples for the ESP32 written in C All tinyML examples consist of two parts: * Creating of the model * The application on the micro controller ...
The ESP32 CAM module Introduction The ESP32 CAM module is dedicated to camera readout. It provides * an ESP32 S CPU * a 2 mega pixel OV2640 camera and its ...
Dust Sensors Introduction In order to measure air pollution dust sensors play an important role. They are often based on an optical system where light, scattered...
The microdot web server framework In contrast to picoweb, microdot supplies extensive documentation. It is a good idea to read this documentation carefully and co...
A WEB Server and the HTTP Protocol Exercise 1: Write a Hello World WEB Server Write a simplistic WEB server, serving a single WEB page. This server is very simil...
The WEB server When writing a WEB server for your sensors and actuators you have 3 possible options: * Write the WEB server yourself from scratch: Basic WEB ...
Writing a WEB server from scratch We do not want to re invent the wheel, and we will use a WEB server framework already prepared for us by professional programmer...
The PS2 game controller The PS2 game controller can be used to remotely control our robot cars, robotic arms or other devices. There is a project showing how this...
Connecting to WiFi Exercise 1: Verify the available access points before the activation of the ESP32 WiFi.Study the MicroPython documentation on the WLAN class. ...
I2S and sound Introduction In order to play audio files we need: * the audio file itself, which we expect to be in uncompressed wav format * a file system ...
Preparing a custom version of MicroPython with TensorFlow Introduction For work with ML algorithms I use the esp32 cam module because it is small, cheap and ...
Motors Introduction We have 3 different types of motors in our kit: * DC motor: Used for continuous movement in either forward or backward direction and at di...
Exercises on dust sensors Exercise 1: The Plantower sensor The Plantower sensor comes with a flat cable with alternating red and black color. I soldered a female...
Accelerometer and Gyroscope Introduction Accelerometers measure the acceleration along the 3 geometrical axis, usually in units of g (the gravitational accelerat...
Moisture sensors Different types of sensors There are two different types of moisture sensors: * resistive sensors, measuring the resistance between two elect...
TCS3200 Color Sensor Introduction The TCS3200 color sensor comes on PCBs with slightly different layout: The main difference between these modules is tha...
The Sharp GP2Y1010AU0F sensor Connections The circuit diagram below is taken from the Sharp GP2Y1010AU data sheet. Here is the connection table: GP2Y1010AU0F ...
Exercise 5: The I2C bus and the SHT30 Temperature and Humidity Sensor Introduction While the DHT11 uses a proprietary protocol the SHT30 make use of a standardiz...
Exercise 3: Switches Introduction Switches exist in various incarnations. There are the simple mechanical switches: on/off or push button switches but there are ...
The Plantower PMS5003 The PMS5003 uses a serial interface with a baud rate of 9600 Baud. Here are the pin descriptions from the data sheet: The pinout table for t...
The Shinyei PPD42NS sensor This sensor emits a low occupancy time signal where the relative time the signal is in low state is measured. The connections as are fo...
The virtual world example Introduction The virtual world example uses a TCS3200 color sensor and a HC SR04 ultrasonic distance meter. When a colored paper is pla...