Fixed not important stuff.

This commit is contained in:
2018-10-16 19:04:54 +00:00
parent d8a2a31596
commit 20cc00177b

View File

@@ -15,7 +15,7 @@ Tue Jun 12 14:56:12 GMT 2018
#include <SoftwareSerial.h> // Handles serial communications thru software
// Configuration of pins, insert here arduino pin numbers only(not fisical)----------------------------
// Configuration of pins, insert here arduino pin numbers only(not fisical)---------------------------
#define i_load 6 // Analog pin for the load current
#define v_batt 7 // Analog pin for the battery voltage
#define volt_1 0 // Analog pin for voltage 1
@@ -30,7 +30,7 @@ LiquidCrystal lcd(7, 6, 2, 3, 4, 5); // LCD screen pins, LiquidCrystal(rs, enabl
//-----------------------------------------------------------------------------------------------------
// Other configurations ------------------------------------------------------------------------------------
// Other configurations ---------------------------------------------------------------------------
#define voltage_1 0 // Parameter position where voltage one value is hold
#define voltage_2 1 // Parameter position where voltage two value is hold
#define curr 2 // Parameter position where load current value is hold
@@ -47,7 +47,7 @@ LiquidCrystal lcd(7, 6, 2, 3, 4, 5); // LCD screen pins, LiquidCrystal(rs, enabl
#define no 0 // no is always zero
#define yes 1 // yes is alyays one
File myFile; // Initiate the object File to write in the SD card
//----------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------
// Macros --------------------------------------------------------
@@ -57,7 +57,7 @@ File myFile; // Initiate the object File to write in the SD card
//----------------------------------------------------------------
// Variables --------------------------------------------------------------------------------------------------------------
// Variables --------------------------------------------------------------------------------------
bool sd_rw = off; // Holds the state of read/write of the card
bool load_status = off; // Holds the state of on/off of the load
bool sd_inserted = no; // Holds the state if sd card is in or not
@@ -78,7 +78,7 @@ float parameters[4]; // Parameters of the several voltages and curre
float denominator; // Denominator to calculate the voltage divider
int resistor1 = 22000; // Resistor one of voltage divider
int resistor2 = 2200; // Resistor two of voltage divider
// ------------------------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------