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.
On CMD/Console:
- To install dependencies
pip install -r requirements.txt
- After that, to run the simulation
python CRTSimulator.py
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.
- 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 )
Using all the tools provided you can make some images like this ones:
As the program's main focus is rendering Lissajous curves:
1:1 | 1:2 | 1:3 | 2:3 | |
---|---|---|---|---|
0 | ||||
45 | ||||
90 | ||||
135 |
Written with StackEdit