Projet

Général

Profil

Wiki » Historique » Version 73

Sylvain Bentz, 28/12/2015 10:18

1 25 Sylvain Bentz
[[Arduino - Raspberry Pi w/ USB]]
2
3
[[ArduinoLampone]]
4
5 58 Sylvain Bentz
6 63 Sylvain Bentz
7 72 Sylvain Bentz
h2. Bibliothèques pour l'Arduino http://playground.arduino.cc/Main/LibraryList#Comm
8 1 Sylvain Bentz
9 67 Sylvain Bentz
_Pour de la communication *entre Arduinos* ! C'est génial !_
10
https://github.com/gioblu/PJON : Among many features : "you have the complete access to the microntroller ready to be used, as usual, untouched".
11
12 71 Sylvain Bentz
_Software I2C library_ | Guère plus grande que _Wire_
13 67 Sylvain Bentz
http://playground.arduino.cc/Main/SoftwareI2CLibrary
14 68 Sylvain Bentz
15 71 Sylvain Bentz
_Wireless sensor node (WSN) network protocol for arduino_ | (Pour des futures bornes de géolocalisation ?)
16 68 Sylvain Bentz
https://code.google.com/p/arduinode/
17
18
19 58 Sylvain Bentz
  
20
21 63 Sylvain Bentz
22 58 Sylvain Bentz
h2. Applis/Biblio pour la Raspberry Pi (Java, C, Python...tout ce qu'on veut)
23 29 Sylvain Bentz
24 36 Sylvain Bentz
_Interfacing with software_
25 1 Sylvain Bentz
http://playground.arduino.cc/Main/InterfacingWithSoftware
26
27 51 Sylvain Bentz
> http://ardulink.org/ : Programme en Java (marche avec port USB. Et avec I2C ? sais pas :( )
28 39 Sylvain Bentz
>> How to install Ardulink on your Raspberry PI
29
>> http://www.ardulink.org/how-to-install-arduino-pc-link-on-raspberry-pi/
30 38 Sylvain Bentz
31 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."
32 35 Sylvain Bentz
33 53 Sylvain Bentz
> http://sglez.org/2008/08/05/interfacing-arduino-with-c-and-libserial/ : C++
34 1 Sylvain Bentz
35
36 63 Sylvain Bentz
37 64 Sylvain Bentz
h2. Raspberry - Arduino w/ I2C
38 63 Sylvain Bentz
39 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)
40 66 Sylvain Bentz
41
tip. Des solutions simples existent avec quelques résistances http://playground.arduino.cc/Main/I2CBi-directionalLevelShifter
42
43 63 Sylvain Bentz
44 49 Sylvain Bentz
h3. Tutos
45 1 Sylvain Bentz
46 36 Sylvain Bentz
_Tuto de Julien Enselme ! : La communication série avec arduino (et Python)_
47 35 Sylvain Bentz
http://www.jujens.eu/posts/2014/May/05/Communication-serie/
48
49 36 Sylvain Bentz
_Raspberry Pi – Arduino – Lier les deux via le bus I2C_
50 8 Tarek Benhnini
Logiciels utilisés :
51 1 Sylvain Bentz
Arduino -> Biblio Wire
52 21 Sylvain Bentz
Raspi -> Python
53
http://www.pihomeserver.fr/2013/08/13/raspberry-pi-home-server-arduino-lier-les-deux-via-bus-i2c/
54 1 Sylvain Bentz
55 62 Tarek Benhnini
_Raspberry-Pi - Arduino par l'intermédiaire d'un bus I2C_  +++++++++++++++++++++++++
56 1 Sylvain Bentz
http://mchobby.be/wiki/index.php?title=ArduPi-I2C
57 68 Sylvain Bentz
58
_Arduino Serial communication_
59
http://www.oxgadgets.com/2011/07/arduino-serial-communication.html
60 63 Sylvain Bentz
61 1 Sylvain Bentz
62 34 Sylvain Bentz
h3. Doc
63
64 36 Sylvain Bentz
_Wire Library (I2C)_
65 19 Sylvain Bentz
https://www.arduino.cc/en/Reference/Wire
66 56 Sylvain Bentz
67 57 Sylvain Bentz
notice. Arduino lit octet par octet, cf fonction read()
68 13 Sylvain Bentz
69 65 Sylvain Bentz
notice. Arduino peut interpréter l'octet comme nombre (type int) ou string (type char)
70
71 37 Sylvain Bentz
_Connecteurs I2C de l'Arduino Nano : A4 (SDA) et A5 (SCL)_
72 34 Sylvain Bentz
https://www.arduino.cc/en/Main/ArduinoBoardNano
73 17 Sylvain Bentz
74 48 Sylvain Bentz
_Wikipedia I2C_
75
[[wikipedia>I²C]]