User Manual

Contents
Components List
..............................................................................................................................................
1
Get Started
........................................................................................................................................................
7
Preparation
....................................................................................................................................................
7
How to Open a Terminal
...........................................................................................................................
7
Raspberry Pi as Master (recommended for beginners)
...................................................................
7
For Windows Users
.......................................................................................................................................
9
For Linux or Mac OS X Users
....................................................................................................................
11
Introduction to Raspberry Pi
.......................................................................................................................
13
Raspberry Pi Pin Number Introduction
....................................................................................................
14
Install Libraries
.................................................................................................................................................
17
Download the Code
....................................................................................................................................
20
Lesson 1 Blinking LED
....................................................................................................................................
22
Lesson 2 Controlling an LED by a Button
...............................................................................................
23
Lesson 3 Flowing LED Lights
.......................................................................................................................
26
Lesson 4 Breathing LED
...............................................................................................................................
29
Lesson 5 RGB LED
..........................................................................................................................................
32
Lesson 6 Buzzer
..............................................................................................................................................
35
Lesson 7 How to Drive a DC Motor
..........................................................................................................
38
Lesson 8 Rotary Encoder
............................................................................................................................
42
Lesson 9 555 Timer
........................................................................................................................................
45
Lesson 10 Driving LEDs by 74HC595
.........................................................................................................
50
Lesson 11 Driving 7-Segment Display by 74HC595
..............................................................................
54
Lesson 12 Driving Dot-Matrix by 74HC595
.............................................................................................
61
Lesson 13 LCD1602
.......................................................................................................................................
65
Lesson 14 ADXL345
.......................................................................................................................................
68
Advanced Lesson Controlling an LED Based on Web
....................................................................
71