Outils pour utilisateurs

Outils du site


wiki:projets:titrimetre:code

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
wiki:projets:titrimetre:code [2015/03/08 16:41]
mathieu
wiki:projets:titrimetre:code [2020/10/05 14:39] (Version actuelle)
Ligne 2: Ligne 2:
 /* /*
   Utilisation d’une photo-résistance   Utilisation d’une photo-résistance
-*/+  */
 int ledPIN = 13; int ledPIN = 13;
 int port = A0;    int port = A0;   
Ligne 26: Ligne 26:
 \\ \\
 \\ \\
-**Code photodiode**+  **Code photodiode**
 <code=cpp> <code=cpp>
 #define inPin0 0 #define inPin0 0
Ligne 42: Ligne 42:
   //float essaie = pVolt0;   //float essaie = pVolt0;
   int pinRead0 = analogRead(inPin0);   int pinRead0 = analogRead(inPin0);
-  pVolt0 = pinRead0 / 1024.0 * 10;+  pVolt0 = pinRead0 / 1024.0 * 5;
   Serial.print(pVolt0);   Serial.print(pVolt0);
   Serial.println();   Serial.println();
Ligne 59: Ligne 59:
  
 This example code is in the public domain. This example code is in the public domain.
-*/+  */
  
 // the setup routine runs once when you press reset: // the setup routine runs once when you press reset:
Ligne 113: Ligne 113:
       delay(1000);       delay(1000);
       X = 0;       X = 0;
 +      
 +#code provenant de Royce
     }     }
 } }
Ligne 224: Ligne 226:
 \\ \\
 http://www.instructables.com/id/Arduino-Motor-Shield-Tutorial/?ALLSTEPS http://www.instructables.com/id/Arduino-Motor-Shield-Tutorial/?ALLSTEPS
 +
wiki/projets/titrimetre/code.1425832902.txt.gz · Dernière modification: 2016/09/11 11:03 (modification externe)