This is when we used PWM to control the car’s speed. Either update the PWM duty cycle after a certain amount of time (during which the number of hits are logged), or continuously update it with each hit. We tried the method of updating PWM after a certain amount of time (every 1 s or so).
Positives | Negatives |
Libraries already available | Range of speeds that can be set by setting a voltage is very low |
easy to impliment because of the DC motor | Easily stall at the lower speeds |
Simple logic in that all that had to be called was function that changed the duty cycle of the PWM signal |
Method was not chosen