This is a little sensor board project I worked on at the Conference. It has a brief demo built into it so you can sorta see what it does even if you don't have a sensor board.
http://scratch.mit.edu/projects/chalkmarrow/227489
The general idea is that, when you hold a light sensor up to the screen, the project determines where you're holding the sensor and sends the three moths toward that location. The light sensor is connected to the resistance-A input.
In general, here's how it works: it calibrates for screen brightness first, then flashes horizontal and vertical gradients on the screen real fast and uses the two readings to estimate x and y position.
Offline
nicolasx wrote:
uhh... doesn't this go in the sencer board forum?
Either there or here for obvious reasons (it is a project, but it's abour sensor boards)
Offline
chalkmarrow wrote:
This is a little sensor board project I worked on at the Conference. It has a brief demo built into it so you can sorta see what it does even if you don't have a sensor board.
http://scratch.mit.edu/projects/chalkmarrow/227489
The general idea is that, when you hold a light sensor up to the screen, the project determines where you're holding the sensor and sends the three moths toward that location. The light sensor is connected to the resistance-A input.
In general, here's how it works: it calibrates for screen brightness first, then flashes horizontal and vertical gradients on the screen real fast and uses the two readings to estimate x and y position.
So glad to see you found a way to share it! The demo looks great, how did you capture that?
Offline
mletreat wrote:
chalkmarrow wrote:
This is a little sensor board project I worked on at the Conference. It has a brief demo built into it so you can sorta see what it does even if you don't have a sensor board.
http://scratch.mit.edu/projects/chalkmarrow/227489
The general idea is that, when you hold a light sensor up to the screen, the project determines where you're holding the sensor and sends the three moths toward that location. The light sensor is connected to the resistance-A input.
In general, here's how it works: it calibrates for screen brightness first, then flashes horizontal and vertical gradients on the screen real fast and uses the two readings to estimate x and y position.So glad to see you found a way to share it! The demo looks great, how did you capture that?
mle: i used a standard digital camera to capture a short mpeg video, then i used a shareware program ("AVD Video Processor") to convert the mpeg to an animated gif, which allowed me to scale and resample the image (otherwise a 10 second video takes up 8 MB). Then of course i just imported the animated gif into the costume window. I'm not sure why it came out so dark and contrasty, however.
Last edited by chalkmarrow (2008-07-31 00:34:48)
Offline