I am new to this in addition new to programming. I am trying to dive a small motor by using a ultrasonic trigger. I set up an arduino driving a small servo but am not sure how to drive a motor instead turning it on for a few seconds then off when triggered. Any help is appreciated
I used the attached code to make it work.
servo.txt (797 Bytes)