Closed ghost closed 3 years ago
Now I found the problem! The 5-pin-connector of the robot-HAT was flawed. When I deassembled the HAT from the Raspberry-Pi it broke off completely. Afterwards I made a test where I connected the Pi directly to the motor-driver-module and then I noticed that with this configuration the wheels worked and also the power-led of the motor-driver-module always kept to light up even if no command is processed.
Except of the rear wheels the remote control works fine.
If I run "sudo picar rear-wheel-test", the test ist performing but no wheels are spinning.
I checked the motors by connecting them directly to the batteries -> OK, both spinning.
The power led on the motor-driver-module does not light up even using driving commands trough remote control.
If I change the position of the power-and-motor-control-cables (red and black) connecting motor-driving-module and PCA9865-module at the PCA9865-module from position 4 (yellow/PWM) and 5 (yellow/PWM) to position 4 (red/VIN) and 5 (red/VIN) both wheels are spinning constantly forward and the power led of the motor-driving-module lights up. So it seems that with wiring like in the manual no signal is transmitted to the motors probably due a failure in the code?
Has anyone an idea where the problem could be?