Bonjour à tous,
Je viens de commencer un projet visant à faire un Raspberry Pi roulant, le tout piloté par un iPhone.
Je compte expliquer la démarche en plusieurs étapes, mises en ligne au fur et à mesure où je reçois le matériel nécessaire.
La première partie est disponible ici : http://goddess-gate.com/projects/fr/ras ... ngraspip01
Une vidéo du concept de pilotage par l'iPhone que j'ai mis en place pour valider l'aspect technique : http://www.youtube.com/watch?v=zaB3agbCoIY
Le code que j'utilise pour ce projet, tant côté serveur que iPhone (amené à évoluer fortement au cours de l'avancée du projet) : https://github.com/aboudou/movingraspi
La seconde partie sera en ligne fin décembre 2012, et la troisième partie courant janvier 2013.
Bonne soirée à tous.
MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Last edited by aboudou on Mon Jun 03, 2013 9:57 am, edited 1 time in total.
https://goddess-gate.com/ - My main website
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Bonjour tout le monde,
La seconde partie, concernant la communication entre le Raspberry Pi et l'iPhone est maintenant en ligne : http://goddess-gate.com/projects/fr/ras ... ngraspip02
Bonnes fêtes
La seconde partie, concernant la communication entre le Raspberry Pi et l'iPhone est maintenant en ligne : http://goddess-gate.com/projects/fr/ras ... ngraspip02
Bonnes fêtes

Last edited by aboudou on Mon Jun 03, 2013 9:56 am, edited 1 time in total.
https://goddess-gate.com/ - My main website
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
tiens, j'ai fait la même chose avec webiopi, pour le prochain magpi 
une astuce : pas besoin de transistors entre le h-bridge et le Pi !
tu peux controler le H-bridge avec des signaux TTL 3.3V.

une astuce : pas besoin de transistors entre le h-bridge et le Pi !
tu peux controler le H-bridge avec des signaux TTL 3.3V.
WebIOPi - Raspberry Pi REST Framework to control your Pi from the web
http://store.raspberrypi.com/projects/webiopi
http://code.google.com/p/webiopi/
http://trouch.com
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Ah, je suis curieux de voir la technique utilisée, même s'il est un peu tard pour changer mes plans.
Tu as une URL qui explique comment tu fais ?
Merci
Tu as une URL qui explique comment tu fais ?
Merci

https://goddess-gate.com/ - My main website
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Moi j'ai fait discuté mon Pi avec ma Nintendo DS ^^
Et bien ça fait pareil qu'avec un Iphone en fait !
Et bien ça fait pareil qu'avec un Iphone en fait !
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
c'est pas difficile de relier un H-bridge au raspberry :
tu relies chacune des 6 entrées du H-bridge à une GPIO configurée en sortie.
VCC du h-bridge au 5V du Pi.
VSS du h-bridge au pole + de ton alimentation
et tu relie les masses batterie/Pi/h-bridge ensemble
tu relies chacune des 6 entrées du H-bridge à une GPIO configurée en sortie.
VCC du h-bridge au 5V du Pi.
VSS du h-bridge au pole + de ton alimentation
et tu relie les masses batterie/Pi/h-bridge ensemble
WebIOPi - Raspberry Pi REST Framework to control your Pi from the web
http://store.raspberrypi.com/projects/webiopi
http://code.google.com/p/webiopi/
http://trouch.com
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
OK, je n'avais pas compris que tu parlais d'utiliser un H-Bridge tout prêt. J'avais aussi pensé à cette solution, mais je me suis dit que c'était plus « fun » de faire son propre H-Bridge (et aussi plus instructif sur le fonctionnement de ce montage).
Merci pour la précision
Merci pour la précision

