www.adeept.com
17
*Now you may wonder about the difference between apt-get install and pip install, here is
the answer:
pip3
is used to download and install packages directly from PyPI (Python Package Index),
hosted by Python Software Foundation. It is a specialized package manager that only
deals with python packages.
Note:
There are two versions of Python in Raspberry Pi by default, for our Python
programs are written with Python 3.x(3.7), you need to use
pip3
instead of
pip
, which is
used to install software in Python 2.x.
apt-get
is used to download and install packages from Ubuntu repositories which are
hosted by Canonical.
MPU6050 Installation
sudo pip3 install mpu6050-raspberrypi
This is a package used to read data from mpu6050.
Download Packages for WS_2812:
sudo pip3 install rpi_ws281x
rpi_ws281x is a Raspberry Pi library for controlling WS281X LEDs.
Download Program for the RaspArm
git clone https://github.com/adeept/rasparm.git
Set AP-Hotspot
Configure the Raspberry Pi as the Wi-Fi hotspot mode to build up a direct communication
between the PC and the car.
If the RPi Car starts and there is no Wi-Fi to connect with, the RPi Car will set a
AP-Hotspod itself. You can connect it with your PC:
Search Wi-Fi SSID name: AdeeptCar
Password: 12345678
Check the following steps and more information from Github:
https://github.com/oblique/create_ap
Downloadthe code from Github to a local path for installation:
git clone https://github.com/oblique/create_ap
cd create_ap
sudo make install
Install the dependent libraries:
sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq
Add the RPi Car program to auto-start
Creat a car.desktop to add the RPi Car program to auto-run
sudo nano /home/pi/.config/autostart/car.desktop
Type in
:
[Desktop Entry]
Summary of Contents for RaspArm
Page 1: ...www adeept com 1...
Page 14: ...www adeept com 11 If a warning window prompts click Yes...
Page 25: ...www adeept com 22 2 Connect the battery holder and Raspberry Pi Note that the switch is OFF...
Page 60: ...www adeept com 57 Assemble the following components Effect diagram after assembling...
Page 70: ...www adeept com 67...