Arduino lernt sich zu bewegen.

Vor einiger Zeit habe ich euch gezeigt wie ich vom totalen Elektrik-Neuling zum Arduino Fan wurde und Arduino sogar zum Blinken brachte.

Jetzt habe ich aber schon einiges mehr vorzuweisen.

Ich habe mir einige Servos, ein Breadboard und flexible Kabelverbinder bestellt. Selbst ohne große Kenntnisse war es mir schnell möglich einen Prototypen für mein erstes Projekt zu bauen.

Mein Prototyp hat auch bereits sein erstens (alles andere als perfektes) Testvieo mit einer GoPro aufgenommen.

Das entstandene Timelapse ist am Ende dieses kleinen Videos, welches den Prototyp zuerst in seinen vielen Details zeigt. Ein weiteres Video zeigt euch wie der Prototyp sich ohne GoPro bewegt.

Lego

Lego eignet sich super um Prototypen zu bauen. Man muss nichts bohren, löten oder schrauben. Einfach losbauen, umbauen und testen.

Mein Projekt ist eine Kamerahalterung, welche später eine DSLR frei bewegen soll. Dieses kleine Modell kann dies aber sicher noch nicht.

Servos

Den Servo mit Arduino zu verbinden ist sehr einfach. Der Servo hat 2 Anschlüsse Erdung (braun), Stromversorgung (rot) und Steuerung (orange).

Man hängt also die Erdung and einen GND (Ground) Port und die Stromversorgung an 5V an das Arduinoboard. Der Orange kommt an einen der Communication Ports.

Das selbe machte ich mit dem zweiten Servo nur kam dieser an einen anderen Communication Port.

Das Programm

Um die Servos verwende zu können inkludieren wir Servo.h. Damit wäre fast die Ganze Arbeit erledigt. Im Setup sagen wir unseren Servo Objekten an welchen Pins die echten Servos hängen und dann können wir im Loop ihnen einfach Werte zwischen 0 und 180 (Grad) schicken und schon drehen sie sich!

So einfach ist das!

#include <Servo.h> 
Servo myservo;
Servo myservo2;

void setup()
{
myservo2.attach(15);
myservo.attach(14);
}

void loop()
{
myservo.write(90);
myservo2.write(90);
delay(1000);

myservo.write(0);
myservo2.write(180);
delay(1000);
}

Tags: , , , , ,

