Tuesday 4 July 2023

Car 3 not working- what's wrong?

 I dug it out a few weeks ago with the idea of changing how the turning occurs because at the time  pressing the left/right button just made the wheels turn for 30 seconds. I changed the software so that on a right turn the wheels stayed turning until the forward button was pressed. 


In testing I noticed that the backwards function was not working any more. One of the problems was that the connections from the Raspberry Pi to the PCB for the motor drivers was somewhat dicky, so I have had fun reworking those. I have now cut off the connectors from the cables and run them through the holes on the PCB and soldered the wires directly to the end of the resistors. But it still didn't work properly. It wouldn't turn left or go backwards. 

I have brought in the uSD card and run it in the test jig.  Backwards does not work, and pressing the forward button to stop the right turn also stops forward motion. Left turn works. So I need to look at the software now. 

No comments: