Sunday, March 28, 2010

LogoChip Challenge #5

For this challenge, we created a shadow detector. We used the Getting Started guide to remind us how to wire a photocell. The photocell is a light sensor and our first program was to turn on the motor whenever the photocell detected a shadow.

Our first program turned the motor on as soon as the photocell detected a shadow and the motor remained in motion. This is a picture our program:


The second program turned the motor only if the photocell is in a shadow. This is a picture of our program:

Our third program detected shadow edges and with that we were able to count the number of fingers that passed above the photocell.
Here is a picture of our program:

This was a bit tricky because had to figure out the right limits to set the sensors at. We had to adjust the sensitivity of the photocell so that it detect our fingers. We had to do a lot of experimentation. We ended up turning the lights off and using a flashlight, which made it much easier to differentiate shadows.
This is a video of the first program we made for this challenge:

No comments:

Post a Comment