We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90e5de8 commit b65a4a3Copy full SHA for b65a4a3
ldc500/ldc500.ino
@@ -5,7 +5,7 @@
5
* ENABLE/DISABLE Laser -> Pin 13 + LED
6
* SET Laser Current -> Pin 11
7
* GET Laser Current -> A0
8
- LDC500 -> k=50mA/V
+ LDC205C -> k=50mA/V
9
10
Linear Regression of dataset: Table1_1, using function: A*x+B
11
Weighting Method: No weighting
@@ -43,8 +43,7 @@ void setup() {
43
44
void setCurrent(float i) {
45
if (i > 100.00) { i = 100.00; }
46
- // 255/5 * i/50
47
- int iDigit = i*2.55;
+ int iDigit = i*1.97;
48
analogWrite(laserMod, iDigit);
49
Serial.println("OK\r");
50
}
0 commit comments