51
iv.
Calibration
Preparation
For Server
Make sure that the circuit is connected properly. Power the smart car, open a
terminal in Linux. Connect with your Raspberry Pi via
ssh
. Go to the directory
Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi/server
,
run
the
server
cali_server.py
:
cd ~/Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi /server
sudo python cali_server.py
Then the contents of
config
are printed and the last line: Waiting for connection
…
At this time, the car might move a bit (this is the original position set)
For Client
Open another terminal. Find the sketch downloaded and edit
client/cali_client.py:
cd client/
sudo nano cali_client.py
Find the variable of
HOST
: