Help in code for integrating ir sensor?


hi,

i on project, have 1 ir sensor digital output @ 1 place, after program starts, if triggers first time, should actions like( turning motor1 on), , if triggers second time ( motor2 should turn on), how code in arduino, , ready use 2 ir sensors convenience, stuck on handling issue.

thanks

write short program make single led turn on when single sensor triggered.

when works, extend turns off led when sensor triggered second time.

when works have variable value can used decide whether motor should running or stationary.

...r


Arduino Forum > Using Arduino > Project Guidance > Help in code for integrating ir sensor?


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