Photo-resistor controlling servos


i have g scale roundhouse 8 doors.  use photo resistor tell when lights on (hardwired track power) in order operate individual servos mechanically open doors.

any idea on code.?

you not giving go on - should easy.
i presume photo-resistor same light dependent resistor. wire voltage divider , use arduno adc measure voltage. if voltage above or below threshold stuff.

look through examples come arduino ide , should find need know.

if have problems getting own code work, post copy of here description of should , does. thread planning , implementing program may have useful stuff.

...r


Arduino Forum > Using Arduino > Programming Questions > Photo-resistor controlling servos


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code