Skip to content
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

Open
jliu1118 opened this issue May 29, 2021 · 8 comments
Open

Car running in a circle #18

jliu1118 opened this issue May 29, 2021 · 8 comments

Comments

@jliu1118
Copy link

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?

@VicoLeChips
Copy link

Hi @jliu1118 ,

I'm running in the exact same issue. Have you found your error ?

@VicoLeChips
Copy link

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.

@jliu1118
Copy link
Author

Hey sorry about the late response. What do you mean by put the front wheel bar so that It is straight? @VicoLeChips49

@VicoLeChips
Copy link

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.

@jliu1118
Copy link
Author

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?

@VicoLeChips
Copy link

VicoLeChips commented Aug 21, 2021 via email

@jliu1118
Copy link
Author

@VicoLeChips49 yep. It turns right away

@VicoLeChips
Copy link

@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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants