Welcome, Guest. Please login or register.

Author Topic: Light Pens  (Read 3430 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Nostalgiac

  • Sr. Member
  • ****
  • Join Date: Dec 2006
  • Posts: 408
    • Show only replies by Nostalgiac
Re: Light Pens
« Reply #14 from previous page: December 18, 2008, 09:07:42 PM »
funny the interest.

I literally trashed mine last month.

It's not just a phototransistor - you need a little 8pin chip and some discrete components as well. But it's dead easy to make even with limited solderskills.

I'll check if I still have the schematics and post them if so. I only ever used it on the c64 and resolution was just to crude to be useful.

ta
Tom UK
2000/2060/128mb/2320/2gb/C64-3D/Hydra-Aminet on OS 3.9

c128/1541/1750/1351 with Dolphin Dos and eprom burner
 

Offline neofree

  • Sr. Member
  • ****
  • Join Date: Dec 2002
  • Posts: 467
    • Show only replies by neofree
Re: Light Pens
« Reply #15 on: December 19, 2008, 02:20:40 AM »
Does anyone get how these things work?   I usually figure things out without having to read up too much, but I just never have been able to understand how using a regular monitor these things know which pixel you're pointing at..

Also same deal with the light guns, like on the NES.. same deal.. how does it know? Must be the same technology..Seems simular.  

Thanks,

Neofree
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: Light Pens
« Reply #16 on: December 19, 2008, 07:39:52 AM »
Pretty simple once you realize that the video output isn't just there but is built up line by line, from left to right. If you slow down time quite a bit then you can imagine the advancing electron beam hitting the phosphor right behind were the light pen currently points at. The phototransistor sends a pulse back to the video chip (Denise) which actually knows where it's currently at and just freezes the current horizontal and vertical counters to the lightpen register. :-D
 

Offline banzai

  • Jr. Member
  • **
  • Join Date: Dec 2005
  • Posts: 66
    • Show only replies by banzai
Re: Light Pens
« Reply #17 on: December 19, 2008, 12:20:33 PM »
My two cents...

I also used the book referenced in the link posted earlier to build my lightpen. You do need the 7400 in between the TIL414 and the port, as it's acting as a "debouncer". You can also substitute a 7414 Schmidt trigger chip, 74121/123 multivibrator, or a simple 555 one-shot to do this. I also highly recommend using as "flat" and dark a pen barrel as you can find. I found the Papermate Comfort-mateĀ® black to do the trick nicely. This helps to prevent false triggers due to reflections from neighboring pixels.

The reasons my pen is sitting unused have been mentioned earlier:

1) Resolution. On the C64, I could only get it to one character (8x8 pixel block). This is why FlexiDraw pens were better - they added special lenses in the nose to allow single-pixel pointing, and they also had one of the smallest buttons, but with the advent of SMT components the buttons are no longer an issue. You may be able to play with some optical components to come up with a better solution (fiber optic couplers?)...

2) Circulation. Yeah, unless your monitor is mounted inside a desk with the screen facing up, then your arm is going to feel like a lead bar in about five minutes. This is why even FlexiDraw didn't sell too many of their excellent pens. Koala pads did much better (and Kurta, et. al.).

3) Software. GEOS and a couple of paint programs allowed for them, but not much else. I wound up using my pen to act as a light-activated tachometer. It worked up to about 20-30KHz, IIRC.

If all that doesn't deter you, then have at it - but I'd still recommend finding a good 1351 mouse.

banzai
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: Light Pens
« Reply #18 on: December 19, 2008, 06:04:52 PM »
Hmm - I do remember using it on a friend's Amiga as mouse substitute with some kind of driver. I've got no idea if I had that driver, but I can't find it anyway. May have been the one in Aminet.
 

Offline amigaksi

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 827
    • Show only replies by amigaksi
    • http://www.krishnasoft.com
Re: Light Pens
« Reply #19 on: December 19, 2008, 09:20:40 PM »
by banzai on 2008/12/19 7:20:33

>My two cents...
...

>1) Resolution. On the C64, I could only get it to one character (8x8 pixel block). This is why FlexiDraw pens were better - they added special lenses in the nose to allow single-pixel pointing, ...

You sure they were allowing for single-pixel pointing?  That would mean more than 320 horizontal positions and even the Amiga and Atari are limited to about 160 horizontal positions in non-overscan mode.


--------
Use PC peripherals with your amiga: http://www.mpdos.com