NVIDIA-AI-IOT / jetracer

An autonomous AI racecar using NVIDIA Jetson Nano
MIT License
1.06k stars 319 forks source link

Jetracer Built Using Waveshare AI Kit Not Moving Forward #66

Closed ArjunGupte1 closed 2 years ago

ArjunGupte1 commented 4 years ago

Hello, My Waveshare Jetracer Kit (found here: https://www.waveshare.com/wiki/JetRacer_AI_Kit) is not responding to the car.throttle command in the basic_motion jupyter notebook. It is responding fine to the steering commands sent to the servo at the front, but regardless of the throttle value/gain sent to the rear motors, they are not spinning.

Help on how to debug or suggestions for how to address this problem would be appreciated.

Thanks

openbsod commented 4 years ago

Been there with same issue.

Somehow I found myself with https://github.com/NVIDIA-AI-IOT/jetracer installed instead of https://github.com/waveshare/jetracer

After proper software was installed trouble had gone. Throttle works fine for now.

ArjunGupte1 commented 4 years ago

Thanks for the response. I will try making the change you had suggested and see if the throttle works then. But how did you uninstall the original GitHub repository from the Jetson Nano and then reinstall the new one?

openbsod commented 4 years ago

I didnt do that.

cd ~/jetracer

git remote -v
origin  https://github.com/nvidia-ai-iot/jetracer (fetch)
origin  https://github.com/nvidia-ai-iot/jetracer (push)

jetson@jetson:~/jetracer$ git remote set-url origin https://github.com/waveshare/jetracer

jetson@jetson:~/jetracer$ git remote -v
origin  https://github.com/waveshare/jetracer (fetch)
origin  https://github.com/waveshare/jetracer (push)

and sudo python3 setup.py install

mipsan commented 4 years ago

@ArjunGupte1,

Did you resolve this issue?

My JetRacer also responds for steering controls but does not for throttle. waveshare jetracer is used.

ArjunGupte1 commented 4 years ago

Yes, sorry for the late response but after using openbsod's fix it worked. You need to use the forked waveshare repository, not the main Nvidia one. After following his steps remember to close and restart the kernel manually in jupyter notebooks before running the new code (or else your old code will keep running and the new code won't get deployed to the jetson nano).

mipsan commented 4 years ago

Thansk, @ArjunGupte1,

I tested as you said and got same result. I installed from jetcard to jetracer as here: https://www.waveshare.com/wiki/JetRacer_AI_Kit

When I assign some value to car.throttle, Jetracer makes some noise. And clear by zero, noise is disappeared.

Now, I'm gonna try from the first, microSD image file again.

mipsan commented 4 years ago

@ArjunGupte1

Nothing! Even I did microSD image job. Do you have any info about this DC gear motor? e.g vendor

It does not move with direct power feeding by power supply. 12V.

mipsan commented 4 years ago

@ArjunGupte1

I found out what's wrong. DC Geared motor itself! Spin motor shaft couple of minutes by hand without power feeding. And it runs -_-;;

Very embarrassed!

Thanks,

FortyLuck commented 3 years ago

Been there with same issue.

Somehow I found myself with https://github.com/NVIDIA-AI-IOT/jetracer installed instead of https://github.com/waveshare/jetracer

After proper software was installed trouble had gone. Throttle works fine for now.

This approach works for me, thanks!

mipsan commented 3 years ago

https://www.youtube.com/watch?v=5ZMW_KMenio&t=3s

Short video clip here. I made s short guide book which includes JetRacer, OpenCV and Jetson specific deep learning examples. With this, to my surprise, some undergraduate guys made this !