-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Car running in a circle #18
Comments
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. The servo motor will calibrate itself straight forward (90°). |
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)). 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 ? |
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?
The text was updated successfully, but these errors were encountered: