Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert RC PWM signals to 0-100% duty cycle for drive motor #5

Open
kiran-mohan opened this issue Apr 1, 2018 · 1 comment
Open

Comments

@kiran-mohan
Copy link

The existing donkey code controls the drive motor using RC PWM signals which have a 20ms period and the signal range is between 1ms to 2ms. The car purchased has the RC controller's receiver and ESC integrated into one circuit, and so, it is difficult to command RC PWM signals to the native ESC / RC receiver of the car. Hence, a separate ESC is going to be used which would take regular PWM signals with a range of 0-100% duty cycle.

The output from the donkey driver needs to be scaled appropriately.

@griswaldbrooks
Copy link

@kiran-mohan updated a config.py which allowed the robot to scale appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants