![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
ADC logging with demo drive board for calibration
Dependencies: mbed MODSERIAL FastPWM ADS8568_ADC
Diff: main.cpp
- Revision:
- 28:f2585571ce25
- Parent:
- 27:5dcd526d7598
- Child:
- 30:ab214b681d9b
diff -r 5dcd526d7598 -r f2585571ce25 main.cpp --- a/main.cpp Fri Oct 11 14:06:30 2019 +0000 +++ b/main.cpp Tue Mar 17 14:57:49 2020 +0000 @@ -24,15 +24,15 @@ unsigned long drive_board_uid[UID_TABLE_LENGTH][3] = {{0x005B0060, 0x32375101, 0x32363531}, - {0x0051003D, 0x32375114, 0x30333732}, + {0x00530028, 0x32375116, 0x30333732}, {0x00520060, 0x32375101, 0x32363531}, {0x00570060, 0x32375101, 0x32363531}}; float drive_board_cal[UID_TABLE_LENGTH][2][2] = - {{{0.0908347476278717, 10.1921343711427}, {0.0497613470164513, 10.2109327517567}}, - {{0.0596907336847412, 10.1550084867437}, {0.0320376283698263, 10.2580153464834}}, - {{0.0119648730956925, 10.4065902688349}, {0.0256785142683800, 10.2921134395920}}, - {{0.0482969653247984, 10.0688110602909}, {0.0882102280729402, 10.1322703041679}}}; + {{{0.098846, 10.190057}, {0.060713, 10.208784}}, + {{0.060987, 10.154840}, {0.033058, 10.239591}}, + {{0.014312, 10.405662}, {0.000000, 1.0000000}}, + {{0.055152, 10.062970}, {0.114355, 10.123188}}}; MODSERIAL pc(PA_9, PA_10, BUFFER_SIZE); //mcu TX, RX, BUFFER_SIZE byte TX and RX buffers ADS8568_ADC adc(PB_15, PB_14, PB_13, PB_12, PC_15, PC_0, PC_1, PC_2, PC_3);