Skip to content

Commit

Permalink
Error Voltage Readings (#184)
Browse files Browse the repository at this point in the history
* Fixed voltage algorithm. (#182)

* Merged submodules.

* Version `1.0.12`.

* Bug fixed: integer offside. (#185)

* Merged submodules.
  • Loading branch information
ATATC authored May 23, 2024
1 parent 14c9fb7 commit a84a67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arduino/leads_vec_power/leads_vec_power.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

const int PIN_VOT[] = {A0};

VoltageSensor VOT(PIN_VOT);
VoltageSensor VOT(30000.0, 7500.0, PIN_VOT);

void setup() {
Serial.begin(9600);
VOT.initialize();
}

void loop() {
returnFloat(VOLTAGE_SENSOR, VOT.read() * 5.08594953775);
returnFloat(VOLTAGE_SENSOR, VOT.read());
delay(100);
}

0 comments on commit a84a67e

Please sign in to comment.