Arduino Forum

Products => The Arduino Starter Kit and Basic Kit => Topic started by: mustafa27 on Nov 27, 2014, 08:32 pm

Title: servo motor control by PIR sensor
Post by: mustafa27 on Nov 27, 2014, 08:32 pm
control of the servo motor according to the movements sensed by pir. is it possible? please help.
I got one arduino, one PIR and one servo motor.
Title: Re: servo motor control by PIR sensor
Post by: vffgaston on Nov 27, 2014, 08:34 pm
Quote
control of the servo motor according to the movements sensed by pir. is it possible? please help.
I got one arduino, one PIR and one servo motor.
If you do not specify the kind of movement the (general) answer would be YES
Title: Re: servo motor control by PIR sensor
Post by: mustafa27 on Nov 27, 2014, 08:56 pm
no only on the side of the movement. but how can I this. I don't have an idea. it is my first project. :smiley-eek:
Title: Re: servo motor control by PIR sensor
Post by: vffgaston on Nov 28, 2014, 09:13 am
You have to explain what movement you intend (just to make somethig to move or to make it move in a particular direction, length,  . . . .?)
Title: Re: servo motor control by PIR sensor
Post by: mustafa27 on Nov 28, 2014, 10:56 am
PIR will be stable And servo will be stable too and I will give a degree to the servo for example when pir is triggered Servo will turn 70 degrees And it will stay there 3 and 4 seconds then it will return to the 0 point
Title: Re: servo motor control by PIR sensor
Post by: vffgaston on Nov 28, 2014, 11:01 am
Quote
PIR will be stable And servo will be stable too and I will give a degree to the servo for example when pir is triggered Servo will turn 70 degrees And it will stay there 3 and 4 seconds then it will return to the 0 point
Yes, you can trigger the servo to do this for a cartain period of time if the PIR detects movement.
Title: Re: servo motor control by PIR sensor
Post by: mustafa27 on Nov 28, 2014, 11:21 am
but I don't know how can I ? is there code in this forum ? could you help me ???