User Manual

Contents
Components List .................................................................................................................................. 1
Components Introduction .................................................................................................................. 8
Resistor ............................................................................................................................................... 8
Potentiometer................................................................................................................................. 10
LED ................................................................................................................................................... 11
RGB LED ........................................................................................................................................... 12
Jumper Wires .................................................................................................................................. 13
Breadboard .................................................................................................................................... 13
Get Started ......................................................................................................................................... 16
Preparation ..................................................................................................................................... 16
Access to Raspberry Pi’s Console................................................................................................ 16
Using Console in GUI (terminal, recommended for beginners)........................................... 16
Using Console Only .................................................................................................................... 18
Introduction to Raspberry Pi ............................................................................................................. 22
RAB Holder ...................................................................................................................................... 22
Raspberry Pi .................................................................................................................................... 24
Raspberry Pi Pin Name .................................................................................................................. 24
Extension Board .............................................................................................................................. 25
GPIO Libraries ..................................................................................................................................... 28
WiringPi ............................................................................................................................................ 28
Introduction ................................................................................................................................. 28
RPi.GPIO .......................................................................................................................................... 29
Introduction ................................................................................................................................. 29
Download the Code ......................................................................................................................... 31
Lesson 1 Blinking LED ......................................................................................................................... 32
Lesson 2 Controlling an LED by a Button ........................................................................................ 41
Lesson 3 Flowing LED Lights .............................................................................................................. 46
SunFounder