Software

Image

In the major version of the Pytobot is an image included. The image comes loaded with the last features of the software.
The default features are:
  • Battery security
  • Startup with hotspot
  • SSID and PASSWD printed on OLED
  • Camera stream
  • Basic tutorial to setup The API's
  • Driving the car

Setup

When you would like to start from scratch. And go the whole procedure by yourself. This chapter will guide you through it.

Installing software

The following script includes all of the libraries that are needed in the software. When you like to run the whole script in one time, use following commands:
1
nano script
Copied!
Copy paset "script" into the terminal and exit by using Ctrl-x and confirm.
script
1
#pip3 install --upgrade pip
2
3
#Enable I2C
4
#Enable SPI
5
6
sudo apt update
7
sudo apt upgrade
8
9
#install git
10
sudo apt install git
11
12
#install I2C tools
13
sudo apt install i2c-tools
14
15
#install pip
16
sudo apt install python3-pip
17
18
#install led drivers
19
sudo pip3 install adafruit-circuitpython-neopixel
20
21
#install motor drivers
22
sudo pip3 install gpiozero
23
24
#install flask
25
sudo pip3 install flask
26
27
#install camerea
28
sudo pip3 install picamera
29
30
#install OLED
31
sudo pip3 install adafruit-circuitpython-ssd1306
32
sudo apt install python3-pil
33
34
#install MCP3008
35
sudo pip3 install adafruit-circuitpython-mcp3xxx
36
37
#install dnsmasq
38
sudo apt install dnsmasq hostapd
39
40
#install samba
41
sudo apt install samba samba-common-bin
42
43
#delte script
44
sudo rm script
Copied!
Download repo
1
git clone https://github.com/pytobot/pytobot.git
Copied!

Enable interfaces

The following code will give the script the right permissions to execute and runs the code.
1
chmod +x script
2
time yes | sudo ./script
3
git clone https://github.com/pytobot/pytobot.git
Copied!
1
sudo raspi-config
Copied!
Go to 5. [interfacing options] and enable:
  • Camera
  • SSH
  • SPI
  • I2C
Last modified 2yr ago