https://goddess-gate.com/ - My main website
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
ah ok, j'avais mal compris la conclusion de ta seconde partie.
je pensais que tu utilisais les transistors pour faire un conversion 3.3 -> 5V et que tu allais mettre un CI H-bridge derrière.
dans le magpi de decembre, il ont utilisé des transistors comme toi :
http://issuu.com/themagpi/docs/issue_8_ ... ode=window
je pensais que tu utilisais les transistors pour faire un conversion 3.3 -> 5V et que tu allais mettre un CI H-bridge derrière.
dans le magpi de decembre, il ont utilisé des transistors comme toi :
http://issuu.com/themagpi/docs/issue_8_ ... ode=window
WebIOPi - Raspberry Pi REST Framework to control your Pi from the web
http://store.raspberrypi.com/projects/webiopi
http://code.google.com/p/webiopi/
http://trouch.com
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Oui, mon utilisation est la même que celle du MagPi #8. C'est d'ailleurs de là qu'est partie mon idée du RasPi piloté par iPhone.
https://goddess-gate.com/ - My main website
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
sinon, quite à utiliser des sockets, tu peux pousser l'optimisation et envoyer juste un octet par commande :
0x00:stop
0x01:avance
0x02:recule
0x03:tourneDroite
0x04:tourneGauche
tu peux aussi utiliser les 4 premiers bit pour le moteur gauche et les 4 derniers pour le droit.
0x00:stop
0x01:avance
0x02:recule
0x03:tourneDroite
0x04:tourneGauche
tu peux aussi utiliser les 4 premiers bit pour le moteur gauche et les 4 derniers pour le droit.
WebIOPi - Raspberry Pi REST Framework to control your Pi from the web
http://store.raspberrypi.com/projects/webiopi
http://code.google.com/p/webiopi/
http://trouch.com
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Le but n'est pas d'optimiser, mais d'être clair. Et un message « textuel » est plus lisible que de simples codes.
Ça permet d'avoir une base de travail compréhensible par un maximum de personnes, quitte à ce que chacun adapte à sa sauce et à ses besoins.
Ça permet d'avoir une base de travail compréhensible par un maximum de personnes, quitte à ce que chacun adapte à sa sauce et à ses besoins.
https://goddess-gate.com/ - My main website
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
un octet, ça peut aussi être un caractère, comme ça c'est à la fois optimisé et clair 
'S' Stop, 'F' Forward, 'B' Backward, 'L' , 'R'
ça permet de faire un switch plutot qu'un ensemble de if/elif, ou d'utiliser un tableau de mapping octet/caractère => fonction

'S' Stop, 'F' Forward, 'B' Backward, 'L' , 'R'
ça permet de faire un switch plutot qu'un ensemble de if/elif, ou d'utiliser un tableau de mapping octet/caractère => fonction
WebIOPi - Raspberry Pi REST Framework to control your Pi from the web
http://store.raspberrypi.com/projects/webiopi
http://code.google.com/p/webiopi/
http://trouch.com
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Bonjour tout le monde,
La troisième partie, avec le résultat final est maintenant en ligne : http://goddess-gate.com/projects/fr/ras ... ngraspip03
La troisième partie, avec le résultat final est maintenant en ligne : http://goddess-gate.com/projects/fr/ras ... ngraspip03
Last edited by aboudou on Mon Jun 03, 2013 9:54 am, edited 1 time in total.
https://goddess-gate.com/ - My main website
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Bonjour,
beau projet, félicitations.
Avec quel logiciel dessines-tu tes schémas de composants électroniques ?
A+
beau projet, félicitations.
Avec quel logiciel dessines-tu tes schémas de composants électroniques ?
A+
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Merci.
Pour les schémas, j'utilise Fritzing : http://fritzing.org/ avec la bibliothèque Adafruit pour les composants non intégrés en standard (avec entre autres le Raspberry Pi) : https://github.com/adafruit/Fritzing-Library
Pour les schémas, j'utilise Fritzing : http://fritzing.org/ avec la bibliothèque Adafruit pour les composants non intégrés en standard (avec entre autres le Raspberry Pi) : https://github.com/adafruit/Fritzing-Library
https://goddess-gate.com/ - My main website
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Merci pour l'info.
A+
A+
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
Salut à toi,
Super projet je veux également me lancer dans ce genre d'applications avec mon Pi. Je vais te suivre de très prêt.
Merci de partager ce genre de projet aussi bien détaillé.
@+
Super projet je veux également me lancer dans ce genre d'applications avec mon Pi. Je vais te suivre de très prêt.
Merci de partager ce genre de projet aussi bien détaillé.
@+
Re: MovingRaspi : un Raspberry Pi roulant piloté par iPhone
You're welcome 

https://goddess-gate.com/ - My main website
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège
http://raspberrypi.goddess-gate.com/ - A website about (and hosted by) my Raspberry Pi
https://twitter.com/boudouarnaud - Follow me on Twitter
http://www.fablab-sud31.fr/ - Fab Lab Sud31-Val d'Ariège