linorobot / linorobot2_hardware

Apache License 2.0
94 stars 84 forks source link

L298n driver to move forward and backward with teleop #7

Closed manirajanvn closed 2 years ago

manirajanvn commented 2 years ago

Hello, I m using teensy 4.0, L298N(GENERIC_2_IN_MOTOR_DRIVER ), GY-85 and rplidar. After upload firmware to teensy, was using teleop to test. when I press u, i, o wheels are rotating in forward and when I press m, ,(comma), .(dot) wheels are not rotating in backward. Just want to know is this expected or Am I missing something. Please find the attached driver image and config

Thanks Mani

l298n i l298n_1 lino_base_config.h.txt

grassjelly commented 2 years ago

Hey @manirajanvn ,

Are the wheels not spinning backwards during calibration too or this behavior only happens with the firmware (w/ microros)?

manirajanvn commented 2 years ago

Hi, Wheels are rotating forward separately for spin and sample commands during calibration.

grassjelly commented 2 years ago

Hmm, this could be hardware related. Can you confirm that the L298's GND shares the same ground with the Teensy?

manirajanvn commented 2 years ago

Hi, This issue is resolved, have missed L298's GND to Teensy. Thanks