ServoBug For Ellie

Remixed from: ServoBug

{% trans 'Sorry, your browser does not support canvas -- please either update your browser or submit your requirements by phone or email.' %}

Accelerometer

Avatar for James Lyndsay James Lyndsay

Control servo position from buttons; button A and B move servo to a fixed point. Message on display to show value used once servo has moved. Servo connected on Leg 0. If you've not controlled a servo before (I hadn't) then know that the servo moves to a position related to the width of a regular pulse. The loop sends a pulse 30 times – which is enough for my servo to move into position. Next change – replace the count with leg on + pause. Kit: DS-929MG connected w/brown to ground, red to pwr, orange to leg. I'm powering the servo from the codebug – but that's a bad habit.

Report this project
Back to top