iPhonem ovládané R/C auto

iPhone 3G Není to ještě ani týden co mám nový iPhone 3G a přitom jsem s ním já a bratr dokázali udělat hodně zajímavé věci. Tak nějak už k tomu bastlení máme sklony. iPhone se svým akcelerometrem a multidotykovým displayem je pro takovéhle pokusy naprosto ideální. Když jsme ho domů přinesl a zjistili jeho možnosti začalo nám vrtat hlavou jaké zajímavé „demo“ udělat. Náhodou jsme kápli na staré auto na dálkové ovládání :)

iPhonemania.cz

Článek o našem projektu vyšel i na iPhonemania.cz, kde jsou nějaké detaily navíc ;-)

Video

Stejné video na YouTube.com a na Stream.cz.

Ovládání funguje jednoduše za pomoci 5 tlačítek na displayi. Čtyři pro ovládání směru otáčení jednotlivých kol a páte pro použití akcelerometru.

Práce na projektu netrvala dlouho, tak jedno odpoledne i s vymyšlením nápadu.

Technické provedení je trochu krkolomnjší než vypadá. Schématicky to funguje iPhone (OSCemote) → WiFi → PC → Max/Msp ->Sériový port → Arduino → Originální dálkový ovladač.

Pokud máte nějaký další zajímavý nápad, který by jste rádi viděli funkční, napište do komentářů a my se pokusíme vytvořit to. Stejnětak jakýkoliv dotaz rádi zodpovíme.

OSCemote

OSCemote je aplikace, která se stará o posílání dat z iPhonu do PC. Dělá tak skrz WiFi nebo jinou sít. Užívá protokolu OpenSoundControl. Nechá se zakoupit na originálním Apple AppStore. Existuje dokonce i lite verze zdarma, ovšem bez akcelerometru.

Patch na otestování je ke stažení zde. Pro jeho chod je potřeba Max 5 runtime.

OSCemote

OSCemote


Max/Msp

Na PC připojeném ke stejné síti běží patch (program) v Maxu, který odchytává data z iPhonu, ty transformuje do jednodušší podoby, ošetří situace aby nedocházelo ke konfliktům (jízda zároveň dopředu i dozadu :D) a dál je přes sériový port posílá do Arduina.


Arduino

Arduino je jednoduchý vývojový kit s mikroprocessorem. Data která mu pošle Max/Msp zpracuje a posléze přes spínací tranzistory simuluje spojením okruhu realné sepnutí spínače na originálním ovladači :) Auto je tedy ovládáno svým vlastním ovladačem, nejsou tedy nutné žádně zásahy do jeho elektroniky.


Závěrem

Nepřehlédněte recenzi skinů pro iPhone 3g!! Pokud se vám nápad líbí, tak ho zalinkujte na Linkuj.cz !!

Zdrojové kódy a podrobná zapojení dám k dispozici pokud bude zájem.

Josef Průša ml.    101 komentářů   01. Září 2008 01:00
Další články, které by vás mohly zajímat:
Vložit komentář
1. Online hry      @ 01. Září 2008 16:18

Zlaté české hlavičky a ručičky. Paráda kucí!

2. podojkravu      @ 01. Září 2008 17:27

Heleď a nemá náhodou iphone polohovej senzor ? By se to nechalo potunit ještě tak, že by si s tydlifonem kroutil jako s volantem… :)

3. DJ Josef Průša      @ 02. Září 2008 03:21

podojkravu: Vsak ono to tak funguje ;) Sleduj video od 23. vteřiny ;)

4. Hubis      @ 02. Září 2008 16:00

jj, jako mobil je to jen nafouknutá reklamní bublina, tak aspoň ovládač na autíčko … snad dotovaný … :-)))

5. CrazyDog      @ 02. Září 2008 20:53

Tak tohle je bomba. Skvělý nápad.

6. Lupien      @ 03. Září 2008 20:57

Sakra chlapci,tak na toto by som ani nahodou neprisiel.Voo­ov.Uplna parada.Trosku zlozite,ale coool. Lubos.Blava „nee“

7. xxxxanonym      @ 04. Září 2008 20:01

chtel sem se hzeptat jak daleko muzete byt od pocitace s tim autem a iphonem

8. PetrK      @ 04. Září 2008 20:38

well done, mas link u me na webu :)

9. marek      @ 05. Září 2008 13:01

rad by som sa spytal ci ten procesor treba kuupit alebo ci to uz rc auto ma v sebe?inaac skvely napad…

10. AbE      @ 05. Září 2008 14:01

Gratulačka, zlatý český rurčičky a hlavičky :) byla by bomba dát na to autíčko ještě nějakou webcameru a vidět to pří ovládání autíčka na iPhone – ale to už bych chtěl asi moc.. JSI HUSTEJ

