Skip to content

Commit b65a4a3

Browse files
committed
Calibration
1 parent 90e5de8 commit b65a4a3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ldc500/ldc500.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* ENABLE/DISABLE Laser -> Pin 13 + LED
66
* SET Laser Current -> Pin 11
77
* GET Laser Current -> A0
8-
LDC500 -> k=50mA/V
8+
LDC205C -> k=50mA/V
99
1010
Linear Regression of dataset: Table1_1, using function: A*x+B
1111
Weighting Method: No weighting
@@ -43,8 +43,7 @@ void setup() {
4343

4444
void setCurrent(float i) {
4545
if (i > 100.00) { i = 100.00; }
46-
// 255/5 * i/50
47-
int iDigit = i*2.55;
46+
int iDigit = i*1.97;
4847
analogWrite(laserMod, iDigit);
4948
Serial.println("OK\r");
5049
}

0 commit comments

Comments
 (0)