A program to monitor some parameters for a motor

Dependencies:   mbed-dev BufferSerial

Thanks to David Lowe for https://developer.mbed.org/users/gregeric/code/Nucleo_Hello_Encoder/ which I adapted for the use of TIM2 32bit timer as an encoder reader on the Nucleo L432KC board.

Revisions of main.cpp

Revision Date Message Actions
23:5cd74e296f59 2017-06-22 Correct adc2 calibration offset and the dac1 calibration factor and offset, remove some junk comments File  Diff  Annotate
22:9bba1417e4a4 2017-06-22 Change serial reading keyword for DAC setting from dac= to v= File  Diff  Annotate
21:65f16b24ccd8 2017-06-21 Adjust DAC scaling factor File  Diff  Annotate
20:f62feecc8334 2017-06-18 Change maximum time window for speed computation from 500 ms to 100 ms File  Diff  Annotate
19:51075c725004 2017-06-17 Change serial baud rate to 921600 and the main delay period to 5 ms File  Diff  Annotate
18:1ef20c13693c 2017-06-15 Clean the code, small fixes File  Diff  Annotate
17:75815e312312 2017-06-15 Adjust error messages and change serial read method from scanf() to getc() File  Diff  Annotate
16:e423f891cfbc 2017-06-15 Change serial output format to fit all values in one line File  Diff  Annotate
15:8adff67fe707 2017-06-14 Create encoder counter based on index counting, update readData() with new parsing options, adjust speed computation to avoid interrupts, clean code. Quasi final version. File  Diff  Annotate
14:e5f5b345b2fe 2017-06-03 Correct ADC & DAC factors for DCPS load conditions, add table with these corrective additions File  Diff  Annotate
13:e08e3540c30b 2017-06-02 Calibrate DAC2 and ADC2 values File  Diff  Annotate
12:8c355d78e081 2017-06-02 Add relay on PB_5 and serial parsing for it File  Diff  Annotate
11:7a9837acbea0 2017-05-30 Fix speed conversion coefficient error (12.5 -> 125) File  Diff  Annotate
10:8862c8779b71 2017-05-30 Add encoder speed algorithm File  Diff  Annotate
9:4d736d29ce19 2017-05-27 Testing ADC with shunt File  Diff  Annotate
8:28ad0ba5a673 2017-05-19 Small improvements File  Diff  Annotate
7:7f59b69d8895 2017-05-18 Serial read implemented with interrupt (serial.attach() method) File  Diff  Annotate
6:5d4c09973041 2017-05-14 Preliminary encoder with 3 ADC inputs and one DAC output File  Diff  Annotate
5:29372f6cb533 2017-05-13 classical encoder implementation File  Diff  Annotate
4:4f115819171f 2017-05-13 Excluding the first 16 bit encoder, not needed File  Diff  Annotate
2:958e9094b198 2017-03-11 System ticker on Nucleo L432KC board changed from TIM2 to TIM7, so that one may use TIM2 for a 32bit encoder counter. File  Diff  Annotate
1:a611582bffa7 2017-03-08 TIM1 fixed File  Diff  Annotate
0:789510d98ade 2017-03-08 Adapting attempt to L432KC File  Diff  Annotate