Hallo to everybody,
I connected my LAUNCHXL-F28027 C2000 Piccolo LaunchPad with Matlab-Simulink and Code Composer Studio 5.
I am trying to control (output) a DC Motor with PWM from the microcontroller by using Simulink ( Embedded Coder).
As inputs , i do have 2 FSR connected to ADC Ports.
Right now the more i press the FSR1 the faster my motor turns Right.
the more i press the FSR2 the faster my motor turns Left.
Is there any idea how can i collect Data from the 2 Inputs (ADC-Ports) and compare those, in order to control how fast the motor will turn? And ofcourse when it will turn?
For example: 1) When i press the FSR with just a little power i wish to have no output.
2) When i press with a little bit more power then 1/2 total fastness.
So... something like dead zone or steps.
Thanks ,
John