I am working on a project of a DC motor car which have the following features:
1. operating in 4 quadrants
2. varying speed using PWM
3. automatic lighting system (will turn on lights based on the environment light intensity)
4. crash avoiding system (the car will automatically stop when there is an obstacle)
i have been able to achieve the 4 quadrants operation.
my problem is with the speed varying using PWM. i want to increase the speed in rate of 10% when the SPPED++ is pressed. the dc motor i am using runs at 6v max. i am able to set min duty cycle and run the motor at 10%.
But when i press the increase button the speed does not go to 20% but runs at a random value. and when the speed is at maximum it should ignore the pressing the SPEED++ button
please help
1. operating in 4 quadrants
2. varying speed using PWM
3. automatic lighting system (will turn on lights based on the environment light intensity)
4. crash avoiding system (the car will automatically stop when there is an obstacle)
i have been able to achieve the 4 quadrants operation.
my problem is with the speed varying using PWM. i want to increase the speed in rate of 10% when the SPPED++ is pressed. the dc motor i am using runs at 6v max. i am able to set min duty cycle and run the motor at 10%.
But when i press the increase button the speed does not go to 20% but runs at a random value. and when the speed is at maximum it should ignore the pressing the SPEED++ button
please help