[ internal use only ] - Reads the voltage from a sensor to measure the grid's frequency. For course ID: MR2003B.
Find a file
2026-06-11 13:12:28 -06:00
FrequencySensor refactor(FrequencySensor): fix LED pin definitions (changed circuit) and update raw sample settings 2026-06-11 13:12:17 -06:00
results fix(firmware): eliminate timestamp gaps and spurious frequency reports 2026-06-10 20:45:08 -06:00
.gitignore Add read script and ignore out file 2026-02-19 14:02:27 -06:00
fft_demo.py refactor(scripts): organize and clean up Python scripts 2026-06-10 19:26:38 -06:00
LICENSE add README and AGPLv3 license 2026-03-01 15:20:15 -06:00
plug.blend feat(hardware): Add box's plug 3D model 2026-06-10 20:56:48 -06:00
README.md docs(README): update project title and professor details; update command examples 2026-06-11 13:12:28 -06:00
serial_logger.py refactor(scripts): organize and clean up Python scripts 2026-06-10 19:26:38 -06:00

Grid Frequency Sensor

  • School: Tecnológico de Monterrey
  • Semester: 4
  • Course: MR-2003B
  • Professor: Ricardo Esteban Roberts-Ugrinovic, Artemio Alfredo Aguilar Coutiño, Adeodato Israel Botello Arredondo, Rodolfo Anaya Zamora
  • First Class: 2026-02-09

Reads the voltage from a sensor to measure the grid's frequency.

Useful commands:

# Compile and upload the code to the ESP32
arduino-cli compile --upload -p /dev/ttyUSB0 --fqbn esp32:esp32:esp32:UploadSpeed=115200 FrequencySensor

# Monitor the serial output from the ESP32
arduino-cli monitor -p /dev/ttyUSB0 -c baudrate=115200

# Run the FFT on PC
python fft_demo.py

# Log frequency data for 1 hour
python serial_logger.py

I'm not expecting anyone to even see this code, but it's under AGPLv3. See LICENSE for details.