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.

Changes

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