[ internal use only ] - Reads the voltage from a sensor to measure the grid's frequency. For course ID: MR-2003B
Find a file
2026-03-01 17:07:04 -06:00
ReadVoltage 10k 2-byte values at 115200 baud is about 16ms; or one entire 60Hz cycle. Reduced it to 1k values. 2026-02-26 14:12:55 -06:00
.gitignore Add read script and ignore out file 2026-02-19 14:02:27 -06:00
LICENSE add README and AGPLv3 license 2026-03-01 15:20:15 -06:00
plot_file.py Read 10k values, graph 5k values, clean up old output files. 2026-02-19 14:17:55 -06:00
read modify script for 1hr of values 2026-02-23 14:06:31 -06:00
README.md add details to README (for personal use) 2026-03-01 15:23:39 -06:00

hz

  • School: Tecnológico de Monterrey
  • Semester: 4
  • Course: MR-2003B
  • Professor: Ricardo Esteban Roberts-Ugrinovic
  • 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 ReadVoltage

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

# Or, capture data for one hour and save it to out.txt:
read

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