Servo Mouse

We learned how to connect and program the servo motor in our last class. After practicing by working on some labs, I decided to experiment with making a puppet move. Though I don’t quite know what I want this mouse fellow to do I started off by programming the arduino to pivot to 180 degrees allowing the mouse to also rotate in this fashion.

#include <Servo.h>

Servo myServo;

void setup() {

void loop() {
int sensor = analogRead(A0);
int angle = map(sensor, 0, 1023, 0, 180);

Servo Mouse from hnikita on Vimeo.

Expanding upon the project:


642 thoughts on “Servo Mouse”

  1. I enjoy you because of all of your effort on this website. Betty enjoys going through investigations and it’s really obvious why. Most people notice all regarding the lively form you render sensible suggestions on your web blog and therefore foster response from some other people on that issue so our own daughter is without a doubt starting to learn so much. Enjoy the rest of the year. You are carrying out a splendid job.

  2. Great goods from you, man. I’ve understand your stuff previous to and you’re just extremely excellent. I actually like what you have acquired here, certainly like what you are saying and the way in which you say it. You make it enjoyable and you still take care of to keep it sensible. I can not wait to read much more from you. This is actually a wonderful web site.

  3. Amazing! Its actually awesome piece of writing,
    I have got much clear idea concerning from this article.

  4. I just could not go away your website before suggesting that I really loved the usual info an individual provide in your guests? Is gonna be back often to check up on new posts.

  5. Hey! This is kind of off topic but I need some guidance from an established blog.

    Is it hard to set up your own blog? I’m not very techincal
    but I can figure things out pretty quick. I’m thinking about creating my own but I’m not sure where to begin. Do you have any ideas or suggestions?
    Appreciate it

  6. I just could not go away your web site prior to suggesting that I really enjoyed the standard info a person provide to your guests? Is going to be again often in order to investigate cross-check new posts.

  7. Definitely imagine that which you stated. Your favourite reason seemed to be on the internet the easiest factor to take note of. I say to you, I certainly get irked even as other people consider issues that they just don’t recognise about. You managed to hit the nail upon the top as well as defined out the entire thing with no need side-effects , people can take a signal. Will likely be back to get more. Thanks

  8. Greetings! Very helpful advice within this article! It is the little changes that will make the most important changes.

    Thanks for sharing!

  9. Wow, wonderful weblog layout! How lengthy have you been blogging for? you make blogging look easy. The entire look of your website is fantastic, let alone the content!

  10. It’s going to be end of mine day, except before
    ending I am reading this wonderful paragraph to improve
    my knowledge.

  11. That is a great tip particularly to those new to the blogosphere.
    Brief but very accurate information… Thank you for sharing this one.
    A must read article!

  12. Have you ever considered about including a little bit more than just your articles? I mean, what you say is valuable and everything. However think about if you added some great photos or video clips to give your posts more, “pop”! Your content is excellent but with pics and video clips, this site could definitely be one of the very best in its field. Very good blog!

  13. I’m just commenting to let you know what a superb encounter my wife’s princess had going through your site. She discovered so many pieces, not to mention how it is like to possess a very effective helping style to let the mediocre ones without problems grasp specified impossible issues. You undoubtedly exceeded my expectations. I appreciate you for providing those powerful, healthy, edifying not to mention fun guidance on that topic to Ethel.

  14. Superb website you have here but I was curious about if you knew of any user discussion forums that cover the
    same topics talked about in this article?

    I’d really love to be a part of online community where I can get opinions from other knowledgeable individuals that share the same interest.
    If you have any suggestions, please let me know.

    Thank you! ps4 ps4 games

  15. Холостячка 2 сезон Смотреть онлайн шоу Холостячка 2 сезон на СТБ.
    Пост шоу можно смотреть тут. Холостячка стб 2 сезон 1-2 серия

Leave a Reply

Your email address will not be published.