Assembling and first start
I found the tutorials and samples (here) and they looked pretty good. After I installed an operation system, car server, and all dependencies I tried to start a car's webserver. The server returned an error: 'Could not determine default I2C'. I googled it and found that the webserver uses a deprecated library: Adafruit_Python_GIRO. The recommendation was to use a new library called Blinka.
I installed Blinka but it didn't help to start the server. I looked in the server's code and tried to hack it so it works with the new library. No success here as well - the server requires many changes to migrate to the new library. So disappointing...
I was desperate and about to scrap everything when I suddenly realized the manufacturer had included the image file with Raspberry Pi OS and the webserver (here is the link). The tutorial described this option as a "not recommended" way to install the system. So I followed that "not recommended" approach and everything worked smoothly! My servo motor reacted and I started assembling the car following the instructions.
Useful tip: Start from this step
I configured my home WiFi in the Imager settings. I enabled ssh and configured the user name and password. Although the tutorial says you can skip it for "not recommended approach", I did it because I wasn't able to find credentials for pre-configured ssh access.
After that follow the assembling instructions from Section 4. You do not need to install anything as everything is already preinstalled in the provided image file.
Here is what I got (Front)And backI turned on my car, logged into it by ssh and started the server:
sudo python3 Adeept_AWR/server/webServer.py
Here is a control screen
Useful tip 2:
Useful links
Adeept AWR 4WD WiFi Smart Robot Car Kit for Raspberry PI
Tutorials and samples (local copy)
Copper cooling for Raspberry Pi
No comments:
Post a Comment