Posts

Showing posts from April, 2022

ESP32 Web Server - Room Monitoring and Controlling System

Image
Hello! This week's blog is the last blog for my Embedded Systems projects :'( In this post, I will talk about ESP32 Web Server and how to implement it by making a room monitoring and controlling system that can monitor the temperature in the room and turn on or off the cooling fan from a distance by using a browser. First, let's prepare the components you'll need: 1. ESP32 2. Breadboard 3. LED 4. 330-ohm resistors 5. Male-to-male jumpers 6. BMP280 7. Laptop/PC 8. Micro USB This is the circuit I made: Now, make sure you have the right libraries. You can check my blog post when I explained about BMP280 sensor. After you're done installing it, let's follow these steps: 1. Open Arduino IDE 2. Copy this code, but don't upload it yet! You have to make some adjustments that I'll explain below // Load Wi-Fi library #include <WiFi.h> #include <Wire.h> #include <SPI.h> #include <Adafruit_Sensor.h> #include <Adafruit_BMP280.h> #define...