11. HONZA      @ 05. Září 2008 18:57

KLUCI NECHCETE UDELAT PODROBNY NAVOD? TREBA JAK TO VSECKO NASTAVIT, JA NASTAVIT ARDUINO?MYLSIM ZE NEJSEM SAM KDO BY TO UVITAL.UZ O VAS PISOU I NA ZAHRANICNICH FORECH .. :)

12. DJ Josef Prusa      @ 06. Září 2008 18:26

Ono to neni tak jednoduche.

Publikovat zdrojaky a patch opravdu problem neni, dokonce jsem je uz na pozadani emailem poslal.

Chci se vyhnout tomu aby mi psalo 100 denne lidi proc jim to nefunguje. A ja to se vsemi musel resit.

Ne kazdy zlvadne upravit program pro Arduino v C a ne kazdy umi zachazet s Max/Msp tak aby to upravil napriklad pro normalni model, ktery zataci normalnin zpusobem.

Pokud to pro vas neni problem a chcete zdrojove kody, ozvete se na email a ja vse moc rad zaslu :)

13. Olivier      @ 08. Září 2008 13:55

LUXUS!!

Škoda že i laser shower neměla nějaké takové zajímavé využití, i když je mi jasné že ty součástky nejsou zadarmo.

Ty efekty z vodárny mě fakt dostaly – bez nich by to nebylo ono ;)

Držím palce do dalších ‚projektů‘!

14. petan      @ 08. Září 2008 15:48

zdravim, měl sem podobny napad, ale moje znalosti prozatim nejsou takove abych byl schopny to zrealizovat, myslite že byste se mi mohl ozvat na email? rad bych se domluvil na pomoci realizace podobneho zařizeni, předem děkuji

15. chochy      @ 08. Září 2008 22:06

pekne :) dneska auticko zejtra helikoptera hosi :)

16. Bedřich      @ 11. Září 2008 15:46

Zdarec ! ste fakt borci .. to bych chtěl .. dělám RC letadla a mám tu jedno co by pro to bylo OK .. jenže sem uplny pako na tyhlenc věci .. škoda

Už se těším na novy projekt .. tohle je BOMBA !!!

17. Rubanoff      @ 23. Září 2008 17:46

What is the song in the video called? Great tune ;P

18. andma      @ 08. Března 2009 14:48

hi, where could I download this max/msp patch ?

thank you

19. smile04      @ 19. Dubna 2009 04:53

moc prosim jestli by jste min mohli poslat jak jste to napsali aby to šlapalo v tom wiring pro arduino.nebylo by možné dát to ke stažení na vašich stránkách(blogu)?

20. found it      @ 10. Května 2009 04:59

the arduino code is here: http://code.google.com/p/iphonerccar/

i just asked him over skype spent an afternoon trying to find it

21. Ladin      @ 15. Května 2009 16:27

Jsi vážně dobrý!!!

22. MarA      @ 07. Června 2009 21:41

Zdravicko, chtěl bych poprosit o ty zdrojové kody a pokud to bude i možno tak podrobná zapojení.. Dikes

23. roger    parier-sport.info  @ 15. Července 2009 19:49

Great post Dude ! parier sport

24. bingo770    bingofr.com/jouez-au...  @ 08. Září 2009 19:11

Very interesting !

25. Benoit    casino-fantastique.f...  @ 22. Září 2009 10:00

Great post Dude

26. Quiretu      @ 09. Října 2009 16:23

Zdarec ! ste fakt borci .. to bych chtěl .. dělám RC letadla a mám tu jedno co by pro to bylo OK .. jenže sem uplny pako na tyhlenc věci .. škoda watch fame online | watch 500 days of summer online | watch paranormal activity online | watch zombieland online | the invention of lying online | watch jennifer's body online | watch harry potter and the half blood prince | watch 2012 online | watch gamer online | watch couples retreat online

27. shreyas.cdcgs    clickresponse.net/se...  @ 31. Prosince 2009 11:18

This article simply ROCKS ! That was a great read for me. keep it up with all the good work..

SEO Services

28. Rich Garry    seoservicesindia.mob...  @ 05. Ledna 2010 08:58

Generally I do not post on sites, but I would like to say that this article really forced me to do so! Thanks, really nice article.

Web SEO India

really helpful information in there

30. Online Sweepstakes    winprizesonline.com/  @ 21. Ledna 2010 08:33

Nice post and looking forward for future updates.

Thanks http://www.winprizesonline.com/

31. nj child support    weinbergerlawgroup.c...  @ 08. Února 2010 10:44

It's Rocking !!! The Post is Too much Interesting.

32. Mark Medlock    greetsiel-feriendomi...  @ 14. Února 2010 18:04

This is really gorgeous work.

