ECE 570 | Internet of Things

Janice Bargoria ยท Sonoma State University

IoT projects, source code, assignment reports and live dashboards.

Course Assignments

Assignment 06

Database Assignment - MySQL & IoT

Database design, sensor records and SQL operations.

View assignment description

Create a MySQL/MariaDB database using Hostinger and phpMyAdmin. Register five IoT sensors, store temperature and humidity measurements, and demonstrate SQL JOINs, VIEWs, primary keys, foreign keys and referential integrity.

Assignment 07

ESP8266 Sensor Data Transmission

Wi-Fi sensor transmission, MySQL storage and monitoring.

View assignment description

Develop an ESP8266 system for collecting sensor measurements and events, transmitting them over Wi-Fi, and storing them in Hostinger MySQL. Display measurements on a web dashboard and implement event retransmission after reconnection.

Assignment 8

ESP8266 MQTT IoT System

HiveMQ communication, Python relay and remote LED control.

View assignment description

Implement MQTT publish-subscribe communication using ESP8266 and HiveMQ. Monitor potentiometer measurements, control an LED, and publish push-button events. Use a Python relay to send data to Hostinger MySQL and display measurements on a live graph with Pacific timestamps.

Final Project

AI-Powered Smart Pet Feeding & Health Monitoring

ESP8266 smart feeding monitor with HX711 weight sensing, pet detection, MySQL storage and Gemini AI analysis.

View project description

Design and implement an end-to-end IoT-based smart pet feeding and health monitoring system using the ESP8266 NodeMCU microcontroller. Integrate load cells with an HX711 amplifier to measure food weight, a proximity sensor to detect pet feeding sessions, and an OLED display for real-time system status. Implement a refill pushbutton and an empty-bowl LED warning. Transmit feeding duration, food consumption in grams, and activity codes through Wi-Fi to a PHP/MySQL database hosted on Hostinger. Develop an interactive web dashboard displaying feeding history, food consumption, feeding duration, and consumption speed. Integrate the Google Gemini API to analyze feeding patterns, compare recent measurements against historical averages, and identify unusual feeding behavior. Implement duplicate-event prevention, Wi-Fi reconnection and persistent event queuing for reliable data transmission.