Outils pour utilisateurs

Outils du site


wiki:projet:robotsimon

ROBOT SIMON

date de début : 11/2015
Porteur de projet Simon Ramos (contact : simon.ramos@sfr.fr)
Suivi par Emmanuel (contact : emmanuel.thiery@pmclab.fr)

/* introduction ici, comprend : - les objectifs de ce projet - brefs comparatifs de ce qui se fait déjà (prix, facilité de fabrications, particularités spécifiques - tes sources d'inspiration */

journal de bord

date de fin estimée : 11/2015

Machines nécessaires

/* Ici il faut lister tout les machines et leur consommables nécessaire, si possible avec une photo

  • /

exemple :
//www.distriedal.com/trotecwpress/wp-content/uploads/2014/02/Speedy100-laser-sistema-aspiracion.jpg
- découpe laser (30×60 cm) (Ici trotec speedy 100) avec du plexiglace ou équivalent (3 mm d'épaisseur)
//s.3dnatives.com/imprimante/replicator-2x.jpeg
- imprimante 3D (Ici makerboot replicator 2X ou Ultimaker²) avec PLA ou ABS

- fer à souder

matériels nécessaires

-18 jumpers

-2 moteurs

-planche de bois

-étain


- 1 arduino Uno ou similaire fournisseur : Electrodragon 9.64 €:

//upload.wikimedia.org/wikipedia/commons/3/38/Arduino_Uno_-_R3.jpg

Construction

/* ici il faut décrire la fabrication de votre projet de A à Z. Il est astucieux de diviser en un maximum de partie votre projet, cela permet d'avoir une vision globale du projet et de “sous terminer” votre projet, ce qui est stimulant.

Partie 1

Partie 2:


prendre une plaque choisir une ligne pour le positif et une pour le négatif.

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>-Relier, avec des jumpers, le GND des 2 relais aux GND de la carte arduino.</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>-Relier, avec des jumpers, les IN des relais aux pins digitaux de la carte arduino.</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>-Relier, avec des jumpers, les VCC des relais au 5v de la carte arduino.</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>-</font>

//img11.hostingpics.net/pics/327668PCRrelayfrizt.png

Partie 3:

Codes nécessaires:

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int xPin = A1;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int yPin = A0;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int buttonPin = 2;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int xPosition = 0;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int yPosition = 0;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int buttonState = 0;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>#define CH3 5 Connect Digital Pin 7 on Arduino to CH3 on Relay Module</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>#define CH4 6</font>
<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void setup() {</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>
initialize serial communications at 9600 bps:</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.begin(9600);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(xPin, INPUT);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(yPin, INPUT);</font>


<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(CH3, OUTPUT);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(CH4, OUTPUT);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,LOW);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,LOW);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>activate pull-up resistor on the push-button pin</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(buttonPin, INPUT_PULLUP);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> For versions prior to Arduino 1.0.1</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> pinMode(buttonPin, INPUT);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> digitalWrite(buttonPin, HIGH);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void loop() {</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>xPosition = analogRead(xPin);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>yPosition = analogRead(yPin);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>buttonState = digitalRead(buttonPin);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(“X: ”);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(xPosition);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(“ | Y: ”);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(yPosition);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(“ | Button: ”);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.println(buttonState);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(100); add some delay between reads</font>


<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>
Setup all the Arduino Pins</font>


<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>if(yPosition >600)</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,LOW);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,LOW);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>else if( xPosition>600)</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,HIGH);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,LOW);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>else if( xPosition<400)</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,LOW);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,HIGH);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>else</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3, HIGH);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4, HIGH);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

  • /

Journal de bord

<font 21.333333333333332pxfont-family:Questrial;color:#274e13;background-color:#ffffff;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Questrial;;inherit;;#274e13background-color:#ffffff;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Lundi 23 novembre</font>

<font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;>23/11/2015</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>:</font>

<font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Création d’un programme pour faire clignoter une DEL:</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Matériel: carte arduino, bread board, résistance de 200 ohm,DEL, jumper.</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Il faut placer la résistance sur le bread board, placer la DEL sur une autre colonne mais la plus grande branche sur la même ligne que la 2ème branche de la résistance. Lier un jumper du bread board au ground de la carte arduino. Lier un autre jumper de la résistance au 5v de la carte arduino.</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>const int…=10 (précise à quelle pin de la carte arduino l’objet est accroché)</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>( commentaires non pris en compte pour la ligne)</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>/* et */ (tous ce qui est compris entre n’est pas pris en compte)</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>() (quand il y a une fonction)</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{ et } (tous ce qui est compris entre est pris en compte par une fonction)</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>voidsetup() (setup)</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void loop() (boucle infinie)</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>if (fonction dépendant d’un facteur)</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>const int LED=10; declaration constante de broche</font>


