Pulled out the MAX1932 voltage set value to a variable in the start of the code.
Allows for it to be changed more easily to change SIPM type from avansid to hammamatsu.
This commit is contained in:
parent
385d315c36
commit
2080a88a7a
1 changed files with 5 additions and 1 deletions
|
|
@ -63,6 +63,10 @@ double magx = 0;
|
|||
double magy = 0;
|
||||
double magz = 0;
|
||||
int currentval = 0xFF;
|
||||
|
||||
//this is the target voltage for the SIPM supply from the MAX1932
|
||||
int stablevoltage = 0x6D;
|
||||
|
||||
long exacttime = 0;
|
||||
int uptime = 0;
|
||||
String outputbuffer = ""; //write all the outputs to a buffer and then fmacro it out
|
||||
|
|
@ -101,7 +105,7 @@ void setup()
|
|||
digitalWrite(slaveAPin, LOW);
|
||||
SPI.begin();
|
||||
Serial.println(F("ramping start"));
|
||||
ramp(0x6D);
|
||||
ramp(stablevoltage);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue