sunfounder / SunFounder_PiCar-V

Smart Video Car Kit V2.0 for Raspberry Pi from SunFounder
GNU General Public License v2.0
112 stars 175 forks source link

Front Wheels not moving. Back wheels work fine #38

Open Surbhimangla opened 4 years ago

Surbhimangla commented 4 years ago

Hi

I just assembled the PiCar S and installed the software. When i run " picar front-wheel-test" nothing happens. However, the back wheels are mving with the command "picar rear-wheel-test". Please help

selvadurai commented 3 years ago

Same here, having the same issue.

axi0m commented 3 years ago

I have an issue with both front and rear wheels not functioning.

Updates to my issue here: https://github.com/sunfounder/SunFounder_PiCar-V/issues/53

I have since restored mechanical functionality to front and back wheels as long as I have DC power supplied to the PCA9685 controller.

hannesa2 commented 3 years ago

Same here, having the same issue.

After $ picar servo-install I see

Servo now is set to 90 degree.

image

Then I start server with cd remote_control/ && sudo ./start

Server running
Performing system checks...

DEBUG "front_wheels.py": Set debug off
DEBUG "front_wheels.py": Set wheel debug off
DEBUG "Servo.py": Set debug off
DEBUG "back_wheels.py": Set debug off
DEBUG "TB6612.py": Set debug off
DEBUG "TB6612.py": Set debug off
DEBUG "PCA9685.py": Set debug off
DEBUG "camera.py": Set debug off
DEBUG "camera.py": Set pan servo and tilt servo debug off
DEBUG "Servo.py": Set debug off
DEBUG "Servo.py": Set debug off
mjpg_streamer -i "/usr/local/lib/input_uvc.so" -o "/usr/local/lib/output_http.so -w /usr/local/www" &
None
System check identified no issues (0 silenced).
January 03, 2021 - 13:47:08
Django version 2.0, using settings 'remote_control.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.

Back wheels are working but front wheels do nothing with Test, A and D. Server receives commands !

image

@axi0m @Surbhimangla @selvadurai Did you fixed this ?

hannesa2 commented 3 years ago

Something works somehow

servoFrontWheel = Servo.Servo(0, bus_number=1)
servoFrontWheel.write(i)

works only for values from 180 (almost strait forward) and 135 (45° to the left) All values < 135 and > 180 have no affect, and I'm not able to move wheels to the right at all

hannesa2 commented 3 years ago

@sunfounder Please can you help to fix this ?

hannesa2 commented 3 years ago

I found the reason: Disable front wheels to have the state https://github.com/sunfounder/SunFounder_PiCar-V/blob/V3.0/docs/(EN)%20PiCar-V%20User%20Manual.pdf p.43 Do picar servo-install this will move your servo the default position, then continue with assemble again.....

Now it works properly