I'm a newbie, so forgive me if this question has been asked before. I want to build an electronic music box with the Arduino, with optical sensors that detect black vs white bars on a music sheet. What would be a good pick for the sensors? And do they work no matter the light conditions?
To detect bars on a sheet you should use a reflective optical sensor.
If you don't want to be troubled by ambient light it is better to work with an IR one.
Even IR sensors get troubled by ambient light.
You migh have to go to modulated IR light to remove this.
This is the sort of thing you want:-
thanks for the quick reply's. I also found the QRB1114, which is also integrated in this phidgets sensor: RobotShop | Robot Store | Robots | Robot Parts | Robot Kits | Robot Toys.