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() {
myServo.attach(9);
}

void loop() {
int sensor = analogRead(A0);
int angle = map(sensor, 0, 1023, 0, 180);
myServo.write(angle);
delay(20);
}

Servo Mouse from hnikita on Vimeo.

Expanding upon the project:

 

808 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 http://herreramedical.org/cialis

  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 https://bit.ly/3nkdKIi ps4 games

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

  16. That is very attention-grabbing, You are an excessively professional blogger.
    I have joined your rss feed and look forward to in search of extra of your great post.

    Also, I have shared your site in my social networks

  17. When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks!

  18. After study a few of the blog posts on your website now, and I truly like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Pls check out my web site as well and let me know what you think.

  19. Youre so cool! I dont suppose Ive read anything like this before. So nice to find somebody with some original thoughts on this subject. realy thank you for starting this up. this website is something that is needed on the web, someone with a little originality. useful job for bringing something new to the internet!

  20. Youre so cool! I dont suppose Ive read anything like this before. So nice to find somebody with some original thoughts on this subject. realy thank you for starting this up. this website is something that is needed on the web, someone with a little originality. useful job for bringing something new to the internet!

  21. Nice post. I learn something more challenging on different blogs everyday. It will always be stimulating to read content from other writers and practice a little something from their store. I?d prefer to use some with the content on my blog whether you don?t mind. Natually I?ll give you a link on your web blog. Thanks for sharing.

  22. Hello there I am so excited I found your web site, I really found you by mistake,
    while I was researching on Bing for something else,
    Nonetheless I am here now and would just like to say thanks
    a lot for a incredible post and a all round thrilling blog (I also love
    the theme/design), I don’t have time to read it all at the minute but
    I have saved it and also included your RSS feeds,
    so when I have time I will be back to read much more,
    Please do keep up the fantastic work. http://ciaalis2u.com/

  23. I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post.

  24. I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post.

  25. Aw, this was a really nice post. In idea I would like to put in writing like this additionally ? taking time and actual effort to make a very good article? but what can I say? I procrastinate alot and by no means seem to get something done.

  26. Youre so cool! I dont suppose Ive read anything like this before. So nice to find somebody with some original thoughts on this subject. realy thank you for starting this up. this website is something that is needed on the web, someone with a little originality. useful job for bringing something new to the internet!

  27. Can I just say what a relief to find someone who actually knows what theyre talking about on the internet. You definitely know how to bring an issue to light and make it important. More people need to read this and understand this side of the story. I cant believe youre not more popular because you definitely have the gift.

  28. After study a few of the blog posts on your website now, and I truly like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Pls check out my web site as well and let me know what you think.

  29. Oh my goodness! an amazing article dude. Thank you However I am experiencing issue with ur rss . Don?t know why Unable to subscribe to it. Is there anyone getting identical rss problem? Anyone who knows kindly respond. Thnkx

  30. The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention.

  31. A person essentially help to make seriously articles I would state. This is the first time I frequented your website page and thus far? I surprised with the research you made to create this particular publish extraordinary. Great job!

Leave a Reply

Your email address will not be published.