compare comanndet by a analog value | Cypress Semiconductor
compare comanndet by a analog value
I would like command a DC motor with regulation PID.
1 motor dc 0 to 35V for 0 to 3000 rpm. I command with PWM.
1 tachimeter 0 to 5 v for 0 to 3000 rpm.
I think enter at the ADC with 0-5V and i use the digital value to change a compare value.
I find the tutorial Lab 1 to 4.
For PWM and change the value of compare it's ok.
When i try to copy past the C command for get value of adc they don't work.
Can you help me.
I work with PSoC 4 CY8CKIT-049 4xxx and the tutorial is for psoc 5.