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);
}





Bruno Hautzenberger

23. Juli 2012 um 05:41
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.
02. August 2012 um 11:46
JpKtyo , [url=http://yhncanhiexds.com/]yhncanhiexds[/url], [link=http://ygxnxvehhnwn.com/]ygxnxvehhnwn[/link], http://kyvxdmngavfu.com/
09. August 2012 um 12:18
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!
15. September 2012 um 21:54
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!
20. September 2012 um 16:58
räum doch mal die ganzen SPAMBOTS auf ….
10. Januar 2013 um 23:02
Thanks for sharing your info. I really appreciate your efforts and I
am waiting for your further post thanks once again.
15. Januar 2013 um 22:28
Yes! Finally someone writes about justin birber.
27. Januar 2013 um 04:49
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?
03. Februar 2013 um 13:41
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.
05. Februar 2013 um 01:46
I am genuinely thankful to the owner of this web page who has shared this wonderful post at at this time.
12. Februar 2013 um 10:21
There are different causes why people favor this belt.
17. Februar 2013 um 18:09
Thanks to my father who stated to me concerning this weblog, this blog
is genuinely amazing.
18. Februar 2013 um 10:54
I could not resist commеntіng.
Vеry wеll wгіtten!
20. Februar 2013 um 16:13
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.
26. Februar 2013 um 00:20
It’s an remarkable article designed for all the web viewers; they will take benefit from it I am sure.
28. Februar 2013 um 10:36
er an hour or so. It’s among the list of easiest pc upgrade techniques one can envision. Thanks for spreading your ideas.
01. März 2013 um 03:10
It’s an awesome paragraph for all the web visitors; they will get advantage from it I am sure.
01. März 2013 um 20:18
One can be useful as this. There are numerous things I may realize only after reading your wonderful article
03. März 2013 um 15:40
Nevertheless, none of these are crucial to Indian cooking and consuming.
It presents the body energy, elasticity and focus alongside with quicker metabolic rate.
05. März 2013 um 21:41
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.
06. März 2013 um 15:28
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!
14. März 2013 um 06:56
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.
15. März 2013 um 13:59
Touche. Solid arguments. Keep up the amazing work.
19. März 2013 um 17:16
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.
20. März 2013 um 00:31
0scypm03s
21. März 2013 um 19:33
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!
22. März 2013 um 22:17
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.
25. März 2013 um 08:19
It’s an awesome article for all the web visitors; they will get benefit from it I am sure.
26. März 2013 um 04:34
p6895dcqy
28. März 2013 um 01:13
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.
28. März 2013 um 14:56
І rarelу lеave a гeѕponse, however I
And, if you are posting at other online sites, I’ԁ like to keep up with you.
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?
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?
31. März 2013 um 09:43
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.
01. April 2013 um 22:31
Keep working ,splendid job!
02. April 2013 um 08:08
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.
06. April 2013 um 08:23
There usually are not many web sites with information like
this man! Bookmarked!
06. April 2013 um 18:56
Thanks very nice blog!