6

While reading about CRT on Wikipedia, an information (CRT Allows the use of light guns/pens; https://en.wikipedia.org/wiki/Cathode_ray_tube#Advantages_and_disadvantages) suddenly triggered a a vast lots of memories.

Around early 1990's when I was a toddler, in a local "mela" or fair each year, there was a stall for video games .

They had several big boxes (maybe CPUs), several tiny to large sized, portable monochrome televisions with a mesh of cables. They provided any 1 of 2 kinds of input devices, 1. a game-control with arrow-keys & fire-key etc; as-well, 2. a toy Gun-shaped device.

Game in CRT with a gun-like input device

(The above diagram drawn completely based-upon memory.)

In the game, to destroy the enemy (a rocket, or an octopus, or a ghost etc), the tip of the toy-gun were almost-touched on that object on screen, and on pressing the trigger, the selected rocket were destroyed.

It was, specifically surprising to the kids, because that was a pre-touchscreen era. The television set, acted quite like a touchscreen.

Now I want to know, how that systems worked?

Which-one is acting as the sensor (of the particular place where the rocket was fired)? the toy-gun or the CRT? What is the mechanism to identify a particular spatial-position (of target-object such as rocket) out of many-other objects (other rockets)?

Always Confused
  • 1,591
  • 6
  • 25
  • 49
  • 5
    Did you try reading the wiki article for Light Gun? https://en.wikipedia.org/wiki/Light_gun Complete technical breakdown of various implementations, including the CRT versions. – Passerby Jun 30 '16 at 05:35
  • If the work of CRT display is just to show the signal, and the whole function of sensing that signal is upon the toy-gun; then it should work on LCD or LED type displays also. Isn't? – Always Confused Jun 30 '16 at 07:34
  • I'm really surprised after knowing that those big fat old CRTs can show a signal-change faster than modern LCD and LED display!!! – Always Confused Jun 30 '16 at 08:02
  • 1
    There was a nice article about this on hackaday – JakkeFire Jun 30 '16 at 09:13
  • 2
    Too broad? but satisfactory answers came . Neither of these answers are too broad, nor distracting. And the possible answer set is already made narrow by last three sentences (last three question marks) of the question. – Always Confused Jun 30 '16 at 12:58
  • Excluding the last-4 sentences; whole-thing is the description about what i'm trying to tell. because I've seen, in this site and any-other place; if I do-not write the things elaborate enough, and do-not give diagrams, a vast-lot of misunderstanding take place. However, if moderators found the question-size is very big, they could edit and adjust it for themselves, because I have received answer to my questions point-to-point. – Always Confused Jun 30 '16 at 13:11
  • 1
    I agree that this should not be closed as too broad. The latency of displays is controversial with gamers, and is due to buffering the signal to process it in modern systems. – pjc50 Jun 30 '16 at 14:06
  • Thanks to many-one, who provided link to that wikipedia article on light gun . However, wikipedia yet do-not have any diagram of sensing-mechanism of screen-area. (https://en.wikipedia.org/w/index.php?title=Light_gun&oldid=728066090). So the answers here explained some thing better. – Always Confused Jul 13 '16 at 13:19

3 Answers3

9

The quintessential example of a light gun is Duck Hunt with the NES Zapper.

When the trigger was pressed, the Nintendo would trigger a special frame at CRT refresh rates. The screen would draw a white square at the target, too fast for human vision to see, but slow enough that a brightness sensor (A simple Phototransistor) with a very narrow field of vision in the Zapper could tell the difference between Black (miss) and White (hit). Multiple targets have their own target frame (or slightly overlapping).

enter image description here

The Zapper is the sensor in both meaning of the word. It senses the trigger press, and it senses the screen brightness.

It didn't work on newer TV technology because the Zapper was designed to work with the precision refresh and scan rates of CRTs. Newer technology threw scanning away and don't have precision refresh rates. Newer light gun technology was created to adjust to newer TV technology. But at this point, check the wiki article for more information.

Passerby
  • 72,580
  • 7
  • 90
  • 202
  • if so, the sensing-task is solely upon the gun. Isnt'? thein it could be used for both CRT and LCD or LED display? – Always Confused Jun 30 '16 at 07:21
  • How the gun (light-sensor) is sensing which one (of 2) ducks selected? is there 2 different signal in the 2 squares? (such as different blinking phase or rate etc?) – Always Confused Jun 30 '16 at 07:24
  • 1
    @AlwaysConfused one frame for one duck, then the next for the second. The sensor result would be timed with the frame that is up, so it knows which was hit. As for Plasma or LCD or LED or projectors, no, because the original Zapper uses the precision timing of CRT refresh and scan rates to work. New technologies have replaced it. For the Wii, Duck Hunt uses the IR point tracking and accelerometer/gyroscope to figure out where its pointing, completely independent of the TV. – Passerby Jun 30 '16 at 07:34
  • Thanks for this valuable comment. That means 1. the blinking time-scale or phase for 2 ducks are different, and 2. CRT can blink faster than LCD or LED screen. so CRT is more appropriate. is that? – Always Confused Jun 30 '16 at 07:37
  • 1
    LCDs don't blink, like a CRT does... – Passerby Jun 30 '16 at 07:39
  • 1
    I remember playing this game as a kid, and I also remember some sort of discoloured square appearing around the duck each time you shot it. I think I mistook it for some sort of visual effect, graphics weren't all that awesome back then :) – Lundin Jun 30 '16 at 12:52
  • 1
    @Passerby are you sure it needs two frames for two ducks? With a CRT you could use the scanning effect (rows of pixels being drawn sequentially) to determine which duck is aimed at via precision timing as long as they're at different heights. (The top target box would light up before the bottom box.) – Dan Is Fiddling By Firelight Jun 30 '16 at 13:30
  • CRT blinks with *lower latency* than LCD. In a 'classic' CRT television, the sweeping beam's brightness is controlled directly by the input signal with very little delay. LCDs have no beam and quite a lot of digital circuitry which records one frame of input signal, processes it, and only then outputs it to the rows and columns of the LCD. This imposes a delay. See http://www.hdtvtest.co.uk/news/input-lag (It's also possible to get a CRT TV that does this processing, branded as "100Hz", and therefore doesn't work with light guns) – pjc50 Jun 30 '16 at 13:52
7

The CRT TV picture was generated by deflecting an electron beam fired from the back of the tube in a raster scan as shown in Figure 1. Two sawtooth oscillators control this: one for the vertical and one for the horizontal - the horizontal one running much faster than the vertical. For PAL used in Europe there are 625 lines (horizontal) refreshed at 25 frames/second (vertical). (It's a little more complex as the lines are interlaced to reduce flicker. The vertical scan runs at double the frequency alternately drawing the odd and even lines.)

enter image description here

Figure 1. CRT TV raster scan. Source: Wikipedia Analog Television.

The electron beam excites the phosphor on the inside of the tube making a sudden step change in the brightness of the dot. This then decays until the next refresh. The persistence of the dot was a balance between keeping bright between refresh and "motion smear" if it was too slow.

The gun contains the required optics to view a small spot on the screen and a fast light sensor. Some analog logic is required to keep track of the vertical and horizontal dot position relative to the position of the on-screen "target" and match this with the step change in light level by the gun sensor. If the two coincide at the moment the trigger is pressed a "hit" is registered.

Note that this system could only work with bright targets as there would be no dot impulse on black or very dark areas of the screen.


I think @Passerby's answer is more accurate and obviously a much simpler method of working without the timing issues of my answer in the case of the gun. I predate video games. He obviously had a mis-spent youth - although it has paid back on this occasion.

enter image description here

Figure 2. The cutting edge - once upon a time. This would be easier to date if we could see how wide his trousers flares were.

The method I have described is how the light pen worked - to the best of my recollection.

Transistor
  • 168,990
  • 12
  • 186
  • 385
  • Thanks a good-many valuable informations you have provided. – Always Confused Jun 30 '16 at 07:13
  • 1
    See my update regarding the light pen. – Transistor Jun 30 '16 at 09:08
  • @ transistor Please do-not worry, only 1 answer could be selected as accepted (green tick-mark). No-one answer came is wrong. And yours one carries the signature of hardwork. But @passerby's answer was so simple, that not accepting that answer would be an injustice to that user. I'm sorry. – Always Confused Jun 30 '16 at 09:19
  • Also, I can put only 1 vote to a question, and not more. For such a subjective and "fuzzy" task like rate a broad question; a +1 also cannot express the truth. Rather, a 5-star or 10-star rating would be quite better. – Always Confused Jun 30 '16 at 10:21
4

The television set, acted quite like a touchscreen.

No it didn't because it would not work with your finger, it only works with the "gun".

The operation is quite simple, pictures on CRT screens are drawn by moving a "dot" which lights up, across the screen. Human eyes are too slow to notice this so we see only the complete picture.

The gun consists of a pipe and a fast light sensor. When you point it at a spot on the screen the sensor will give a signal when the "dot" passes by and light shines into the pipe and onto the sensor. Then the system "knows" where the gun is pointing as it got a signal from the gun when the "dot" was at a certain position.

Bimpelrekkie
  • 80,139
  • 2
  • 93
  • 183