/speed-control-of-a-dc-motor-with-throttle-as-the-input-for-electrical-vehicle

The given code is to controll the speed of the dc motor with respect to the throttle input for electrical bike

Primary LanguageCGNU General Public License v3.0GPL-3.0

the main.c is file to read the adc data from the bike throttle and to generate pwm signal with respect to the throttle signal. by changing the pwm signal with respect to the throttle we can control the speed of the dc motor. the gpio_setup.c file is used to set the direction of the dc motor.