Modifications

Sauter à la navigation Sauter à la recherche
290 octets ajoutés ,  26 mai 2013 à 18:58
aucun résumé de modification
Ligne 10 : Ligne 10 :  
[[Fichier:TSL2561-Brancher-01.jpg|640px]]
 
[[Fichier:TSL2561-Brancher-01.jpg|640px]]
   −
Next we will connect it to our microcontroller. In this case we'll be using an Arduino but nearly any microcontroller can be used by adapting our code
+
Ensuite, nous allons le raccorder sur notre microcontroleur. Dans cet exemple nous allons utiliser un Arduino mais presque n'importe quel microcontroleur peut-être utilisé en adaptant le code
   −
* Connect the '''VCC''' pin to a '''3.3V''' power source. The sensor cannot be used with anything higher than 3.3V so don't use a 5V supply!  
+
* Connecter la broche '''VCC''' sur l'alimentation '''3.3V'''. <font color="red"><strong>Le senseur ne peut pas être utilisé avec un tension supérieur à 3.3V... alors n'utilisez pas une alimentation 5V!</strong></font>
* Connect '''GND''' to the ground pin.
+
* Connecter '''GND''' sur la masse/GND du microcontroleur.
* Connect the '''i2c SCL clock''' pin to your i2c clock pin. On the classic Arduino Uno/Duemilanove/Diecimila/etc this is '''Analog pin #5'''
+
* Connecter la broche '''i2c SCL clock''' (horloge I2C) sur la broche I2C clock du microcontroleur.<br />Sur un Arduino Uno/Duemilnove/Decimila/etc il s'agit de la broche '''Analogique #5'''
* Connect the '''i2c SDA data''' pin to your i2c data pin. On the classic Arduino Uno/Duemilanove/Diecimila/etc this is '''Analog pin #4'''
+
* Connecter la broche '''i2c SDA data''' (donnée I2C) sur la broche I2C data.<br />Sur une Arduino Uno/Duemilanove/Diecimila/etc il s'agit de la broche '''Analogique #4'''
   −
Unfortunately, the i2c lines on most microcontrollers are fixed so you're going to have to stick with those pins
+
Malheureusement, sur la plupart des microcontroleur les lignes du bus I2C sont fixes... vous n'aurez pas le choix des broches à utiliser.
    
[[Fichier:TSL2561-Brancher-02.jpg|640px]]
 
[[Fichier:TSL2561-Brancher-02.jpg|640px]]
   −
{{ambox-stop|text=You may be wondering, how is it OK to connect a 3.3V chip like the TSL2561 to 5.0V data pins like the Arduino? Isn't that bad? Well, in this specific case its OK. I2c uses pullup lines to the 3.3V power pin, so the data is actually being sent at 3.3V. As long as all the sensors/device on the i2c bus are running on 3.3V power, we're fine. However, don't use a 5.0v powered i2c device (like the DS1307) with pullups at the same time as a 3.3V device like the TSL2561! If you want to use this sensor with a datalogger that uses the DS1307, remove any/all of the pullup resistors from the DS1307 SDA/SCL pins. The pullups built into the TSL2561 will then be active and keep the voltage at 3.3V which is safe for both the RTC and the sensor. }}
+
{{ambox-stop|text=Vous pourriez vous demander s'il est raisonnable de connecter un senseur 3.3v tel que le TSL2561 sur un bus de donnée 5.0V comme un Arduino?<br /> Isn't that bad? Well, in this specific case its OK. I2c uses pullup lines to the 3.3V power pin, so the data is actually being sent at 3.3V. As long as all the sensors/device on the i2c bus are running on 3.3V power, we're fine. However, don't use a 5.0v powered i2c device (like the DS1307) with pullups at the same time as a 3.3V device like the TSL2561! If you want to use this sensor with a datalogger that uses the DS1307, remove any/all of the pullup resistors from the DS1307 SDA/SCL pins. The pullups built into the TSL2561 will then be active and keep the voltage at 3.3V which is safe for both the RTC and the sensor. }}
     
29 918

modifications

Menu de navigation