Go Down

Topic: arduino interrupt go to new servo position and turn off (Read 236 times) previous topic - next topic

Jamesmurg

How do i code an inturupt so it goes to the start of my void loop and turns off my led

Jamesmurg

Sorry wrong I just need it to turn servo to new position and turn led off

Delta_G

Sorry wrong I just need it to turn servo to new position and turn led off
Should be fairly simple.  You know how to use servo.write() to send a servo to a given position right?  You know how to use digitalWrite to set the state of a pin to turn a LED on or off right?  If not then you have no business messing around with interrupts yet.  You need to learn some basics first. 
If at first you don't succeed, up - home - sudo - enter.

Johan_Ha

____________________
- One day my stepper motor driver works like a charm. No task is too big for it and I can do anything with it. Next day it refuses to work and even the tiniest motor blows its fuse. What's wrong with it?
- It's bipolar.

Go Up