The official round of thing-a-day is done. Thank you all for your incredible work and see you next year!

0 Vote up

Day Twenty-Three: Optical encoders for the Drawing Bot

For day 23, I added optical encoders to the drawing bot that was built on day 19. I also modified the program so that it uses the Servo library, which I only recently became aware of. The encoders work like a charm- they are hooked up to the interrupt input on the Arduino, and that part works fine. The problem, however, becomes that the continuous-rotation servo motors cannot be stopped fast enough, so they end up overshooting their destinations. I tried to get around this by cutting power to the servo motors when the device reaches position, however there still appears to be a good amount of mechanical energy in the system, so no dice. I’m giving up on the servos, and will switch to stepper motors for the next version. The code, which demonstrates how to use interrupts, is available here. The test patterns were not so interesting so I didn’t take any pictures :-)

Last 5 posts by cibomahto

Comments:

Leave a comment:

  • *Required
  • *Required (never published)
  • *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word