2019-02-02, 06:23 PM
If it is an arduino, it would be best to use the existing arduino sketch. It supports 3 types of controller:
What you described is not a good protocol to use because it is inefficient and lacks error checking. It also seems like it doesn't support all the features already implemented. Please check the source code in arduino/motor/motor.ino of the pypilot repository.
- servo ESC pwm, single output
- pwm and direction, two outputs
- direct hbridge, four outputs
What you described is not a good protocol to use because it is inefficient and lacks error checking. It also seems like it doesn't support all the features already implemented. Please check the source code in arduino/motor/motor.ino of the pypilot repository.