ADC logging with demo drive board for calibration

Dependencies:   mbed MODSERIAL FastPWM ADS8568_ADC

Revision:
26:dd4f3ef421d1
Parent:
25:bd29d673e5d3
Child:
27:5dcd526d7598
--- a/main.cpp	Thu Oct 10 16:24:24 2019 +0000
+++ b/main.cpp	Thu Oct 10 16:57:02 2019 +0000
@@ -4,7 +4,7 @@
 #include "MODSERIAL.h"
 
 #define MEAS_DELAY       60  // measurement delay after turning on FET (us)
-#define LOG_INTERVAL   5000  // log file interval (ms)
+#define LOG_INTERVAL   1000  // log file interval (ms)
 #define START_DELAY    1000  // pause for startup (ms)
 #define N_STEPS         100
 #define BUFFER_SIZE    4096
@@ -96,7 +96,7 @@
         }
     }
     
-    if (i_board != -1) pc.printf("Drive board: Board %d\n",drive_board_serial_number[i_board]);
+    if (i_board != -1) pc.printf("Drive board: Board %d   ADC measurement: PWM heater pulse, 60us delay\n",drive_board_serial_number[i_board]);
     else pc.printf("Drive board UID match not found\n");
 
     pc.printf("iStep,      eTime,        I1,         V1,     R1_adc,     R1_ohm,       I2,         V2,     R2_adc,     R2_ohm\n");