The microdot web server framework In contrast to picoweb , microdot supplies extensive documentation. It is a good idea to read this documentation carefully and...
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 similar...
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 server...
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 programmers...
This is a complete re work of the Embedded systems course, given at the University of Cape Coast in 2017. While the original course was based on the C language we...
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 showing how this can be done...
Connecting to WiFi Exercise 1: Verify the available access points before the activation of the ESP32 WiFi.Study the documentation on the WLAN class. Configure...
TinyML on the esp32 cam Introduction The esp32 cam is a very cheap esp32 board with 4MB PSRAM and an integrated OV2640 2 MPixel camera. Because of these features...
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 from...
TinyML Introduction Machine learning (ML) algorithms usually work on huge datasets and require an enormous amount of resources. On the other hand many mobile phone...
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 has...
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 different...
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 acceleration...
Magnetometer and Compass Introduction Magnetometers measure magnetic field. The electronic devices available are very sensitive, and can measure fields down to the...
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 card...
Moisture sensors Different types of sensors There are two different types of moisture sensors: resistive sensors, measuring the resistance between two electrodes...
TCS3200 Color Sensor Introduction The TCS3200 color sensor comes on PCBs with slightly different layout: The main difference between these modules is that...
The Magic Wand Example Introduction The magic wand example shows how to detect gestures using an accelerometer. Different types of accelerometers are easily available...
The Sharp GP2Y1010AU0F sensor Connections The circuit diagram below is taken from the GP2Y1010AU data sheet. Here is the connection table: GP2Y1010AU0F WeMos...
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 standardized...
The SHT30 I2C Temperature and Humidity Sensor Introduction The SHT30 is a temperature and humidity sensor that communicates over the I2C bus. Typical accuracy for...
Exercise 3: Switches Introduction Switches exist in various incarnations. There are the simple mechanical switches: on/off or push button switches but there are also...
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 the...
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 follows...
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 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 placed...
The HC SR04 ultrasonic distance meter The emits an ultrasonic sound wave and measures the time it takes to travel to a target and back. Knowing that sound waves travel...
GUI programming with LVGL Introduction Very often, the microcontroller part of an IoT project allows user interaction only though the network connection, e.g. through...
Motor exercises Introduction We have 3 types of motors that are used for different purposes and controlled in different ways: DC motor used in continuous movement...
People Detection Introduction In this example we use a pre trained model to find out if a person is in sight of the camera, installed on our esp32 cam board. Before...
Preparing the PC for Tensorflow Setting up a virtual Python environment The procedure is described in https://www.freecodecamp.org/news/virtualenv with virtualenvwrapper...
Wake word detection Introduction There are many examples of speech control devices in today`s homes, Amazon`s Alexa being a prominent example. These devices wait...
Course on Internet of Things Exercises Session 1: Introductory remarks: The scripts we are going to develop during this exercise session do not depend on any system...
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 scalar...
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 interface...
IoT Course English Web Preferences The following settings are web preferences of the IoT Course English web. These preferences override the site level preferences...
Solutions to the Exercise 3: Switches Exercise 1: This is very similar to switching a LED on or off. Again a single GPIO line is used. This time however the pin in...
BMP180, the temperature and barometric pressure sensor The BMP180 The BMP180 is an I2C sensor by Bosch Sensortec, measuring the ambient temperature and the barometric...
Accessing the Python interpreter MicroPython MicroPython implements the Python 3.4 syntax. It is Open Source and can be downloaded from its GitHub repository . There...
Exercise 9: ADC and DAC Introduction The ESP32 comes with two 12 bit ADCs and two 8 bit DACs. In this exercise we will see how to use them and what their limitations...
Analogue to Digital (ADC) and Digital to Analogue (DAC) conversion Introduction The ESP32 has two 12 bit SAR (Successive Approximation Register) Analogue to Digital...
LEDs and NeoPixel Introduction The ESP32 has 2 LEDs on board. The first one indicates power while the second one is user programmable. The user programmable built...
Lecture 4: DHT11 Temperature and Humidity Sensor CSC 321: Embedded Sysytem First Semester 2020/2021 The DHT11 PINOUT: The DHT11 has only 3 pins: Vcc...
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...
Virtual Instruments Introduction Measurement instruments like multi meters, pulse generators or oscilloscopes can be rather costly and the requirements for the IoT...
Web Notification This is a subscription service to be automatically notified by e mail when topics change in this 1 web. This is a convenient service, so you do...