This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-07-29 01:08:52

chalkmarrow
Scratcher
Registered: 2007-05-18
Posts: 100+

Sensor Board Project

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

 

#2 2008-07-29 01:23:06

nicolasx
Scratcher
Registered: 2007-07-30
Posts: 500+

Re: Sensor Board Project

uhh... doesn't this go in the sencer board forum?

Offline

 

#3 2008-07-29 01:35:58

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Sensor Board Project

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)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#4 2008-07-30 17:03:58

mletreat
Scratcher
Registered: 2008-05-01
Posts: 100+

Re: Sensor Board Project

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

 

#5 2008-07-30 22:52:06

chalkmarrow
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: Sensor Board Project

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

 

#6 2008-07-31 12:25:09

mletreat
Scratcher
Registered: 2008-05-01
Posts: 100+

Re: Sensor Board Project

Nice!

Yeah - I was wondering about the contrast - it looked like you'd captured it with some kind of crazy night vision camera  smile

Offline

 

Board footer