sunfounder / SunFounder_PiCar

GNU General Public License v2.0
34 stars 75 forks source link

issue with servo-install - nothing happens #9

Open jlrw opened 3 years ago

jlrw commented 3 years ago

I run the code picar servo-install it syas the servo is set to 90 degrees but nothing has moved. Nothing happens. None of the servos move or make any sort of noise. I will continue to construct the car, but I am not hopeful that it will work. I also get all sorts of error messages when I click ctrl-c after waiting for a while -

Traceback (most recent call last): File "/usr/local/bin/picar", line 11, in load_entry_point('SunFounder-PiCar==1.0.1', 'console_scripts', 'picar')() File "/usr/local/lib/python3.7/dist-packages/SunFounder_PiCar-1.0.1-py3.7.egg/picar/init.py", line 46, in main servo_install() File "/usr/local/lib/python3.7/dist-packages/SunFounder_PiCar-1.0.1-py3.7.egg/picar/init.py", line 40, in servo_install time.sleep(1) KeyboardInterrupt

which also seems like it can't be good.

amineremache commented 3 years ago

Same problem here, have you found any solution?

jlrw commented 3 years ago

Boxed it up and sent it back. Bought a chassis, some motors, and built my own...

On Sun, Dec 6, 2020 at 6:21 AM Amine Remache notifications@github.com wrote:

Same problem here, have you found any solution?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sunfounder/SunFounder_PiCar/issues/9#issuecomment-739488586, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRFJVFL7QZRYVIBQZXKSJLSTNSKLANCNFSM4T3XUBSQ .

amineremache commented 3 years ago

Boxed it up and sent it back. Bought a chassis, some motors, and built my own... On Sun, Dec 6, 2020 at 6:21 AM Amine Remache @.***> wrote: Same problem here, have you found any solution? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRFJVFL7QZRYVIBQZXKSJLSTNSKLANCNFSM4T3XUBSQ .

Ah, that's unfortunate, actually, my problem was related to batteries, when I ordered new ones, everything is working now.

hannesa2 commented 3 years ago

Looks like it's a general problem, I run into the same and I've no solution till now. I spent three days, digging into the deepth ... -wtf-

~/git/SunFounder_PiCar (master)$ picar servo-install

Traceback (most recent call last):
  File "/usr/local/bin/picar", line 11, in <module>
    load_entry_point('SunFounder-PiCar==1.0.1', 'console_scripts', 'picar')()
  File "/usr/local/lib/python3.7/dist-packages/SunFounder_PiCar-1.0.1-py3.7.egg/picar/__init__.py", line 46, in main
    servo_install()
  File "/usr/local/lib/python3.7/dist-packages/SunFounder_PiCar-1.0.1-py3.7.egg/picar/__init__.py", line 40, in servo_install
    time.sleep(1)
KeyboardInterrupt
hannesa2 commented 3 years ago

Ah, that's unfortunate, actually, my problem was related to batteries, when I ordered new ones, everything is working now.

What's the explanation with the batteries ? My changing device shows me 100% loaded

hannesa2 commented 3 years ago

Same problem here, have you found any solution?

It's not a malfunction, it's just a bad written python code with the source of misunderstanding. I try to improve it with a pull request https://github.com/sunfounder/SunFounder_PiCar/pull/10