Reader small image

You're reading from  Internet of Things from Scratch

Product typeBook
Published inFeb 2024
PublisherPackt
ISBN-139781837638543
Edition1st Edition
Right arrow
Author (1)
Renaldi Gondosubroto
Renaldi Gondosubroto
author image
Renaldi Gondosubroto

Renaldi Gondosubroto is an accomplished software engineer and developer advocate in the tech community. With a wealth of experience in developing proprietary and open-source solutions, he has made significant contributions to numerous organizations and communities. Currently, he holds all 12 AWS certifications, along with 20 Microsoft Azure certifications. He has a Bachelor of Science in Computing and Software Systems from the University of Melbourne and a Master of Science in Computer Science from Columbia University. Outside of the industry, he is active in the academic community, with his research focused on IoT and Artificial Intelligence. Having spoken at over 40 events, conferences, and workshops, he has been an international speaker for the past six years, sharing his experiences and projects. He aims to build open-source solutions and deliver content that can help people achieve more value in what they do and promote best practices for practitioners.
Read more about Renaldi Gondosubroto

Right arrow

Practical – smart traffic control with edge computing

In this practical, we will create a simple yet effective smart traffic control system using an ESP32 microcontroller. This project will utilize edge computing to analyze and optimize traffic flow at an intersection in real time. By the end of this practical, you will understand how IoT benefits from edge networks and learn how to architect simple edge deployments.

Assembling the circuit

Now, we must wire up the circuit. Instructions for doing so and a corresponding diagram have been provided for your convenience as follows:

Figure 6.6 – Connection diagram for the practical

Figure 6.6 – Connection diagram for the practical

  1. Connect the ultrasonic distance sensor (HC-SR04) to the ESP32 device. Connect the VCC pin to 5V, GND pin to GND, Trig pin to pin 17, and Echo pin to pin 18 of the ESP32 module.
  2. Connect the servo motor’s (SG90) VCC pin to 5V, GND pin to GND, and data pin to pin 16 on the ESP32 module.
  3. Connect...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Internet of Things from Scratch
Published in: Feb 2024Publisher: PacktISBN-13: 9781837638543

Author (1)

author image
Renaldi Gondosubroto

Renaldi Gondosubroto is an accomplished software engineer and developer advocate in the tech community. With a wealth of experience in developing proprietary and open-source solutions, he has made significant contributions to numerous organizations and communities. Currently, he holds all 12 AWS certifications, along with 20 Microsoft Azure certifications. He has a Bachelor of Science in Computing and Software Systems from the University of Melbourne and a Master of Science in Computer Science from Columbia University. Outside of the industry, he is active in the academic community, with his research focused on IoT and Artificial Intelligence. Having spoken at over 40 events, conferences, and workshops, he has been an international speaker for the past six years, sharing his experiences and projects. He aims to build open-source solutions and deliver content that can help people achieve more value in what they do and promote best practices for practitioners.
Read more about Renaldi Gondosubroto