Wiki » Historique » Version 82
Sylvain Bentz, 27/01/2016 23:52
| 1 | 77 | Sylvain Bentz | h1. LINK Raspberry-Arduino |
|---|---|---|---|
| 2 | |||
| 3 | 25 | Sylvain Bentz | [[Arduino - Raspberry Pi w/ USB]] |
| 4 | |||
| 5 | [[ArduinoLampone]] |
||
| 6 | |||
| 7 | 58 | Sylvain Bentz | |
| 8 | 63 | Sylvain Bentz | |
| 9 | 72 | Sylvain Bentz | h2. Bibliothèques pour l'Arduino http://playground.arduino.cc/Main/LibraryList#Comm |
| 10 | 1 | Sylvain Bentz | |
| 11 | 74 | Sylvain Bentz | |
| 12 | _Wire Library (I2C)_ |
||
| 13 | https://www.arduino.cc/en/Reference/Wire |
||
| 14 | |||
| 15 | 76 | Sylvain Bentz | _Pour de la communication *entre Arduinos* !_ Ca a l'air génial ! |
| 16 | 67 | Sylvain Bentz | https://github.com/gioblu/PJON : Among many features : "you have the complete access to the microntroller ready to be used, as usual, untouched". |
| 17 | |||
| 18 | 71 | Sylvain Bentz | _Software I2C library_ | Guère plus grande que _Wire_ |
| 19 | 67 | Sylvain Bentz | http://playground.arduino.cc/Main/SoftwareI2CLibrary |
| 20 | 68 | Sylvain Bentz | |
| 21 | 71 | Sylvain Bentz | _Wireless sensor node (WSN) network protocol for arduino_ | (Pour des futures bornes de géolocalisation ?) |
| 22 | 68 | Sylvain Bentz | https://code.google.com/p/arduinode/ |
| 23 | |||
| 24 | 58 | Sylvain Bentz | |
| 25 | |||
| 26 | 63 | Sylvain Bentz | |
| 27 | 58 | Sylvain Bentz | h2. Applis/Biblio pour la Raspberry Pi (Java, C, Python...tout ce qu'on veut) |
| 28 | 29 | Sylvain Bentz | |
| 29 | 36 | Sylvain Bentz | _Interfacing with software_ |
| 30 | 1 | Sylvain Bentz | http://playground.arduino.cc/Main/InterfacingWithSoftware |
| 31 | |||
| 32 | 51 | Sylvain Bentz | > http://ardulink.org/ : Programme en Java (marche avec port USB. Et avec I2C ? sais pas :( ) |
| 33 | 39 | Sylvain Bentz | >> How to install Ardulink on your Raspberry PI |
| 34 | >> http://www.ardulink.org/how-to-install-arduino-pc-link-on-raspberry-pi/ |
||
| 35 | 38 | Sylvain Bentz | |
| 36 | 52 | Sylvain Bentz | > http://playground.arduino.cc/Interfacing/Delphi : libère l'USB "For instance, the switch could be replaced with a temperature sensor and the LED with a relay to turn a home's heating on." |
| 37 | 35 | Sylvain Bentz | |
| 38 | 53 | Sylvain Bentz | > http://sglez.org/2008/08/05/interfacing-arduino-with-c-and-libserial/ : C++ |
| 39 | 1 | Sylvain Bentz | |
| 40 | |||
| 41 | 63 | Sylvain Bentz | |
| 42 | 64 | Sylvain Bentz | h2. Raspberry - Arduino w/ I2C |
| 43 | 63 | Sylvain Bentz | |
| 44 | 1 | Sylvain Bentz | warning. Possible problème de tension entre la RasPi (3.3V) et l'arduino qui PEUT être à 5V (Uno, Nano et Mega = 5V) |
| 45 | 66 | Sylvain Bentz | |
| 46 | tip. Des solutions simples existent avec quelques résistances http://playground.arduino.cc/Main/I2CBi-directionalLevelShifter |
||
| 47 | |||
| 48 | 63 | Sylvain Bentz | |
| 49 | 49 | Sylvain Bentz | h3. Tutos |
| 50 | 1 | Sylvain Bentz | |
| 51 | 36 | Sylvain Bentz | _Tuto de Julien Enselme ! : La communication série avec arduino (et Python)_ |
| 52 | 35 | Sylvain Bentz | http://www.jujens.eu/posts/2014/May/05/Communication-serie/ |
| 53 | |||
| 54 | 36 | Sylvain Bentz | _Raspberry Pi – Arduino – Lier les deux via le bus I2C_ |
| 55 | 8 | Tarek Benhnini | Logiciels utilisés : |
| 56 | 1 | Sylvain Bentz | Arduino -> Biblio Wire |
| 57 | 21 | Sylvain Bentz | Raspi -> Python |
| 58 | http://www.pihomeserver.fr/2013/08/13/raspberry-pi-home-server-arduino-lier-les-deux-via-bus-i2c/ |
||
| 59 | 1 | Sylvain Bentz | |
| 60 | 82 | Sylvain Bentz | _Raspberry-Pi - Arduino par l'intermédiaire d'un bus I2C_ *Au S7, on (sbentz et tbenhnini) s'en est inspiré pour faire communiquer Arduino et Raspi* |
| 61 | 1 | Sylvain Bentz | http://mchobby.be/wiki/index.php?title=ArduPi-I2C |
| 62 | 68 | Sylvain Bentz | |
| 63 | 1 | Sylvain Bentz | _Arduino Serial communication_ |
| 64 | 34 | Sylvain Bentz | http://www.oxgadgets.com/2011/07/arduino-serial-communication.html |
| 65 | |||
| 66 | 36 | Sylvain Bentz | |
| 67 | 19 | Sylvain Bentz | h3. Doc |
| 68 | 56 | Sylvain Bentz | |
| 69 | 57 | Sylvain Bentz | notice. Arduino lit octet par octet, cf fonction read() |
| 70 | 13 | Sylvain Bentz | |
| 71 | 65 | Sylvain Bentz | notice. Arduino peut interpréter l'octet comme nombre (type int) ou string (type char) |
| 72 | |||
| 73 | 37 | Sylvain Bentz | _Connecteurs I2C de l'Arduino Nano : A4 (SDA) et A5 (SCL)_ |
| 74 | 34 | Sylvain Bentz | https://www.arduino.cc/en/Main/ArduinoBoardNano |
| 75 | 17 | Sylvain Bentz | |
| 76 | 75 | Sylvain Bentz | _Wire Library (I2C)_ |
| 77 | https://www.arduino.cc/en/Reference/Wire |
||
| 78 | |||
| 79 | 48 | Sylvain Bentz | _Wikipedia I2C_ |
| 80 | [[wikipedia>I²C]] |
||
| 81 | 78 | Tarek Benhnini | |
| 82 | h1. Raspberry Serial Communication |
||
| 83 | 1 | Sylvain Bentz | |
| 84 | 80 | Sylvain Bentz | warning. Toujours faire attention au 3.3V de la Raspi, ajoutez des résistances si nécessaire |
| 85 | |||
| 86 | tip. pour résoudre le problème, cf http://blog.oscarliang.net/raspberry-pi-and-arduino-connected-serial-gpio/ |
||
| 87 | 78 | Tarek Benhnini | |
| 88 | h2. Bibliothèque python pySerial: https://pypi.python.org/pypi/pyserial |
||
| 89 | |||
| 90 | h3. Documentation pySerial : http://pythonhosted.org/pyserial/ |
||
| 91 | |||
| 92 | h3. Tutos |
||
| 93 | |||
| 94 | _Lecture/Ecriture sur le port série de la Raspi:_ |
||
| 95 | http://www.instructables.com/id/Read-and-write-from-serial-port-with-Raspberry-Pi/ |
||
| 96 | |||
| 97 | h3. Carte moteur MD25 (utilisé pour l'asservissement des moteurs du grand robot) |
||
| 98 | |||
| 99 | _Documentation_: |
||
| 100 | http://www.robot-electronics.co.uk/htm/md25tech.htm |
||
| 101 | |||
| 102 | notice. Comme indiqué il y a les deux modes I2C ou Serial de disponible. Au choix.. mais le mode série est beaucoup plus clair. |
||
| 103 | 81 | Sylvain Bentz | |
| 104 | |||
| 105 | biblio arduio http://arduiniana.org/libraries/NewSoftSerial/ |
||
| 106 | https://www.arduino.cc/en/Reference/Serial |