2020-03-18, 05:02 PM
Hello Sean,
After checking the outputs of pins 2,3,9 and 10, I was able to verify that pins 2 and 3 work normally, but that pin 9 sends current only in one direction, pin 10 sends it in the other direction: it is therefore necessary to connect these last 2 pins to the same 'enable' input of the l298n. Not wanting to touch your code, I did this by using 2 diodes so as not to short-circuit the 2 pins, but to use it alternately, depending on whether the rotation is to the right or to the left.
The pilot seems to be walking now (on my desk for now, while waiting for the tests on board) !!
Pin 9 - |> ---- | _______ Enable L298N
Pin 10 - |> --- |
I still have to calibrate and adjust the gain !!!
thank you so much
Kinefou
After checking the outputs of pins 2,3,9 and 10, I was able to verify that pins 2 and 3 work normally, but that pin 9 sends current only in one direction, pin 10 sends it in the other direction: it is therefore necessary to connect these last 2 pins to the same 'enable' input of the l298n. Not wanting to touch your code, I did this by using 2 diodes so as not to short-circuit the 2 pins, but to use it alternately, depending on whether the rotation is to the right or to the left.
The pilot seems to be walking now (on my desk for now, while waiting for the tests on board) !!
Pin 9 - |> ---- | _______ Enable L298N
Pin 10 - |> --- |
I still have to calibrate and adjust the gain !!!
thank you so much
Kinefou