ADEEPT Super Starter User manual


Component List
1x DC Motor
1x Servo
1x L9110 motor driver
1x LCD1602
1x ADC0832
2x 74HC595
1x Dot-matrix Display
1x 7-Segment Display
1x Light Sensor (Photoresistor)
1x 40 pin GPIO Extension Board
1x 40 pin GPIO Cable
1x Breadboard Power Supply Module
1x Active buzzer
1x Tilt Switch
2x Switch
1x RGB LED
8x Red LED
4x Green LED
4x Yellow LED
4x Blue LED
16x Resistor(220Ω)
10x Resistor(1kΩ)
5x Resistor(10kΩ)
5x Capacitor (104)
2x Capacitor (10uF)
4x Button (large)
8x Button (small)
1x Button cap (red)
1x Button cap (white)
2x Button cap (blue)
2x NPN Transistor (8050)
2x PNP Transistor (8550)
2x Potentiometer (10KΩ)
1x Breadboard
40x Male to Male Jumper Wires
20x Male to Female Jumper Wires
1x Header (40pin)
1x Band Resistor Card
1x Project Box

Preface
About this kit
This is an entry-level learning kit for Raspberry Pi. Some common electronic
components and sensors are included. Through the learning, you will get a
better understanding of Raspberry Pi, and be able to make fascinating works
based on Raspberry Pi.
About Adeept
Adeept is a technical service team of open source software and hardware.
Dedicated to applying the Internet and the latest industrial technology in open
source area, we strive to provide best hardware support and software service
for general makers and electronic enthusiasts around the world. We aim to
create infinite possibilities with sharing. No matter what field you are in, we
can lead you into the electronic world and bring your ideas into reality.
If you have any problems for learning, please contact us at support@adeept.com.
We will do our best to help you solve the problem.

Content
About the Raspberry Pi................................................................................................................- 1 -
Raspberry Pi Pin Numbering Introduction...................................................................................- 2 -
Raspberry Pi GPIO Library Introduction.....................................................................................- 4 -
How to use the wiringPi and the RPi.GPIO.................................................................................- 6 -
Lesson 1 Blinking LED..............................................................................................................- 10 -
Lesson 2 Buzzer.........................................................................................................................- 16 -
Lesson 3 Controlling an LED with a button ..............................................................................- 20 -
Lesson 4 Tilt Switch...................................................................................................................- 25 -
Lesson 5 LED Flowing Lights...................................................................................................- 28 -
Lesson 6 Breathing LED............................................................................................................- 31 -
Lesson 7 Controlling a RGB LED with PWM...........................................................................- 35 -
Lesson 8 7-segment display.......................................................................................................- 38 -
Lesson 9 Dot-matrix display......................................................................................................- 42 -
Lesson 10 LCD1602 ..................................................................................................................- 46 -
Lesson 11 Photoresistor .............................................................................................................- 50 -
Lesson 12 Controlling an LED through LAN............................................................................- 53 -
Lesson 13 How to control a servo..............................................................................................- 57 -
Lesson 14 A Simple Voltmeter................................................................................................... - 60 -
Lesson 15 DC motor..................................................................................................................- 63 -

- 1 -
About the Raspberry Pi
The Raspberry Pi is a low cost, credit-card sized computer that plugs into a
computer monitor or TV, and uses a standard keyboard and mouse. It is a
capable little device that enables people of all ages to explore computing, and
to learn how to program in languages like Scratch and Python. It’s capable of
doing everything you’d expect a desktop computer to do, from browsing the
internet and playing high-definition video, to making spreadsheets,
word-processing, and playing games.
What’s more, the Raspberry Pi has the ability to interact with the outside world,
and has been used in a wide array of digital maker projects, from music
machines and parent detectors to weather stations and tweeting birdhouses
with infra-red cameras. We want to see the Raspberry Pi being used by kids all
over the world to learn to program and understand how computers work.
Link:
https://www.raspberrypi.org/help/what-is-a-raspberry-pi/

- 2 -
Raspberry Pi Pin Numbering Introduction
There are three methods for numbering Raspberry Pi’s GPIO:
1. Numbering according to the physical location of the pins, from left to right,
top to bottom, the left is odd, the right is even.
2. Numbering according the GPIO registers of BCM2835/2836 SOC.
3. Numbering according the GPIO library wiringPi.

- 3 -

- 4 -
Raspberry Pi GPIO Library Introduction
Currently, there are two major GPIO libraries for Raspberry Pi, RPi.GPIO and
wiringPi.
RPi.GPIO:
RPi.GPIO is a python module to control Raspberry Pi GPIO channels. For more
information about RPi.GPIO, please visit:
https://pypi.python.org/pypi/RPi.GPIO/
For examples and documentation, please visit:
http://sourceforge.net/p/raspberry-gpio-python/wiki/Home/
The RPi.GPIO module is pre-installed in the official Raspbian operating system,
you can use it directly.
wiringPi:
The wiringPi is a GPIO access library written in C for the BCM2835/6 SOC used
in the Raspberry Pi. It’s released under the GNU LGPLv3 license and is usable
from C and C++ and many other languages with suitable wrappers. It’s
designed to be familiar to people who have used the Arduino “wiring” system.
For more information about wiringPi, please visit : http://wiringpi.com/
Install wiringPi:
Step 1 : Get the source code
$ git clone git://git.drogon.net/wiringPi
Step 2 : Compile and install
$ cd wiringPi
$ git pull origin
$ sudo ./build
Press Enter, the script “build” will automatically compile wiringPi source code
and then install it to the Raspberry Pi.

- 5 -
Next, verify whether the wiringPi is installed successfully or not:
wiringPi includes a command-line utility gpio which can be used to program
and setup the GPIO pins. You can use this to read and write the pins and even
use it to control them from shell scripts.
You can verify whether the wiringPi is installed successfully or not by the
following commands:
$ sudo gpio -v
$ sudo gpio readall
If you can see the information shown above, it indicates that the wiringPi has
been installed successfully.

- 6 -
How to use the wiringPi and the RPi.GPIO
Here we take a blinking LED for example to illustrate how to use the wiringPi C
library and the RPi.GPIO Python module.
Step 1 : Build the circuit according to the following schematic diagram
Note : Resistance=220Ω
For Python user:
Step 2 : Create a file named led.py
$ sudo touch led.py
Step 3 : Open the file led.py with vim or nano
$ sudo vim led.py
Write down the following source code, then save and exit.
Other manuals for Super Starter
2
Table of contents
Popular Microcontroller manuals by other brands

AMS
AMS AS7261 Demo Kit user guide

Novatek
Novatek NT6861 manual

Espressif Systems
Espressif Systems ESP8266 SDK AT Instruction Set

Nuvoton
Nuvoton ISD61S00 ChipCorder Design guide

STMicrolectronics
STMicrolectronics ST7 Assembler Linker user manual

Texas Instruments
Texas Instruments Chipcon CC2420DK user manual

Texas Instruments
Texas Instruments TMS320F2837 D Series Workshop Guide and Lab Manual

CYPRES
CYPRES CY14NVSRAMKIT-001 user guide

Texas Instruments
Texas Instruments INA-DUAL-2AMP-EVM user guide

Espressif Systems
Espressif Systems ESP8266EX Programming guide

Abov
Abov AC33M8128L user manual

Laird
Laird BL654PA user guide





