2020-03-07, 08:04 PM
Hello,
I try without success to connect an arduino running 'motor.ino' on my raspberry pi4 in UART (after having disabled the bluetooth) to make a test of pypilot.
I have grounded pins A0, A1, A2, A3 and A4, as I have not connected any sensor!
At first, I connected an RC servo to pin 9 after putting pin 6 to earth (pwm_style = 0); and I observe encouraging reactions from my servo which compensates for the deviation from the chosen route in the right direction, but which does so in the form of brief deviations from the servo !!
Secondly, I plug the pin 6 on vcc (pwm_style = 1) to switch to H-bridge mode and I plug in a L298N module with 'enable' on pin 9, 'In1' on pin 2 and 'In2' on Pin3, but I don't see any reaction from the engine.
In motor.ino, it is indicated that the H-bridge plugs in low on pins 2 and 3 and in high on pins 9 and 10: but where plugs the 'enable', given that pin 9 of pwm is busy!
I pers my Latin !!!
I must surely make a mistake, thank you for putting me on the right way!
Cordialy
I try without success to connect an arduino running 'motor.ino' on my raspberry pi4 in UART (after having disabled the bluetooth) to make a test of pypilot.
I have grounded pins A0, A1, A2, A3 and A4, as I have not connected any sensor!
At first, I connected an RC servo to pin 9 after putting pin 6 to earth (pwm_style = 0); and I observe encouraging reactions from my servo which compensates for the deviation from the chosen route in the right direction, but which does so in the form of brief deviations from the servo !!
Secondly, I plug the pin 6 on vcc (pwm_style = 1) to switch to H-bridge mode and I plug in a L298N module with 'enable' on pin 9, 'In1' on pin 2 and 'In2' on Pin3, but I don't see any reaction from the engine.
In motor.ino, it is indicated that the H-bridge plugs in low on pins 2 and 3 and in high on pins 9 and 10: but where plugs the 'enable', given that pin 9 of pwm is busy!
I pers my Latin !!!
I must surely make a mistake, thank you for putting me on the right way!
Cordialy