NAVNEET ACHARYA
03-05-04, 01:51 PM
Sir,
I am implementing propotional feedback controlling for DC motor,For that I am using Accelerometer ADXL-105.
I am getting voltage at ADC1 pin.Thereafter I am using simple
logic for maintaining constant output.
For N=5038(PWM-OUTPUT) ,I got constant voltage from Accelorometer 2.868 .I want to mentain the constant velocity corresponding to this voltage.whenever this voltage goes below the 2.868 I increment the N accordingly and when it goes beyond the 2.868 I decrement N accordingly.
for that I am calculating (temp3=N/2.868*actual value(voltage that i am getting at ADC1 )).
I am subtracting this temp3 value from 5038,and adding this difference value to what i am getting to make it desire one.
I want to know this logic is right or not?
I am also sending my code for implementing this logic.
Please comment on this.
Please reply this as soon as possible ?
Regards,
Navneet Acharya
I am implementing propotional feedback controlling for DC motor,For that I am using Accelerometer ADXL-105.
I am getting voltage at ADC1 pin.Thereafter I am using simple
logic for maintaining constant output.
For N=5038(PWM-OUTPUT) ,I got constant voltage from Accelorometer 2.868 .I want to mentain the constant velocity corresponding to this voltage.whenever this voltage goes below the 2.868 I increment the N accordingly and when it goes beyond the 2.868 I decrement N accordingly.
for that I am calculating (temp3=N/2.868*actual value(voltage that i am getting at ADC1 )).
I am subtracting this temp3 value from 5038,and adding this difference value to what i am getting to make it desire one.
I want to know this logic is right or not?
I am also sending my code for implementing this logic.
Please comment on this.
Please reply this as soon as possible ?
Regards,
Navneet Acharya