Projet

Général

Profil

Wiki » Historique » Version 85

« Précédent - Version 85/89 (diff) - Suivant » - Version actuelle
Sylvain Bentz, 28/01/2016 00:04


h1. LINK Raspberry-Arduino

Arduino - Raspberry Pi w/ USB

ArduinoLampone

h2. Bibliothèques pour l'Arduino http://playground.arduino.cc/Main/LibraryList#Comm

Wire Library (I2C)
https://www.arduino.cc/en/Reference/Wire

Pour de la communication entre Arduinos ! Ca a l'air génial !
https://github.com/gioblu/PJON : Among many features : "you have the complete access to the microntroller ready to be used, as usual, untouched".

Software I2C library | Guère plus grande que Wire
http://playground.arduino.cc/Main/SoftwareI2CLibrary

Wireless sensor node (WSN) network protocol for arduino | (Pour des futures bornes de géolocalisation ?)
https://code.google.com/p/arduinode/

h2. Applis/Biblio pour la Raspberry Pi (Java, C, Python...tout ce qu'on veut) http://playground.arduino.cc/Main/InterfacingWithSoftware

http://ardulink.org/ : Programme en Java (marche avec port USB. Et avec I2C ? sais pas :( )

How to install Ardulink on your Raspberry PI
http://www.ardulink.org/how-to-install-arduino-pc-link-on-raspberry-pi/

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."

http://sglez.org/2008/08/05/interfacing-arduino-with-c-and-libserial/ : Serial et C++

h2. Raspberry - Arduino w/ I2C

warning. Possible problème de tension entre la RasPi (3.3V) et l'arduino qui PEUT être à 5V (Uno, Nano et Mega = 5V)

tip. Des solutions simples existent avec quelques résistances http://playground.arduino.cc/Main/I2CBi-directionalLevelShifter

h3. Tutos

Tuto de Julien Enselme ! : La communication série avec arduino (et Python)
http://www.jujens.eu/posts/2014/May/05/Communication-serie/

Raspberry Pi – Arduino – Lier les deux via le bus I2C
Logiciels utilisés :
Arduino -> Biblio Wire
Raspi -> Python
http://www.pihomeserver.fr/2013/08/13/raspberry-pi-home-server-arduino-lier-les-deux-via-bus-i2c/

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 et coder https://github.com/E-gab-ECM/Link_Raspberry-Arduino
http://mchobby.be/wiki/index.php?title=ArduPi-I2C

Arduino Serial communication
http://www.oxgadgets.com/2011/07/arduino-serial-communication.html

h3. Doc

Arduino lit octet par octet, cf fonction read()

Arduino peut interpréter l'octet comme nombre (type int) ou string (type char)

Connecteurs I2C de l'Arduino Nano : A4 (SDA) et A5 (SCL)
https://www.arduino.cc/en/Main/ArduinoBoardNano

Wire Library (I2C)
https://www.arduino.cc/en/Reference/Wire

Wikipedia I2C
wikipedia>I²C

h1. Raspberry Serial Communication

warning. Toujours faire attention au 3.3V de la Raspi, ajoutez des résistances si nécessaire

tip. pour résoudre le problème, cf http://blog.oscarliang.net/raspberry-pi-and-arduino-connected-serial-gpio/

h2. Bibliothèque python pySerial: https://pypi.python.org/pypi/pyserial

h3. Documentation pySerial : http://pythonhosted.org/pyserial/

h3. Tutos

Lecture/Ecriture sur le port série de la Raspi:
http://www.instructables.com/id/Read-and-write-from-serial-port-with-Raspberry-Pi/

h3. Carte moteur MD25 (utilisé pour l'asservissement des moteurs du grand robot)

Documentation:
http://www.robot-electronics.co.uk/htm/md25tech.htm

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.

biblio arduio http://arduiniana.org/libraries/NewSoftSerial/
https://www.arduino.cc/en/Reference/Serial