Tutorial

Table Of Contents
1
Content
1. Premise
..............................................................................................................................................................................
1
1.1 STEAM and Raspberry Pi
.................................................................................................................................................
1
1.2 About The Documentation
.............................................................................................................................................
1
2. Raspberry Pi System Installation and Development Environment Establishment
...........................................................
3
2.1 Install An Operating System for The Raspberry Pi
..........................................................................................................
3
2.1.1 Method A: Write 'Raspbian' to The SD Card by Raspberry Pi Imager
.................................................................
3
2.1.2 Method B: Download The Image File Raspbian and Write It to The SD Card Manually
....................................
5
2.1.3 Method C: Manually Download The Image File Provided by Us and Write It to The SD Card (Not
Recommended)
.............................................................................................................................................................
8
2.2 Enable SSH Server of Raspberry Pi
...............................................................................................................................
10
2.2.1 Method A: Enable SSH with Peripherals
...........................................................................................................
11
2.2.2 Method A: Enable SSH without Peripherals
......................................................................................................
11
2.3 Configure WiFi on Raspberry Pi
....................................................................................................................................
12
2.3.1 Method A: WiFi Connection with Peripherals
...................................................................................................
12
2.3.2 Method A: WiFi Connection without Peripherals
.............................................................................................
12
3 Log In to The Raspberry Pi and Install The App
...............................................................................................................
14
3.1 Log into Raspberry Pi (Windows 10)
............................................................................................................................
14
3.2 Log into Raspberry Pi (Linux or Mac OS)
......................................................................................................................
15
3.3 Log into Raspberry Pi (Windows 8 or Previous Version)
..............................................................................................
15
3.4 Download Program of The Raspberry Pi Robot
............................................................................................................
16
3.5 Install Corresponding Dependent Libraries
..................................................................................................................
17
3.6 Run the Raspberry Pi Robot's Program
........................................................................................................................
17
4 Assembly and Precautions
...............................................................................................................................................
18
4.1 Structure Assembly
.......................................................................................................................................................
18
4.2 Tips for Structural Assemblage
.....................................................................................................................................
50
4.3 Tips for Power Provision
...............................................................................................................................................
50
5 Controlling Robot via WEB App
........................................................................................................................................
52
6 Common Problems and Solutions(Q&A)
.........................................................................................................................
54
7 Set The Program to Start Automatically
..........................................................................................................................
57
7.1 Set The Specified Program to Run Automatically at Boot
............................................................................................
57
7.2 Change The Program That Starts Automatically
..........................................................................................................
57
8 Remote Operation of Raspberry Pi Via MobaXterm
.......................................................................................................
59
9 How to Control WS2812 RGB LED
....................................................................................................................................
61
10 How to Control The Servo
..............................................................................................................................................
64
10.1 Control The Steering Gear to Rotate to A Certain Angle
............................................................................................
64
10.2 Control The Slow Motion of The Steering Gear
.........................................................................................................
65
10.3 Non-blocking Control
..................................................................................................................................................
66
11 How to Control DC Motor
..............................................................................................................................................
67
12 Ultrasonic Module
..........................................................................................................................................................
70
13 Line Tracking
...................................................................................................................................................................
72
14 Make A Police Light or Breathing Light
..........................................................................................................................
75