76 Antworten zu “Arduino lernt sich zu bewegen.”

  1. backlink Buliding sagt:

    These arе іn fact wonderful ideas in оn the topic of blogging.
    Υou have tοuched some gоod points herе.
    Any wау keep up ωrinting.

  2. cycunyncw sagt:

    JpKtyo , [url=http://yhncanhiexds.com/]yhncanhiexds[/url], [link=http://ygxnxvehhnwn.com/]ygxnxvehhnwn[/link], http://kyvxdmngavfu.com/

  3. recaptcha solver sagt:

    Wow, amazing blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look of your web site is wonderful, let
    alone the content!

  4. christian dating tips for ladies sagt:

    Wow, incrediblе ωeblog format! How long
    have уou ever been running a blog for? you mаke running a blоg glance
    еasy. Тhе full look of youг web site іѕ wоnderful, аs smartly as the content!

  5. rip sagt:

    räum doch mal die ganzen SPAMBOTS auf ….

  6. ?????? ??? sagt:

    Thanks for sharing your info. I really appreciate your efforts and I
    am waiting for your further post thanks once again.

  7. wwe royal rumble 2013 live stream sagt:

    Yes! Finally someone writes about justin birber.

  8. company benefits of offering stock options sagt:

    Awesome issues here. I am very happy to
    look your post. Thanks so much and I’m taking a look ahead to touch you. Will you kindly drop me a e-mail?

  9. detecteur de radar sagt:

    I аm genuіnely gratеful to the owner of thіs wеb ρage who has
    ѕhared this grеat piece of wrіting at at this
    time.

  10. phonetracerusa.com sagt:

    I am genuinely thankful to the owner of this web page who has shared this wonderful post at at this time.

  11. flex belt review sagt:

    There are different causes why people favor this belt.

  12. apartments for rent sagt:

    Thanks to my father who stated to me concerning this weblog, this blog
    is genuinely amazing.

  13. Kaitlyn sagt:

    I could not resist commеntіng.
    Vеry wеll wгіtten!

  14. het albino ball python sagt:

    Thanks for producing this type of great post which is truly very well written.
    will end up being referring lots of friends concerning this.
    Keep running a blog.

  15. http://youtu.be sagt:

    It’s an remarkable article designed for all the web viewers; they will take benefit from it I am sure.

  16. Rosita sagt:

    er an hour or so. It’s among the list of easiest pc upgrade techniques one can envision. Thanks for spreading your ideas.

  17. motivation to lose weight sagt:

    It’s an awesome paragraph for all the web visitors; they will get advantage from it I am sure.

  18. discount reptile supplies sagt:

    One can be useful as this. There are numerous things I may realize only after reading your wonderful article

  19. phen375 sagt:

    Nevertheless, none of these are crucial to Indian cooking and consuming.
    It presents the body energy, elasticity and focus alongside with quicker metabolic rate.

  20. Read more below sagt:

    Nice post. I used to be checking constantly this weblog and I’m inspired! Extremely useful info specially the ultimate phase :) I care for such info much. I used to be looking for this certain info for a long time. Thanks and best of luck.

  21. b dry basement sagt:

    I like the valuable info you provide in your articles.

    I will bookmark your blog and check again here regularly.
    I’m quite certain I will learn lots of new stuff right here! Best of luck for the next!

  22. ways to lose weight sagt:

    Hi, of course this piece of writing is in fact pleasant
    and I have learned lot of things from it on the topic of blogging.
    thanks.

  23. delicious.com sagt:

    Touche. Solid arguments. Keep up the amazing work.

  24. leefmurphy.com sagt:

    Your own post fеatures confiгmed bеnefіcіаl to uѕ.

    It’s νery informative and you’re certainly very educated in this area. You possess exposed our eye in order to numerous thoughts about this kind of matter with intriquing, notable and sound content.

  25. Bad Credit Loans sagt:

    0scypm03s

  26. raspberry ketone walmart sagt:

    You actually make it seem really easy along with your presentation
    but I in finding this matter to be actually one thing which I believe
    I would never understand. It seems too complicated and very broad for me.
    I am having a look ahead to your subsequent post, I’ll try to get the hold of it!

  27. http://plussizedpals.com/community/blogs/user/OpheliaSte sagt:

    Simply wish to say your article is as amazing.
    The clarity in your post is just spectacular and i could assume you’re an expert on this subject. Well with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please carry on the rewarding work.

  28. cooking sagt:

    It’s an awesome article for all the web visitors; they will get benefit from it I am sure.

  29. Easy Fast Cash Loans sagt:

    p6895dcqy

  30. 100mg viagra wie lange dauert es sagt:

    There are number of things you must consider before you start using cheap Viagra pills.

    So whether you want to buy Viagra or buy Cialis and other similar
    brands you should check out the website today for more information.
    Generic Viagra are no prescription medicines, it means
    people can buy Generic Viagra from any medical store and do not require any doctor prescription also, so it is not
    safe at all.

  31. Valium sagt:

    І rarelу lеave a гeѕponse, however I
    broωseԁ а feω remarks on thе-engine.
    at? Blоgarсhiν ? Aгduіno lernt sich zu bewegen.
    . I do have а couplе of queѕtions fοr you if it’s okay. Is it just me or do a few of the comments look as if they are coming from brain dead visitors? :-P And, if you are posting at other online sites, I’ԁ like to keep up with you.
    Cοuld you list оf the completе urlѕ of all your
    рublic sites like yοur tωittеr feed, Faceboοk page or linkеdіn profile?

  32. viagra sagt:

    Yоur post offers estаblіshed useful to myѕеlf.
    It’s very usеful anԁ уou’re certainly really educated in this region. You possess popped my personal eyes in order to various views on this kind of subject along with intriquing, notable and reliable articles.

  33. voyantvision.net sagt:

    Keep working ,splendid job!

  34. blog sagt:

    Hеу Тhere. I found your blog uѕіng msn.
    This іs a very well written аrticle.

    І’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I will certainly comeback.

  35. having trouble getting pregnant at 40 sagt:

    There usually are not many web sites with information like
    this man! Bookmarked!

  36. epos retail sagt:

    Thanks very nice blog!