Open axi0m opened 3 years ago
Update: I purged all dependencies and started over from scratch.
Still had problems with numpy dependency, unable to import cv2?
Referenced this page: https://www.raspberrypi.org/forums/viewtopic.php?t=211859
Did the following:
sudo apt install libatlas3-base libsz2 libharfbuzz0b libtiff5 libjasper1 libilmbase12 libopenexr22 libilmbase12 libgstreamer1.0-0 libavcodec57 libavformat57 libavutil55 libswscale4 libqtgui4 libqt4-test libqtcore4
sudo pip3 install opencv-contrib-python
I can at least see the camera output to the web interface after running sudo ./start
but the controls for the wheels and camera servos don't seem to function via the webapp, no errors in the terminal but will dig into the dev console on brower and turn on debug logs in the django webapp later.
Update2: I'm still unable to get the servos to react physically, I installed i2c-tools and can see the various boards at different i2c addresses. In addition I turned on all debug modes in several python files but there is no Django error. Far as I can tell the logs indicate that commands are received by Django API but no idea why the servos are not responding.
Update3 If I plugin the 5.5V DC power (battery operated) while I run picar servo-install
it functions, all the servos adjust to 90 degrees successfully. If I run the remote control wrapper sudo ./start
all components function.
Question: If I run picar servo-install
and then sudo ./start
and disconnect from the micro USB power adapter and the batteries die, will I have to re-run picar servo-install
? And if so, do I need to disassemble the entire front wheel assembly to unhook/unscrew all the servos each time the battery dies? My understanding reading the PDF guide, is the servo-install
command must be run every time power to the PCA9685 controller is lost.
Thank you for your assistance
I have run the ./install_dependencies shell script under the folder
SunFounder_PiCar-V
No errors were identified during the install script.
However when I navigate to /home/pi/SunFounder_PiCar-V/remote-control/ and run
sudo ./start
I get the following tracebacks, the django UI is up and functioning but it seem the camera module isn't working and the wheels are not calibrating.