It sparkles! It draws! It shoots energy balls! It’s the LightPen! This was my first success integrating code with a physical object. Perhaps the documentation of this simple project will be useful to someone out there.
It works like this: Pen talks to PIC Micro Controller, PIC talks to a Processing applet on my PowerBook. Camera tracks the LED. It’s that simple!
Download PIC code (PicBasic):
Download Processing code:
Click on pictures for a larger image: