Wednesday, November 30, 2016

Mini-Project 2: Servo

I had some last-minute trouble with the servo; namely, it was pretty unpredictable in terms of whether it would stop and start with the camera's motion detection.

Demonstration

The blue LED is my indicator, and turns on while the camera is detecting motion, then turns back off. That it responds correctly shows that it's not the camera's fault; the servo itself is the issue.

The only solution I found (which only really fixed the outcome, it didn't really correct the problem) was to upload another sketch in which the servo was set to its stopped position. However, even then it sometimes ignored the sketch and continued to spin. I would have to continue to unplug and plug in the Arduino and upload the sketch until the servo decided to listen.

No comments:

Post a Comment