We attached three LEDs (red, yellow, and green) and had Arduino light them according to the level of light sensed by the photocell sensor (red when it's darker, green when it's lighter, yellow in between). Our light sensor was acting funny so we had to set the parameters to very small: <665 was dark, above 668 was light. This would be more interactive if we could get our sensor working!
The Effect
The Code
No comments:
Post a Comment