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.

History

Correct adc2 calibration offset and the dac1 calibration factor and offset, remove some junk comments default tip

2017-06-22, by tonnyleonard [Thu, 22 Jun 2017 10:41:57 +0000] rev 23

Correct adc2 calibration offset and the dac1 calibration factor and offset, remove some junk comments


Change serial reading keyword for DAC setting from dac= to v=

2017-06-22, by tonnyleonard [Thu, 22 Jun 2017 02:04:21 +0000] rev 22

Change serial reading keyword for DAC setting from dac= to v=


Adjust DAC scaling factor

2017-06-21, by tonnyleonard [Wed, 21 Jun 2017 01:27:13 +0000] rev 21

Adjust DAC scaling factor


Change maximum time window for speed computation from 500 ms to 100 ms

2017-06-18, by tonnyleonard [Sun, 18 Jun 2017 21:20:00 +0000] rev 20

Change maximum time window for speed computation from 500 ms to 100 ms


Change serial baud rate to 921600 and the main delay period to 5 ms

2017-06-17, by tonnyleonard [Sat, 17 Jun 2017 21:04:42 +0000] rev 19

Change serial baud rate to 921600 and the main delay period to 5 ms


Clean the code, small fixes

2017-06-15, by tonnyleonard [Thu, 15 Jun 2017 18:16:15 +0000] rev 18

Clean the code, small fixes


Adjust error messages and change serial read method from scanf() to getc()

2017-06-15, by tonnyleonard [Thu, 15 Jun 2017 17:20:59 +0000] rev 17

Adjust error messages and change serial read method from scanf() to getc()


Change serial output format to fit all values in one line

2017-06-15, by tonnyleonard [Thu, 15 Jun 2017 04:23:01 +0000] rev 16

Change serial output format to fit all values in one line


Create encoder counter based on index counting, update readData() with new parsing options, adjust speed computation to avoid interrupts, clean code. Quasi final version.

2017-06-14, by tonnyleonard [Wed, 14 Jun 2017 01:23:53 +0000] rev 15

Create encoder counter based on index counting, update readData() with new parsing options, adjust speed computation to avoid interrupts, clean code. Quasi final version.


Correct ADC & DAC factors for DCPS load conditions, add table with these corrective additions

2017-06-03, by tonnyleonard [Sat, 03 Jun 2017 18:59:04 +0000] rev 14

Correct ADC & DAC factors for DCPS load conditions, add table with these corrective additions