linorobot / linorobot2_hardware

Apache License 2.0
94 stars 84 forks source link

motor driver related #5

Closed raidhu closed 2 years ago

raidhu commented 2 years ago

hello jimenojmm, I'm using https://www.mouser.in/ProductDetail/DFRobot/DRI0018?qs=Zcin8yvlhnO3vbExFigI8Q%3D%3D - motor driver. which is based on bts7960 IC. It is two channel driver and has one PWM and one enable pin to control one motor does that support our use BTS7960_NOTOR_DRIVER https://github.com/linorobot/linorobot2_hardware/blob/6835a5e07ff0c5509ccf1ccac15870a7df2f401d/config/lino_base_config.h#L28 I'm sure that it works with two PWM pins(L_PWM and R_PWM) for both speed and direction. also is that code for BTS DRIVER only support PWM signal?

grassjelly commented 2 years ago

The driver requires two pwm pins. You can check the implementation here. https://github.com/linorobot/linorobot2_hardware/blob/master/firmware/lib/motor/default_motor.h#L116-L182

grassjelly commented 2 years ago

Closing this for now