DeepPiCar
DeepPiCar copied to clipboard
Car running in a circle
I have followed the steps and also passed all the front wheel and back wheel tests, but I when run python3 deep_pi_car.py the car is driving in circles instead of following the lane. Does anyone run into the same issue?
Hi @jliu1118 ,
I'm running in the exact same issue. Have you found your error ?
I actually found the error @jliu1118 . Basically, your clutch gear motor/front wheel motor, has to be calibrated with SunFounder script. So like you do : cd SunFounder_PiCar-V picar servo-install
The servo motor will calibrate itself straight forward (90°). You then have to put the front wheel bar so that it is straight.
Hey sorry about the late response. What do you mean by put the front wheel bar so that It is straight? @VicoLeChips49
Watch this : https://www.youtube.com/watch?v=voaP0jjPA_g&ab_channel=GregGriffes
But on the video, it's an old motor (the new one SunFounder is providing are white (at least what I received) and they turn up to 360.
Before putting the motor into the car, you have to calibrate it (through SunFounder command (see above)). Once done, it means that the motor is straight. Therefore, you can add the rocker arm, but pay attention to put it staight (towards what the car is looking).
The issue I had is that, I did not calibrate the car, and just put the rocker arm, and because it was not calibrated, the 90° in the software (corresponding to straight forward) was actually full left.
Hope you understand what I mean.
I actually did calibrate the car before I put the rocker arm. Maybe there is something wrong with the rocker arm. Did you have to make any changes to the code?
When you run the code, does the wheel turn on one side right away ?
De : jliu1118 Envoyé le :samedi 21 août 2021 20:22 À : dctian/DeepPiCar Cc : VicoLeChips; Mention Objet :Re: [dctian/DeepPiCar] Car running in a circle (#18)
I actually did calibrate the car before I put the rocker arm. Maybe there is something wrong with the rocker arm. Did you have to make any changes to the code? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
@VicoLeChips49 yep. It turns right away
@jliu1118 Ok, try to modify its main file in order to just run the first lines like that : https://prnt.sc/1qek6r4
Do the wheel fixes itself (start forward) or does it turn again ?