33. Colorado Mortgage    lendingcolorado.com  @ 19. Února 2010 12:50

his is really a nice iphone + rc helicopter combination.hi everyone i was just sitting here thinking about how you can control stuff remotely like unlocking a car door ,I think i got a answer

34. Website SEO    clickresponse.net/  @ 02. Března 2010 11:49

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.

35. Website SEO    clickresponse.net/  @ 02. Března 2010 11:51

Great model having lots of facilities. Thanks

36. Thai Restaurant    thaichilli.co.nz  @ 03. Března 2010 16:53

Good job! THANKS! You guys do a great website, and have some great contents. Keep up the good work. best regards, raw food ABCDE

Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work..

38. sonnerie portable    sonnerieportablegrat...  @ 18. Března 2010 08:39

Short and clear enough to get your article. Really interesting! Good work! http://sonnerieportablegratuit.com

39. SEO COMPANY    ddsagency.com/  @ 22. Března 2010 06:31

Thanks for sharing this powerful information.That's ve­ry helpful and interesting.

Great technology used in the i phone 3G keep it up.Good work

41. SEO COMPANY    ddsagency.com/  @ 23. Března 2010 06:19

The post is great read and very informative about the i phone 3G, its really worth visiting this site.

great ..this is really appreciable post and very useful information providpostinged in this post

43. SEO Services India    seoservicesindia.mob...  @ 25. Března 2010 13:02

Thanks for poat

44. SEO Services India    seoservicesindia.mob...  @ 25. Března 2010 13:02

Thanks for poat

45. WHIRLPOOL PARTS    xpressapplianceparts...  @ 25. Března 2010 13:26

„IPhone 3G“ is very attractive and useful. I have „IPhone 3G“. Thanks for the information.

46. list of healthcare    satyajit.elvestechno...  @ 29. Března 2010 13:01

nice to see u again…keep it up

I love iPhone. I have lot of collection of iPhones

I admire time and effort involved in your high quality and informative articles. But at the same time they are simple to understand and helpful. I am looking forward to seeing your future updates.

49. Jokes    onlinefunworld.com  @ 13. Dubna 2010 07:54

Great! Thanks for the great informative post and your effort. I think the above article is valuable for all concerned people. For me the Informations are really really useful. I've Bookmarked this page for future reference.

Thank you Robin Jokes

50. food pyramid    foodpyramidguru.com  @ 15. Dubna 2010 10:51

I love the way of your blog posts, short but not and informative, yet you get enough of them. Makes me wishing to learn more. I will make sure to check every day!

Bye

Zlaté české hlavičky a ručičky.

May be it's the first time for me visiting your blog, but I know it contains so many useful things here. thanks a lot.

53. SEO Services    luminous-solutions,n...  @ 22. Dubna 2010 20:27

Thanks for sharing… It really helped..

54. SEO Services    luminous-solutions.n...  @ 22. Dubna 2010 20:27

Thanks for sharing… It really helped..

55. airbrush makeup    airbrushmakeupreview...  @ 02. Května 2010 03:32

Excellent post. Thanks a lot for this!

56. Lida    lidakapsulu.org  @ 03. Května 2010 12:38

Log time oof look

57. Marc    sportytrader.com  @ 10. Května 2010 15:40

great :) thank you, i will try it out.

58. Free Online Dating    onlinedatingplaza.co...  @ 12. Května 2010 04:32

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.Your blog provided us valuable information to work on.You have done a marvellous job!I've Bookmarked this page for future reference.

Thank you Mr Date

Resources like the one you mentioned here will be very useful to me! I will post a link to this page on my blog. I am sure my visitors will find that very useful.

61. ucuz biber hapi    ucuzbiberhapi.com  @ 19. Května 2010 09:51

jako mobil je to jen nafouknutá reklamní bublina, tak aspoň ovládač na autíčko

biber hapi

lw6090

acai berry

maurers

fx15

62. JJc    hippieup.com  @ 19. Května 2010 18:37

Nazval jsem to úžasné. To je dobrý obsah. Děkuji vám pane!!!!

63. JJc    hippieup.com  @ 19. Května 2010 18:39

Nazval jsem to úžasné. To je dobrý obsah. Děkuji vám pane!!!!

64. Nice Post    greentea1.com  @ 22. Května 2010 12:17

Wonderful! I really did not think about this topic before from your point of view. But now I am thinking about your idea. I've also discussed with my friends about your post. Thank you .I've bookmarked this page for my reference. Mandy Green Tea

65. India manufacturer    classifieds11.com  @ 24. Května 2010 13:24

Please continue this great job…so good luck…Very useful resources you provide here…

66. registry cleaners    cleanerreview.com/  @ 27. Května 2010 09:24

chtel sem se hzeptat jak daleko muzete byt od pocitace s tim autem a iphonem

Really Appreciated to you for this post

Great read thanks for the post

69. Monte design glider    tottini.com  @ 01. Června 2010 17:02

Hey there, thank you so much for the article, I am just loving your work, just keep us updated, will be back for more.

Nicely presented information in this post, I prefer to read this kind of stuff. The quality of content is fine and the conclusion is good. Thanks for the post.

loved the way you exlained things. Much better many here

72. Builders in pune    saarrthigroup.com  @ 05. Června 2010 12:11

Admiring the time and effort you put into your blog and detailed information you offer!

73. Local classifieds india    classified11.com  @ 05. Června 2010 12:12

Really Appreciated to you for this post

This is an excellent thought provoking post.

75. Windows cleaner    regbooster.com/  @ 13. Června 2010 05:24

I really appreciate the post. It is nicely written and it contains many good things for me. I am glad to find your impressive way of writing the post. Now it become easy for me to understand and implement the concept. This was actually what I was looking for, and I am glad that I finally came here!Thanks for sharing such a informative post.

Thank you Christin cleaner

76. article buddy    articlebuddy.org  @ 14. Června 2010 07:08

Video demonstration is really excellent. Iphone is capturing the market very fast.

I must say that overall I am really impressed with this blog.It is easy to see that you are passionate about your writing. If only I had your writing ability I look forward to more updates and will be returning.

78. Monte Glider    tottini.com  @ 20. Června 2010 15:08

My birthday is coming very soon .So i was thinking of a gift that i want from my parents ,when i visited here and saw this very good iPhone 3g and my heart is stick to it.Now i want this gift from my parents on my birthday.So thank you for sharing it here.

Nice your Posting…
Thank You...............

80. Paul    infopoool.com/  @ 21. Června 2010 08:31

Really very fabulous post it astonished me so much.

Your post give me some idea. Thank you.

82. lono      @ 22. Června 2010 23:00

Velmi zajímavý článek, díky za sdílení. cam

83. supplier directory    classifieds11.com  @ 24. Června 2010 07:40

good look!!! I like this blog very much… so I want to include it in my report........

84. Has Tekne    hasteknecilik.com  @ 30. Června 2010 12:40

I like very much the writings and pictures and explanations in your adress so I look forward to see your next writings. I congratulate you.

85. Ucuz Tatil Yerleri    ucuztatilnet.com  @ 30. Června 2010 12:41

ucuz tatil yerleri

86. Otobüsler    otobusler.net  @ 30. Června 2010 12:41

Otobüsler good thanks.

87. Oto Aksesuarlar    otoaksesuarlar.com  @ 30. Června 2010 12:42

I like very much the writings and pictures and explanations in your adress so I look forward to see your next writings. I congratulate you.

89. Funky handmade gifts    everestmart.com/  @ 06. Července 2010 04:50

Hi webmaster, commenters and everybody else – The blog was absolutely fantastic! Lots of great information and inspiration, both of which we all need – Keep ‚em coming… you all do such a great job at such Concepts… can‘t tell you how much I, for one appreciate all you do!I will revisit your website for additional information

Thank you Funky handmade gifts

90. Quality Kukri    kukrimart.com/  @ 06. Července 2010 13:30

I've never even thought about commenting till now. I guess if I really like a post I find myself checking the external links for more and favoriting (if that is a word) the post instead.From now on though I'll definitely try and drop a comment every so often.

Thank You Kukrimart

91. Biber Hapı    biberhapiburada.net  @ 08. Července 2010 12:08

The FDA is proposing new rules on consumer epresentatives would rescind the ban due to its.

Your blog is a great one. What really impresses me is that you are correctly mentioned that there are thousands of tools that are available to create a website or launch one but what matters is that you choose the right one, the one that gives you all that is actually needed.

95. bookmakers bonus    freebetsbonuscodes.c...  @ 20. Července 2010 08:56

Superbe article, vraiment simple et utile. Bravo pour sa mise en ligne. C’est ce genre d’information que le public (et moi en particulier) recherche.

96. Buy Steroids    steroidsbuy.com/  @ 20. Července 2010 08:56

Merci pour ce commentaire qui me donne envie de continuer à écrire ce genre d’articles

97. leather handbags    adag.com.au  @ 21. Července 2010 05:44

Thanks very much, very good.

98. expert seo services    oneseoservices.com  @ 23. Července 2010 14:59

hi great post thanks.

mens leather jackets

99. Seo Expert    oneseoservices.com  @ 23. Července 2010 15:01

hi great post.

expert seo services

100. P90X    extremefitnessplans....  @ 31. Července 2010 00:42

great posting- I love it

101. insanity workout    extremefitnessplans....  @ 31. Července 2010 00:44

interesting and quality post thanks for the good info. p90× workout insanity workout turbo fire