-
Notifications
You must be signed in to change notification settings - Fork 271
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
issue on deep_pi_car code #6
Comments
Please double check your car's electrical connection and make sure batteries are freshly charged. Otherwise, you may get weird low level hardware errors. Hope this helps! |
Hello, thank you for this amazing walk through! I have the latest Pi 4 and i get the following error when running the deep_pi_car.py pi@raspberrypi:~/DeepPiCar/driver/code $ python3 deep_pi_car.py Do i need to edit the code somewhere to include the newer Pi 4 module? |
knight, did you ever figure out how to solve this? I'm have the same exact issue except without the [Errno 121] error. Kind of desperate for an answer! |
rb05751, yeah i got it to work! You have to edit PCA9685.py Then you need to add this after line 72: Then add this after line 100: If i remember correctly, that was the only place you had to edit. Hope it works for you. |
INFO :2020-01-08 14:56:22,072: Creating a DeepPiCar...
DEBUG:2020-01-08 14:56:22,095: Set up camera
Traceback (most recent call last):
File "deep_pi_car.py", line 136, in
main()
File "deep_pi_car.py", line 129, in main
with DeepPiCar() as car:
File "deep_pi_car.py", line 28, in init
self.pan_servo = picar.Servo.Servo(1)
File "/usr/local/lib/python3.7/dist-packages/SunFounder_PiCar-1.0.1-py3.7.egg/picar/SunFounder_PCA9685/Servo.py", line 36, in init
self.pwm = PCA9685.PWM(bus_number=bus_number, address=address)
File "/usr/local/lib/python3.7/dist-packages/SunFounder_PiCar-1.0.1-py3.7.egg/picar/SunFounder_PCA9685/PCA9685.py", line 47, in init
self.bus = smbus.SMBus(self.bus_number)
TypeError: an integer is required (got type NoneType)
The text was updated successfully, but these errors were encountered: