Pages: [1]   Go Down
Author Topic: Help?! Infrared sensor as input motor as output  (Read 193 times)
0 Members and 1 Guest are viewing this topic.
cardiff
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to use an arduino in part of my installation work at university.
My intention is to use an infrared sensor as an input, when Motion is detected to activate a motor that will move 90degrees counterclockwise and delay for approximately 4 seconds before returning to its original position and looping that sequence when motion is again detected.
I have a very basic understanding of coding and have done some playing around with blinks digital and analogue inputs and was hoping for some basic guidance on where to start. Any help would be greatly appreciated... 
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 551
Posts: 46240
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
was hoping for some basic guidance on where to start.
Start by learning how to read from the infrared sensor.

Follow that up by learning to move a servo or motor.

Follow that up by learning to use millis() to record when things happen. Follow that up by learning to use millis() to see how long it has been since you did something.
Logged

Pages: [1]   Go Up
Jump to: