<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://air.imag.fr/index.php?action=history&amp;feed=atom&amp;title=Premiers_Pas_avec_Raspberry_Pi_et_Arduino</id>
	<title>Premiers Pas avec Raspberry Pi et Arduino - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://air.imag.fr/index.php?action=history&amp;feed=atom&amp;title=Premiers_Pas_avec_Raspberry_Pi_et_Arduino"/>
	<link rel="alternate" type="text/html" href="https://air.imag.fr/index.php?title=Premiers_Pas_avec_Raspberry_Pi_et_Arduino&amp;action=history"/>
	<updated>2026-05-31T14:04:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://air.imag.fr/index.php?title=Premiers_Pas_avec_Raspberry_Pi_et_Arduino&amp;diff=15956&amp;oldid=prev</id>
		<title>Donsez at 06:14, 10 March 2014</title>
		<link rel="alternate" type="text/html" href="https://air.imag.fr/index.php?title=Premiers_Pas_avec_Raspberry_Pi_et_Arduino&amp;diff=15956&amp;oldid=prev"/>
		<updated>2014-03-10T06:14:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:14, 10 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Interfacer le [[Raspberry Pi]] et une carte [[Arduino]] peut être utile pour de nombreux projets ([[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;M2M&lt;/del&gt;]], [[Robotique]], ...).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Interfacer le [[Raspberry Pi]] et une carte [[Arduino]] peut être utile pour de nombreux projets ([[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PM2M&lt;/ins&gt;]], [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RobAIR|&lt;/ins&gt;Robotique]], ...).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Donsez</name></author>
	</entry>
	<entry>
		<id>https://air.imag.fr/index.php?title=Premiers_Pas_avec_Raspberry_Pi_et_Arduino&amp;diff=12235&amp;oldid=prev</id>
		<title>Donsez at 09:23, 14 August 2013</title>
		<link rel="alternate" type="text/html" href="https://air.imag.fr/index.php?title=Premiers_Pas_avec_Raspberry_Pi_et_Arduino&amp;diff=12235&amp;oldid=prev"/>
		<updated>2013-08-14T09:23:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:23, 14 August 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:rpi+arduino.jpg|200px|thumb|right|Collecte de mesures avec un Arduino  Raspberry Pi]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Interfacer le [[Raspberry Pi]] et une carte [[Arduino]] peut être utile pour de nombreux projets ([[M2M]], [[Robotique]], ...).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Interfacer le [[Raspberry Pi]] et une carte [[Arduino]] peut être utile pour de nombreux projets ([[M2M]], [[Robotique]], ...).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Donsez</name></author>
	</entry>
	<entry>
		<id>https://air.imag.fr/index.php?title=Premiers_Pas_avec_Raspberry_Pi_et_Arduino&amp;diff=12224&amp;oldid=prev</id>
		<title>Donsez: Created page with &quot;Interfacer le Raspberry Pi et une carte Arduino peut être utile pour de nombreux projets (M2M, Robotique, ...).    * Via USB : http://blog.oscarliang.net/conn...&quot;</title>
		<link rel="alternate" type="text/html" href="https://air.imag.fr/index.php?title=Premiers_Pas_avec_Raspberry_Pi_et_Arduino&amp;diff=12224&amp;oldid=prev"/>
		<updated>2013-08-14T07:26:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Interfacer le &lt;a href=&quot;/index.php/Raspberry_Pi&quot; title=&quot;Raspberry Pi&quot;&gt;Raspberry Pi&lt;/a&gt; et une carte &lt;a href=&quot;/index.php/Arduino&quot; title=&quot;Arduino&quot;&gt;Arduino&lt;/a&gt; peut être utile pour de nombreux projets (&lt;a href=&quot;/index.php?title=M2M&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;M2M (page does not exist)&quot;&gt;M2M&lt;/a&gt;, &lt;a href=&quot;/index.php?title=Robotique&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Robotique (page does not exist)&quot;&gt;Robotique&lt;/a&gt;, ...).    * Via USB : http://blog.oscarliang.net/conn...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Interfacer le [[Raspberry Pi]] et une carte [[Arduino]] peut être utile pour de nombreux projets ([[M2M]], [[Robotique]], ...).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Via USB : http://blog.oscarliang.net/connect-raspberry-pi-and-arduino-usb-cable/&lt;br /&gt;
* Via GPIO : http://blog.oscarliang.net/raspberry-pi-and-arduino-connected-serial-gpio/&lt;br /&gt;
&lt;br /&gt;
Read http://playground.arduino.cc/Interfacing/Python&lt;br /&gt;
&lt;br /&gt;
Install pySerial&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install python-serial&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the Arduino tty port&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /dev/tty*&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download the following sketch on the Arduino board (using the Arduino IDE)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
void setup() {&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
  int sensorValue = analogRead(A0);&lt;br /&gt;
  Serial.println(sensorValue);&lt;br /&gt;
  delay(1000);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run the following python script&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import serial&lt;br /&gt;
ser = serial.Serial(&amp;#039;/dev/ttyACM0&amp;#039;, 9600)&lt;br /&gt;
while True :&lt;br /&gt;
    print ser.readline()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More test&lt;br /&gt;
&lt;br /&gt;
Download the following sketch on the Arduino board (using the Arduino IDE)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// from http://blog.oscarliang.net/connect-raspberry-pi-and-arduino-usb-cable/&lt;br /&gt;
const int ledPin = 13;&lt;br /&gt;
	 &lt;br /&gt;
void setup(){&lt;br /&gt;
  pinMode(ledPin, OUTPUT);&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop(){&lt;br /&gt;
  if (Serial.available())  {&lt;br /&gt;
     light(Serial.read() - &amp;#039;0&amp;#039;);&lt;br /&gt;
  }&lt;br /&gt;
  delay(500);&lt;br /&gt;
}&lt;br /&gt;
	 &lt;br /&gt;
void light(int n){&lt;br /&gt;
  for (int i = 0; i &amp;lt; n; i++)  {&lt;br /&gt;
    digitalWrite(ledPin, HIGH);&lt;br /&gt;
    delay(100);&lt;br /&gt;
    digitalWrite(ledPin, LOW);&lt;br /&gt;
   delay(100);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run the following python script&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import serial&lt;br /&gt;
ser = serial.Serial(&amp;#039;/dev/ttyACM0&amp;#039;, 9600)&lt;br /&gt;
ser.write(&amp;#039;10&amp;#039;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More with [[Firmata]] : https://github.com/lupeke/python-firmata/&lt;br /&gt;
&lt;br /&gt;
Download the firmata sketch on the Arduino board (using the Arduino IDE &amp;gt; Examples &amp;gt; Firmata &amp;gt; StandardFirmata)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run the following python script&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from firmata import *&lt;br /&gt;
&lt;br /&gt;
a = Arduino(&amp;#039;/dev/ttyACM0&amp;#039;)&lt;br /&gt;
a.pin_mode(13, firmata.OUTPUT)&lt;br /&gt;
a.delay(2)&lt;br /&gt;
&lt;br /&gt;
while True:&lt;br /&gt;
    a.digital_write(13, firmata.HIGH)&lt;br /&gt;
    a.delay(2)&lt;br /&gt;
    a.digital_write(13, firmata.LOW)&lt;br /&gt;
    a.delay(2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Donsez</name></author>
	</entry>
</feed>