Hello all! This is my first post here in the group. I am working on a project to get an IR sensor to do the following:
When a hand is waved over the IR sensor, the motor moves in one direction (simulating opening a door). There is a 2 second pause, and then the motor moves in the opposite direction (simulating closing the door).
The motor stops until another hand is waved over the IR sensor again.
I have the circuit built but the proper programming in alluding me. I am not very experienced with the Arduino yet and only been using it for about six weeks. I am going to attach my coding and was hoping I could get some tips on how to get it to work right.
Lab4_G00138460.ino (996 Bytes)