GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lai-derek/analog-audio-oscillator: Configurable 5 V transistor oscillator with potentiometer-controlled frequency, two switched timing capacitors, an RC-filtered passive buzzer, and a button-controlled LED and audio fade. A custom PyTorch CNN has been trained on 40 labeled photos to read the controls.

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
docs
docs
 
 
hardware
hardware
 
 
ltspice
ltspice
 
 
scripts
scripts
 
 
src/oscillator_cv
src/oscillator_cv
 
 
tests
tests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

Vision-Configured Analog Oscillator

A hand-controlled analog sound circuit with adjustable pitch and a button-controlled fade. The breadboard and LTspice model are complete. A computer-vision phase is in progress to read the potentiometer and switches from photographs.

Demonstration

Completed breadboard

The potentiometer and two maintained switches change the tone. Holding the button suppresses the buzzer and fades the LED; releasing it lets both recover.

Audio is amplified with peak limiting for audibility. Click a photograph for the full-resolution version.

Hardware demonstration · ▶ Watch on YouTube (0:48)

Hardware demonstration video: click to watch on YouTube

Envelope and LED close-up · ▶ Watch on YouTube (0:04)

Envelope and LED close-up video: click to watch on YouTube

Circuit operation

Final LTspice schematic

The 5 V core is a two-transistor astable multivibrator. A nominal 10 kΩ potentiometer changes the shared timing resistance. Each switch adds 100 nF to one side of the timing network, giving four persistent configurations with symmetric or asymmetric waveforms.

The oscillator output passes through a 2 kΩ/100 nF low-pass filter, with a nominal cutoff near 796 Hz. Q3 isolates this signal from the output stage; Q5 drives the passive buzzer, and Q4 controls its emitter-return path from the envelope voltage. The button discharges a 300 µF envelope through 1 kΩ. After release, it recharges through 10 kΩ, restoring buzzer current and LED brightness.

The main design problem was keeping the fade circuit from loading the timing oscillator. Earlier output-control experiments altered pitch or produced little audible effect. The final design separates timing from the output envelope. Design history and modeling assumptions explain those experiments and the original physics-class prototype.

Physical controls

Simulation results

The reference run in LTspice 26.0.2 holds the button from 6–7 seconds during a 12-second transient. It predicts strong buzzer-current suppression with little frequency change:

Measurement Result
Normal buzzer RMS current 5.441 mA
Held-button buzzer RMS current 3.094 µA
Recovered buzzer RMS current 5.362 mA
Normal oscillator frequency 389.428 Hz
Held-button oscillator frequency 389.508 Hz
Simulated frequency change 0.0204%

Raw and filtered oscillator waveforms

The filtered waveform has slower edges, lower amplitude, and phase delay.

Simulated envelope response

The envelope, LED current, and modeled buzzer current fall during the button hold and recover after release. The buzzer is modeled as a resistive load, so these results describe electrical behavior rather than acoustic loudness.

The physical build reproduces the tone controls, LED fade, and buzzer suppression qualitatively. Oscilloscope measurements have not yet been collected.

Editable schematic · Reference measurements · How to rerun and inspect the evidence

Computer vision

A small PyTorch CNN estimates board orientation, the two switch states, and potentiometer center/pointer-tip positions. Its shared encoder feeds orientation and switch heads plus keypoint heatmaps. The implementation was developed with AI coding assistance.

The first 40-photo session exposed background-dominated heatmap loss, a small-batch normalization mismatch, and lost switch-position information. Spatial heatmap loss, GroupNorm, and a spatial switch head improved the fit; the experiment history records the runs and results. Evaluation so far reuses training photographs; performance on an independent capture session remains unknown. Trained weights are not published yet.

The published training session contains all 40 processed photos and manual labels. Verification covers inspecting them and running the code. Architecture and development and the capture protocol provide the technical details.

Remaining work

  • Measure physical waveforms and frequency, and calibrate potentiometer angle to resistance.
  • Evaluate the existing model on a fresh s02 validation session; reserve s03 for the final test.
  • Establish prediction acceptance thresholds and verify the switch-to-capacitor mapping.
  • Connect accepted predictions and calibration to an LTspice controller.

Original prototype

The physics-class build used two alternating LEDs, a passive buzzer, one timing potentiometer, and two momentary capacitor switches. Added capacitance lowered the pitch far enough to make the alternating blinking visible.

Original physics-class prototype

Prototype demonstration · ▶ Watch on YouTube (0:15)

Original prototype demonstration video: click to watch on YouTube

About

Configurable 5 V transistor oscillator with potentiometer-controlled frequency, two switched timing capacitors, an RC-filtered passive buzzer, and a button-controlled LED and audio fade. A custom PyTorch CNN has been trained on 40 labeled photos to read the controls.

Topics

analog-electronicsastable-multivibratorbreadboardcomputer-visionconvolutional-neural-networkkeypoint-detectionltspicemulti-task-learningpytorch

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.