Modifications

Sauter à la navigation Sauter à la recherche
489 octets ajoutés ,  26 mai 2013 à 21:30
aucun résumé de modification
Ligne 30 : Ligne 30 :  
Ensuite, vous aurez besoin de configurer le senseur avec '''gain''' et '''integration time''' (temps d'intégration).
 
Ensuite, vous aurez besoin de configurer le senseur avec '''gain''' et '''integration time''' (temps d'intégration).
   −
Vous pouvez avoir soit un gain de 0 (pas de gain supplémentaire, excellent pour les situations de faible illumination) ou un gain de 16 which will boost the light considerably in dim situations.
+
Vous pouvez avoir soit un gain de 0 (pas de gain supplémentaire, excellent pour les situations de fortes/moyennes luminosités) ou un gain de 16 qui boostera considérablement la lumière dans les situation de lumière très diffuse.
   −
You can also change the integration time, which is how long it will collect light data for. The longer the integration time, the more precision the sensor has when collecting light samples.
+
Vous pouvez également modifier le temps d'intégration qui représente le temps utilisé pour collecter les données de luminosité. Plus le temps d'intégration est grand et meilleur sera la précision du senseur lorsqu'il échantillonnera la lumière.
   −
New to v2.0 of the driver, there is also an '''auto-gain''' option that is useful when measuring in mixed lighting-situations. This will automatically enable or disable the gain depending on the light level. This is still an experimental feature and the trigger levels to switch may need to be tweeked, but this should be useful to collect light both indoors and outdoors without having to change the code yourself.  
+
== Auto-gain ==
 +
La version v2.0 introduit une nouvelle fonctionnalité qui est l'option '''auto-gain'''. Elle est vraiment utile lorsque les mesures sont effectuées dans des situations mélangeant des cas de luminosités diffuse et luminosité normale.
 +
 
 +
Auto-gain activera/désactivera automatiquement le gain en fonction du niveau d'illumination. Il s'agit toujours d'une fonctionnalité expérimentale et utilise différents niveaux de luminosités pour activer (adapter) le gain. Cela devrait être utile pour échantillonner la lumière en intérieur et extérieur sans devoir adapter/modifier le code.  
    
  <nowiki>    /**************************************************************************/
 
  <nowiki>    /**************************************************************************/
 
     /*
 
     /*
     Configures the gain and integration time for the TSL2561
+
     Configurer le gain et temps d'intégration pour le TSL2561
 
     */
 
     */
 
     /**************************************************************************/
 
     /**************************************************************************/
 
     void configureSensor(void)
 
     void configureSensor(void)
 
     {
 
     {
     /* You can also manually set the gain or enable auto-gain support */
+
     /* Vous pouvez également activer manuellement le gain ou activer le support auto-gain */
     // tsl.setGain(TSL2561_GAIN_1X); /* No gain ... use in bright light to avoid sensor saturation */
+
     // tsl.setGain(TSL2561_GAIN_1X); /* pas de gain ... a utiliser avec le lumière brillante pour éviter la saturation du senseur */
     // tsl.setGain(TSL2561_GAIN_16X); /* 16x gain ... use in low light to boost sensitivity */
+
     // tsl.setGain(TSL2561_GAIN_16X); /* gain de 16x ... a utiliser en situation de faible luminosité pour booster la sensibilité */
     tsl.enableAutoGain(true); /* Auto-gain ... switches automatically between 1x and 16x */
+
     tsl.enableAutoGain(true); /* Auto-gain ... passe automatiquement le gain entre 1x et 16x */
     /* Changing the integration time gives you better sensor resolution (402ms = 16-bit data) */
+
     /* Changer le temps d'intégration permet d'augmenter la résolution du senseur (402ms = 16-bit de données) */
     tsl.setIntegrationTime(TSL2561_INTEGRATIONTIME_13MS); /* fast but low resolution */
+
     tsl.setIntegrationTime(TSL2561_INTEGRATIONTIME_13MS); /* Rapide mais faible résolution */
     // tsl.setIntegrationTime(TSL2561_INTEGRATIONTIME_101MS); /* medium resolution and speed */
+
     // tsl.setIntegrationTime(TSL2561_INTEGRATIONTIME_101MS); /* vitesse et résolution moyenne */
     // tsl.setIntegrationTime(TSL2561_INTEGRATIONTIME_402MS); /* 16-bit data but slowest conversions */
+
     // tsl.setIntegrationTime(TSL2561_INTEGRATIONTIME_402MS); /* 16-bit de donnée mais conversion la plus lente */
 
      
 
      
     /* Update these values depending on what you've set above! */
+
     /* N'oubliez pas de modifier les textes ci-dessous en fonction de la configuration
 +
      utilisée ci-dessus! */
 
     Serial.println("------------------------------------");
 
     Serial.println("------------------------------------");
 
     Serial.print ("Gain: "); Serial.println("Auto");
 
     Serial.print ("Gain: "); Serial.println("Auto");
     Serial.print ("Timing: "); Serial.println("13 ms");
+
     Serial.print ("Temps: "); Serial.println("13 ms");
 
     Serial.println("------------------------------------");
 
     Serial.println("------------------------------------");
 
     }</nowiki>
 
     }</nowiki>
29 922

modifications

Menu de navigation