Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #94 from romainreignier/fix_voltage_reference
Browse files Browse the repository at this point in the history
Fix voltage reference in examples
  • Loading branch information
leonardocavagnis authored Sep 21, 2023
2 parents 29acab4 + 493324e commit 9617669
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using namespace machinecontrol;

float res_divider = 0.28057;
float reference = 3.3;
float reference = 3.0;

void setup() {
analogReadResolution(16);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ using namespace machinecontrol;

#define SENSE_RES 120

float reference = 3.3;
float reference = 3.0;

void setup() {
analogReadResolution(16);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using namespace machinecontrol;

#define REFERENCE_RES 100000

float reference = 3.3;
float reference = 3.0;
float lowest_voltage = 2.7;

void setup() {
Expand Down

0 comments on commit 9617669

Please sign in to comment.