Загрузка...

Mini Oscilloscope: Visualizing Frequency and Period (f = 1/T)

Visualizing f = 1/T Using PWM and OLED
Project Briefing
Objective
To demonstrate the relationship between frequency (f) and period (T) using a real-time visual system based on an ESP32-C3, an OLED display, and a PWM-driven LED.
________________________________________
System Overview
The system generates a periodic signal using PWM.
This signal is:
Displayed visually as a waveform on an OLED screen
Output physically through an LED whose brightness follows the waveform
________________________________________
Working Principle
The project is based on the fundamental relationship:
f=1/T
T
Tf = 0.5 Hz
Where:
f = frequency (Hz)
T = period (seconds)
________________________________________
Visualization Features
1. Time-Domain Waveform
Displays how the signal changes over time
Acts like a mini oscilloscope trace
________________________________________
2. Period Highlight (T)
A rectangular box marks one full cycle
Expands or shrinks depending on frequency
________________________________________
3. Frequency Display
Real-time value shown on OLED
________________________________________
4. Time Cursor
A vertical line moves across the screen
Represents the progression of time
________________________________________
5. LED Output
LED brightness follows the waveform using PWM
Links visual signal → physical output
________________________________________
Behavior Observed
At low frequency:
Waves are spread out
Period (T) is large
At high frequency:
Waves are compressed
Period (T) becomes smaller
________________________________________
Scientific Significance
This project demonstrates:
Time-domain signal representation
Real-time relationship between frequency and period
Basic principles of oscilloscopes
Embedded signal generation and visualization
________________________________________
Hardware Used
ESP32-C3 microcontroller
OLED display (SSD1306, I²C — SDA GPIO 7, SCL GPIO 6)
LED (PWM on GPIO 5)
Resistor (for LED protection)
________________________________________
Conclusion
This system provides a clear and interactive way to understand how frequency and period are inversely related. By combining real-time visualization with physical output, it bridges theoretical concepts with practical observation.
Code:
https://github.com/ukkokalevala/Time-Domain-Frequency-Visualization-System.git

Видео Mini Oscilloscope: Visualizing Frequency and Period (f = 1/T) канала Electricum
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять