Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
/ CRT-simulator Public archive

Simulates the movement particles in a cathode ray tube and displays its theoretical movement.

Notifications You must be signed in to change notification settings

TheJPMZ/CRT-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

CRT (Cathode-ray tube) Simulator

By TheJPMZ

This program simulates how a Cathode-ray tube (CRT) should work and provides an easy way to tinker with voltages and see the results.

A CRT was a machine capable of displaying images from various voltage signals, they were used mainly for oscilloscopes and televisions.

imagen

How to run?

On CMD/Console:

  • To install dependencies pip install -r requirements.txt
  • After that, to run the simulation python CRTSimulator.py

Functionality

There are two modes, which can be switched at any moment. On the first mode, you can select the voltage of the vertical and horizontal plates changing the electron's position. On the second mode, changing the gap between the plates and a relation of frequencies the trajectory of the electron is displayed automatically.

Options

  • Acceleration voltage
    • It effectively makes the electron travel faster, making the image brighter.
  • Latency
    • How fast is the window refreshed this can lead to quality images but slower drawing time, or a short drawing time but poor image quality.
  • Vertical and Horizontal plate voltage
    • Change the voltage of the corresponding pair of plates moving the electron.
  • Phase shift between both oscillators
    • Move the plates in relation to each other in an angle from 0 to 180 degrees.
  • Frequency
    • Choose between some plate frequency relations optimized for Lissajous curves ( 1:1 | 1:2 | 1:3 | 2:3 )

Demonstration

Using all the tools provided you can make some images like this ones:

imagen imagen

As the program's main focus is rendering Lissajous curves:

1:1 1:2 1:3 2:3
0 imagen imagen imagen imagen
45 imagen imagen imagen imagen
90 imagen imagen imagen imagen
135 imagen imagen imagen imagen

Written with StackEdit

About

Simulates the movement particles in a cathode ray tube and displays its theoretical movement.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages