adeept / Adeept_RaspTank

Example programs for Adeept RaspTank
MIT License
93 stars 93 forks source link

Getting Started with Raspberry Pi Robot and Python

1. Premise

1.1 STEAM and Raspberry Pi

STEAM stands for Science, Technology, Engineering, Arts and Mathematics. It's a type of transdisciplinary education idea focused on practice. As a board designed for computer programming education, Raspberry Pi has lots of advantages over other robot development boards. Therefore, Raspberry Pi is used for function control of the robot.

1.2 About the Documentation

This documentation is for software installation and operation guide for the Python robot product. It describes every detail of the whole process of fulfilling the robot project by Python and Raspberry Pi from scratch as well as some precautions. Hope you can get started with the Raspberry Pi robot on Python and make more creations with this documentation.

mermaid

2. Getting to Use the Raspberry Pi

2.1 Write the Raspberry Pi image to an SD card

2.1.1 Method A: Write 'Raspbian' to the SD card by Raspberry Pi Imager

Raspberry Pi Imager is an image writing tool to SD card developed by the Raspberry Pi Organization. It comes with many versions working on different systems and it's quite easy to use; all you need is choose the operating system and SD card, Raspberry Pi Imager will download the corresponding image file for the system and install it to the SD card.

Step-by-Step Overview

  1. Prepare an SD card (16G or larger) and an SD card reader
  2. Download the Raspberry Pi Imager on the official website Official Raspberry Pi website
  3. Install the Raspberry Pi Imager
  4. Write the operating system for Raspberry Pi to the SD card with Raspberry Pi Imager Raspbian Full - A port of Debian with desktop and recommended application
  5. Leave the SD card connected after writing is completed, we'll use for configuring SSH and WiFi connection later.

Detailed Steps:

2.1.2 Method B: Download the image file Raspbian and write it to the SD card manually

Since the image file is downloaded with the Raspberry Pi Imager in 2.1.1, it can take a long time due to a slow network in some places. You may then manually download the image file Raspbian and write it to the SD card with th Raspberry Pi Imager.

Step-by-Step Overview

  1. Prepare an SD card (16G or larger) and an SD card reader
  2. Download the Raspberry Pi Imager on the official website Official Raspberry Pi website
  3. Install the Raspberry Pi Imager
  4. Download the image file Raspbian
  5. Unzip the file, be noted that the path should be in English for the .img file extracted, no special characters allowed.
  6. Write the image file Raspbian downloaded to the SD card with Raspberry Pi Imager
  7. Leave the SD card connected after writing is completed, we'll use for configuring SSH and WiFi connection later.

Detailed Steps:

2.1.3 Method C: Manually download the image file provided by us and write it to the SD card (not recommended)

The Raspbian image file downloaded in 2.1.1 and 2.1.2 is the official source with some preinstalled software. To operate the robot, you may need many dependent libraries. Though we provide the simple script to install them (see details later), failure can happen during installation if the library is not the latest version. Therefore, despite we provide the downloading of the Raspbian image file, it may happen that our image file and the dependent libraries are not most updated versions. Please only use when you encounter the most troublesome situation.
Step-by-Step Overview

  1. Prepare an SD card (16G or larger) and an SD card reader
  2. Download the Raspberry Pi Imager from the official website Official Raspberry Pi website
  3. Install the Raspberry Pi Imager
  4. Download the image file Raspbian
  5. Unzip the file, be noted that the path should be in English for the .img file extracted, no special characters allowed.
  6. Write the image file Raspbian downloaded to the SD card with Raspberry Pi Imager
  7. Leave the SD card connected after writing is completed, we'll use for configuring SSH and WiFi connection later.

Detailed Steps:

2.2 Enable SSH Server of Raspberry Pi

2.2.1 Method A: Enable SSH with peripherals

2.2.2 Method A: Enable SSH without peripherals

2.3 Configure WiFi on Raspberry Pi

There are many ways to connect WiFi for Raspberry Pi. Two methods are provided in this documentation; you may visit the official Raspberry Pi website for more: Wireless connectivity.

2.3.1 Method A: WiFi connection with peripherals

2.3.2 Method A: WiFi connection without peripherals

3. Software Installation & Operation on Raspberry Pi

3.1 Log into Raspberry Pi (Windows 10)

winSSH

3.2 Log into Raspberry Pi (Linux or Mac OS)

3.3 Log into Raspberry Pi (Windows)

putty

3.4 Download Program of the Raspberry Pi Robot

3.5 Install Corresponding Dependent Libraries

3.6 Run the Raspberry Pi Robot's Program

4. Precautions for Structure Assembly

4.1 Documentation for structure assembly

4.2 Precautions for Structure Assembly

5. Controlling Robot via WEB App

webControl

6. Q&A