User Tools

Site Tools


vatt:mirror_cell_thermal_reader

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vatt:mirror_cell_thermal_reader [2014/09/03 09:45]
scott
vatt:mirror_cell_thermal_reader [2014/09/03 10:11] (current)
scott
Line 1: Line 1:
 =====VATT Thermal System===== =====VATT Thermal System=====
  
-The VATT Thermal System is controlled by an Arduino Mega board located in the mirror cell. It is connected to 7 analog 8D590K thermal sensors. Four of these sensors are located on the telescope struts and 3 are in the mirror cell. The Arduino board communicates with vatttel through an RS-232 serial port. vatttel (TCS) requests the thermal information from each thermal sensor over the serial port by sending a 't' followed a carriage return '\r'. The arduino board then sends a string of white space separated temperatures. +The VATT Thermal System is controlled by an Arduino Mega board located in the mirror cell. It is connected to 7 analog AD 590K thermal sensors. Four of these sensors are located on the telescope struts and 3 are in the mirror cell. The Arduino board communicates with vatttel through an RS-232 serial port. vatttel (TCS) requests the thermal information from each thermal sensor over the serial port by sending a 't' followed a carriage return '\r'. The arduino board then sends a string of white space separated temperatures. 
  
  
Line 69: Line 69:
 //Offsets. Most of this is counter-acting the hard coded offsets in //Offsets. Most of this is counter-acting the hard coded offsets in
 //vatttel //vatttel
-float temp_offsets[NCHAN] = {0.4, 2.7, 0.4, 1.5, 3.3, 3.3, 1.5, 0.0};+float temp_offsets[NCHAN] = {0.4, 2.7, 0.4, -1.5, 3.3, 3.3, -1.5, 0.0};
  
  
Line 193: Line 193:
     {     {
       toggle13();//toggle the light for debug         toggle13();//toggle the light for debug  
-      Serial3.print('t\r');+      //Serial3.print('t\r'); 
 +      //vatttel expects an echo. 
 +      printTemps( adc ); 
 +      
       printTemps( adc );       printTemps( adc );
              
vatt/mirror_cell_thermal_reader.1409762707.txt.gz · Last modified: 2014/09/03 09:45 by scott