Modifications

Sauter à la navigation Sauter à la recherche
1 037 octets supprimés ,  12 août 2013 à 07:58
Ligne 19 : Ligne 19 :  
[[Fichier:Thermocouple-21.jpg|480px]]
 
[[Fichier:Thermocouple-21.jpg|480px]]
   −
  −
Using a Thermocouple Created by Ladyada
  −
If you're using an AD595 interface chip, you can simply connect the voltage output to an analog input on your microcontroller and do some basic math to multiply the 10 mV/°C input into numerical output.
  −
attached.jpg
  −
  −
If you're planning to use the MAX6675/MAX31855, there's a little more work to be done. First off, Vin and GND must connect to a 3-5V supply. Then the three data pins must connect to digital IO pins:
  −
  −
    CLK (clock) is an input to the MAX6675/MAX31855 (output from microcontroller) which indicates when to present another bit of data
  −
    DO (data out) is an output from the MAX6675/MAX31855 (input to the microcontroller) which carries each bit of data
  −
    CS (chip select) is an input to the MAX6675/MAX31855 (output from the microcontroller) which tells the chip when its time to read the thermocouple and output more data.
  −
  −
In the beginning of our sketches, we define these pins. For our examples DO connects to digital 3, CS connects to digital 4, and CLK connects to pin 5
   
cap.jpg
 
cap.jpg
 
If you are using the MAX31855 v1.0 in a noisy environment, you may need to add a 0.01uF capacitor across the thermocouple leads.
 
If you are using the MAX31855 v1.0 in a noisy environment, you may need to add a 0.01uF capacitor across the thermocouple leads.
29 917

modifications

Menu de navigation