<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void setup() {</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> put your setup code here, to run once:</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(LED, OUTPUT);</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void loop() {</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> put your main code here, to run repeatedly:</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(LED,HIGH); met la broche au niveau haut (5V) – allume la LED</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(15); pause de 500 millisecondes (ms)</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(LED,LOW); met la broche au niveau bas (0V) – éteint la LED</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(15); pause de 500ms</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>source:</font> <font 14.666666666666666pxfont-family:Arimo;color:#434343;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#434343background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>http://www.mon-club-elec.fr/pmwiki_mon_club_elec/pmwiki.php?n=MAIN.ArduinoInitiationLedsClig noterUneLed</font>

<font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Création du projet robot Simon</font>

<font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Création d’un programme pour faire tourner à 180° un servomoteur 2 fois:</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Matériel: carte arduino, servomoteur, jumpers.</font>


<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>#include <Servo.h></font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>const int servomoteur=5; declaration constante de broche</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Servo myservo; create servo object to control a servo</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> a maximum of eight servo objects can be created</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int pos = 0; variable to store the servo position</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int vitesse = 5;</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int tour= 0;</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void setup()</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>myservo.attach(5); attaches the servo on pin 9 to the servo object</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void loop() {</font>


<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>if (tour<2)</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>for(pos = 0; pos < 180; pos += 1) goes from 0 degrees to 180 degrees</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{ in steps of 1 degree</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>myservo.write(pos); tell servo to go to position in variable 'pos'</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(vitesse); waits 15ms for the servo to reach the position</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>for(pos = 180; pos>=1; pos-=1) goes from 180 degrees to 0 degrees</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>myservo.write(pos); tell servo to go to position in variable 'pos'</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(vitesse); waits 15ms for the servo to reach the position</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>tour +=1;</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;></font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;></font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>source:</font> <font 14.666666666666666pxfont-family:Arimo;color:#1155cc;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;/Arimo;;inherit;;#1155ccbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;>http://www.zem.fr/controler-un-mini-servo-avec-arduino/</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;></font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Modélisation 2D d’un chassie pour véhicule à 3 roues avec openscad:</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Pour actualiser le logiciel et qu’il exécute la commande il faut appuyer sur F5.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Pour déplacer un objet: translate([…,…])</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Pour faire un carré: square([…,…],center)</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Pour soustraire: difference() {…………}</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Pour compiler le tout il faut appuyer sue F6.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Il faut ensuite enregistrer le fichier.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Pour exporter le fichier, il faut le mettre en .dxf</font> <font 16pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>difference () {</font> <font 16pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([0,0]) square([71,150.55],center);</font> <font 16pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([-1,30]) square([22.50,21.20],center);</font> <font 16pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;></font> <font 16pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([49,30]) square([22.50,21.20],center);</font> <font 16pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;></font>
<font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Découpage d’une planche au découpe laser:</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Matériel: une machine Trotec</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Une fois le fichier importé dans le logiciel correldraw x7, il faut l’imprimer.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Un autre logiciel va s’ouvrir.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Placer la plaque dans un coin du Trotec</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Il faut cliquer sur prêt.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>faire les réglages:</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>-6mm: puissance=100 et vitesse=0,90</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>rouge: découpe</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>noir: gravure</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Faire la focale, lancer la découpe puis attendre que la lumière s’éteigne pour prendre la plaque.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Si il y a des flammes en continu, augmenter la vitesse.</font>


<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>#define CH3 5
Connect Digital Pin 7 on Arduino to CH3 on Relay Module</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>#define CH4 6</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void setup(){</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Setup all the Arduino Pins</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(CH3, OUTPUT);</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(CH4, OUTPUT);</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Provide power to both LEDs</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Turn OFF any power to the Relay channels</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,LOW);</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(2000); Wait 2 seconds before starting sequence</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,LOW);</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> delay(2000);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void loop(){</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3, HIGH); Relay 3 switches to NO</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4, HIGH);</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(2000);</font> <font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3, LOW); Relay 3 switches to NO</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4, LOW);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(1000);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>


<font 21.333333333333332pxfont-family:Questrial;color:#274e13;background-color:#ffffff;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Questrial;;inherit;;#274e13background-color:#ffffff;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Mardi 24 novembre</font>

<font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;>24/11/2015</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>:</font>


<font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Création d’un programme pour contrôler des moteurs avec un joystick.</font>


<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int xPin = A1;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int yPin = A0;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int buttonPin = 2;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int xPosition = 0;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int yPosition = 0;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int buttonState = 0;</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void setup() {</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> initialize serial communications at 9600 bps:</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.begin(9600);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(xPin, INPUT);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(yPin, INPUT);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>activate pull-up resistor on the push-button pin</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(buttonPin, INPUT_PULLUP);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> For versions prior to Arduino 1.0.1</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> pinMode(buttonPin, INPUT);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> digitalWrite(buttonPin, HIGH);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void loop() {</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>xPosition = analogRead(xPin);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>yPosition = analogRead(yPin);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>buttonState = digitalRead(buttonPin);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(“X: ”);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(xPosition);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(“ | Y: ”);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(yPosition);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(“ | Button: ”);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.println(buttonState);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(100); add some delay between reads</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>#define CH3 5 Connect Digital Pin 7 on Arduino to CH3 on Relay Module</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>#define CH4 6</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Setup all the Arduino Pins</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(CH3, OUTPUT);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(CH4, OUTPUT);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>/* Provide power to both LEDs</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Turn OFF any power to the Relay channels</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,LOW);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(2000); Wait 2 seconds before starting sequence</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,LOW);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> delay(2000);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3, HIGH); Relay 3 switches to NO</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4, HIGH);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(2000);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3, LOW); Relay 3 switches to NO</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;></font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;></font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4, LOW);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;></font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(1000);*/</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>if( xPosition>500,yPosition >1000){</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,HIGH);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,HIGH);}</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>else if(xPosition=0,yPosition > 500){</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,LOW);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,HIGH);}</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>else if(xPosition>1000,yPosition > 500){</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,HIGH);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,LOW);}</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>



<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Matériel:</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Chassie, 2 moteurs, 2 relais, 18 jumpers, 1 bread board et une alimentation .</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Pour le faire permuter les relais, il faut:</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>-Relier, avec des jumpers, le GND des 2 relais aux GND de la carte arduino.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>-Relier, avec des jumpers, les IN des relais aux pins digitaux de la carte arduino.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>-Relier, avec des jumpers, les VCC des relais au V1 en bas du bread board puis sur la même ligne brancher un jumper de la même ligne au 5v de la carte arduino.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>-Brancher un jumper du ground du bread board au - en haut du bread board</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>J’ai réussi à faire fonctionner les moteurs te les relais, les moteurs tournent pendant 2 secondes et s’arrêtent 1 seconde comme je l’avais demandé à l’arduino dans le programme au-dessus.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Bleu 5v</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Blanc gnd</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Jaune 5</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Bleu 6</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Utilisation d’un joystick</font>
<font 18.666666666666664pxfont-family:Arimo;color:#1155cc;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;/Arimo;;inherit;;#1155ccbackground-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;>http://42bots.com/tutorials/arduino-joystick-module-example/</font> <font 18.666666666666664pxfont-family:Arimo;color:#1155cc;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;/Arimo;;inherit;;#1155ccbackground-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;>http://www.instructables.com/id/Arduino-2-Servos-Thumbstick-joystick/</font> ===== <font 21.333333333333332pxfont-family:Questrial;color:#274e13;background-color:#ffffff;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Questrial;;inherit;;#274e13background-color:#ffffff;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Mercredi 25 novembre</font> ===== <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;>25/11/2015</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>:</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>OpenScad</font>


<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>difference(){</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>cylinder($fn = 1000,r=25,h=10);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([-2.5,-3.6,-1])cube([5,7.2,12]);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Module bluetooth:</font> <font 18.666666666666664pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>http://air.imag.fr/mediawiki/index.php/Wireless_Bluetooth_RS232_TTL_Transceiver_Module</font> <font 18.666666666666664pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>fv</font> <font 18.666666666666664pxfont-family:Arimo;color:#0000ff;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#0000ffbackground-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;></font>

<font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Correction du programme:</font>
<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int xPin = A1;</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int yPin = A0;</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int buttonPin = 2;</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int xPosition = 0;</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int yPosition = 0;</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>int buttonState = 0;</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>#define CH3 5
Connect Digital Pin 7 on Arduino to CH3 on Relay Module</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>#define CH4 6</font>


<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void setup() {</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> initialize serial communications at 9600 bps:</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.begin(9600);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(xPin, INPUT);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(yPin, INPUT);</font>
<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(CH3, OUTPUT);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(CH4, OUTPUT);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,LOW);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,LOW);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>
activate pull-up resistor on the push-button pin</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>pinMode(buttonPin, INPUT_PULLUP);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> For versions prior to Arduino 1.0.1</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> pinMode(buttonPin, INPUT);</font>

<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;> digitalWrite(buttonPin, HIGH);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>void loop() {</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>xPosition = analogRead(xPin);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>yPosition = analogRead(yPin);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>buttonState = digitalRead(buttonPin);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(“X: ”);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(xPosition);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(“ | Y: ”);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(yPosition);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.print(“ | Button: ”);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Serial.println(buttonState);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>delay(100); add some delay between reads</font>




<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Setup all the Arduino Pins</font>
<font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>if(yPosition >600)</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,LOW);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,LOW);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>else if( xPosition>600)</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,HIGH);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,LOW);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>else if( xPosition<400)</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3,LOW);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4,HIGH);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>else</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH3, HIGH);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>digitalWrite(CH4, HIGH);</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#999999;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#999999background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> ===== <font 21.333333333333332pxfont-family:Questrial;color:#274e13;background-color:#ffffff;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Questrial;;inherit;;#274e13background-color:#ffffff;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Jeudi 26 novembre</font> ===== <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;>26 /11/2015</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>:</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Rapport de stage.</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>test:</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Une alimentation de 4,5v peut suffire pour le robot.</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Modélisation 3d du robot sur openscad:</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>union ()</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>{</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>difference(){</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>cube([150,70,6]);</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([30,45]) cube([20,25,7]);</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([30,0]) cube([20,25,7]);</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>/*translate([88,0]) cube([62,17,7]);</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([88,25]) cube([62,17,7]);</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([88,53]) cube([62,17,7]);*/</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>/*rotate(a=[0,90,0]) {</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([90,0,50])cylinder($fn = 100,r=5,h=10);</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([90,50,50])cylinder($fn = 100,r=5,h=10);</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>*/</font>

<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>translate([60,35,40])resize([90,45])sphere(d=20);}</font>
<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>difference(){</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>rotate ([25,-20,-50])translate([15,66,-40])cylinder(d=20,10,h=50);</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>color([red]){;translate([0,0,-8])cube([150,150,8]);</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font> <font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>}</font>

















===== <font 21.333333333333332pxfont-family:Questrial;color:#274e13;background-color:#ffffff;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Questrial;;inherit;;#274e13background-color:#ffffff;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>Vendredi 27 novembre</font> ===== <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;>27 /11/2015</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>:</font> <font 18.666666666666664pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>refaire le circuit en vrai:</font>
<font 14.666666666666666pxfont-family:Arimo;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;/Arimo;;inherit;;#000000background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;>matériel: fer à souder, étain et plaque.</font>

wiki/projet/robotsimon.txt · Dernière modification: 2020/10/05 16:39 (modification externe)