Hi everyone I am still very new to the world of arduino and in a short space of time I feel I'm learning a lot of really cool things
I do have a question though regarding servos
I have successfully set up a simple servo sketch using the sweep code I have also used the pir code to activate an led in pin 13
I would like to be able to combine the 2 lots of code so that I could activate the servo when the pir triggers the led any help with the code to achieve this would be appreciated
Thanks ken
If you know how to read the PIR sensor, and you know how to sweep the servo, what is the problem?
Then you should start writing code because it's not that hard. But you have to be more precise of what you want because "activate the servo" doesn't cut the mustard....
But look at every time an know what each line does of both sketches. Now try to combine them. It's a process called learning ![]()