Contents
Contents ...................................................................................... 4
Preface ......................................................................................... 7
Raspberry Pi .............................................................................. 8
Install the System .................................................................. 15
Component List.......................................................................................................................................................................... 15
Optional Components ............................................................................................................................................................. 17
Raspbian System........................................................................................................................................................................ 19
Remote desktop & VNC ......................................................................................................................................................... 22
Chapter 0 Preparation ........................................................ 32
Linux Command......................................................................................................................................................................... 32
Install WiringPi............................................................................................................................................................................ 35
Obtain the Project Code ......................................................................................................................................................... 36
Python2 & Python3 .................................................................................................................................................................. 37
Code Editor.................................................................................................................................................................................. 39
GPIO ............................................................................................................................................................................................... 44
GPIO Extension Board ............................................................................................................................................................. 48
Breadboard Power Module ................................................................................................................................................... 49
Next ................................................................................................................................................................................................ 50
Chapter 1 LED......................................................................... 51
Project 1.1 Blink ......................................................................................................................................................................... 51
Chapter 2 Button & LED .................................................... 59
Project 2.1 Button & LED........................................................................................................................................................ 59
Project 2.2 MINI table lamp................................................................................................................................................... 65
Chapter 3 LEDBar Graph ................................................... 71
Project 3.1 Flowing Water Light ........................................................................................................................................... 71
Chapter 4 Analog & PWM ................................................ 76
Project 4.1 Breathing LED....................................................................................................................................................... 76
Chapter 5 RGBLED................................................................ 82
Project 5.1 Colorful LED .......................................................................................................................................................... 82
Chapter 6 Buzzer................................................................... 88