KS0221 keyestudio Ultimate Starter Kit for Raspberry Pi

From Keyestudio Wiki
Jump to navigation Jump to search

keyestudio Ultimate Starter Kit for Raspberry Pi


thumb

Kit Introduction

Raspberry Pi is a delicate card computer. This is a starter kit of Raspberry Pi, very suitable for zero-based raspberry pi enthusiasts. Through this kit, you can learn more about the knowledge of linux operating system, as well as C, python and other language programming based on the debian system of Raspberry Pi. This kit also provides you with some related sensors and modules applied to the Raspberry Pi.
We offer richer learning materials that allow you to learn about Raspberry Pi from scratch. The learning materials include the installation and usage of the Raspberry Pi related system, where also offer you the learning courses of Raspberry Pi collocated with some commonly used sensors and modules. It would be better If you are an arduino hobbyist because arduino and Raspberry Pi are the best partners. You can make more creative DIY works via arduino strong community support and rich third-party library resources, integrating into Raspberry Pi's powerful function support to motivate your creativity and inspiration!

Kit List

No. Product Name Quantity Picture
1 Keyestudio RPI GPIO-PCF8591 Shield 1
thumb
2 LED - Blue 5
thumb
3 LED - Red 5
thumb
4 LED - Yellow 5
thumb
5 LED - RGB 1
thumb
6 220Ω Resistor 8
thumb
7 10KΩ Resistor 5
thumb
8 1KΩ resistor 5
thumb
9 10KΩ Potentiometer 1
thumb
10 Buzzer (active) 1
thumb
11 Buzzer (passive) 1
thumb
12 Large Button Switch 4
thumb
13 Ball Tilt Sensor 2
thumb
14 Photo Resistor 3
thumb thumb thumb
15 Flame Sensor 1
thumb
16 LM35 Temp Sensor 1
thumb
17 IC 74HC595N 16-pin 1
thumb
18 1-digit LED 1
thumb
19 4-digit LED 1
thumb
20 8*8 LED Matrix 1
thumb
21 2x16 LCD display 1
thumb
22 IR Receiver 1
thumb
23 IR Remote Control 1
thumb
24 Servo Motor 1
thumb
25 Stepper Driver 1
thumb
26 Stepper Motor 1
thumb
27 Joystick Module 1
thumb
28 Relay Module 1
thumb
29 PIR Motion Sensor 1
thumb
30 Analog Gas Sensor 1
thumb
31 ADXL345 Three Axis Acceleration Module 1
thumb
32 HC-SR04 Ultrasonic Sensor 1
thumb
33 DS3231 Clock Module 1
thumb
34 DHT11 Temperature and Humidity Sensor 1
thumb
35 Soil Humidity sensor 1
thumb
36 RC522 RFID Module 1
thumb
37 RFID Card 1
thumb
38 Access Key 1
thumb
39 RPI GPIO Shield 1
thumb
40 Pin Headers 40
thumb
41 830-hole Breadboard 1
thumb
42 Female to Female Dupont Wire 20
thumb
43 Male to Female Dupont Wire 20
thumb
44 breadboard Jumper Wire 30
thumb
45 40 pin Colorful Jumper Wire 1
thumb

Kit Contents

Lesson 1: Hello World  	
Lesson 2: LED Blinking	
Lesson 3: Breathing LED	
Lesson 4: Traffic Light	
Lesson 5: LED Chasing Effect	
Lesson 6: Button-controlled LED	
Lesson 7: Passive Buzzer 
Lesson 8: Active Buzzer	
Lesson 9: Responder	
Lesson 10: Flame Sensor	
Lesson 11: Ball Tilt Sensor	
Lesson 12: IR Remote Control	
Lesson 13: 1-digit LED Segment Display	
Lesson 14: 74HC595	
Lesson 15: 4-digit LED Segment Display	
Lesson 16: LED Matrix Display	
Lesson 17: 1602 LCD	
Lesson 18: RGB LED	
Lesson 19: 9g Servo Control	
Lesson 20: ULN2003 Stepper Motor 	
Lesson 21: Photo Resistor 	
Lesson 22: LM35 Temp Sensor	
Lesson 23: pcf8591	
Lesson 24: PIR Motion Sensor 	
Lesson 25: MQ-2 Analog Gas Sensor	
Lesson 26: ADXL345 Acceleration Module	
Lesson 27: Ultrasonic Sensor  	
Lesson 28: Joystick Module	
Lesson 29: 5V Relay	
Lesson 30: DHT11 Temp and Humidity Sensor  
Lesson 31: Soil Humidity Sensor
Lesson 32: DS3231 Clock Module

System Programming & Corresponding Tool Library Installation

1. Format the TFT card:
a. Plug the TFT card into the USB port through the card reader, open and install the SDFormatter tool in tool folders we provided. Open the tool as the figure shown below:
thumb

Tool Website: https://www.sdcard.org/downloads/formatter_4/index.html

b. The Driver in the upper figure: G is the TFT card just inserted. If you have several other TFT cards inserted in the computer, you can pass the drop-down menu to select the TFT card that needs to be formatted. And then click "Format",it will automatically format the TFT card. The formatting process will pop up the warning as shown below, then click OK.

thumb

c. The picture below shows the successful format of the TFT card:

thumb

2. Program Raspberry Mirror Image:
a. Open the Win32DiskImager in tool folder we provided, open the tool as the following figure shown:

thumb

b. Click marked 1 to select the formatted TFT card, then click marked 2 to choose the system image file "2017-01-11-raspbian-jessie-lite" in the raspberry image folder we provided. The figure shown as below:

thumb

 Raspberry Pi Download Address:https://www.raspberrypi.org/downloads/   

c. The above steps are configured well and click “Write”, it will automatically program the raspberry mirror image to the TFT card, and you need to wait for a few minutes in this process. Below shows the Write Successful. Then click “OK “ to unplug the TFT card.
thumb

Log into Raspberry

1. Log into Raspberry via SSH
a. Insert TFT card burning well the system into Raspberry board. Internet interface of the motherboard is connected to LAN via the network cable, and the mini USB port on the motherboard is powered by an external power supply.
Then, use Advanced IP Scanner software,click thumb,find the corresponding IP address of the raspberry pi, as shown below:
thumb

When logging in by SSH, you first need to put an ssh file in the system root directory, as shown below:
thumb

b. Open the PUTTY tool in the folder tool, only set two places of red circle as the figure shown below, the other places not to be set, and then click "Open" to log in.
thumb

Username for the initial login in Raspberry system: pi
thumb
Password: raspberry
thumb

Logging in Raspberry system for the first time, it is best to expand the root partition to the entire TFT card, then on the terminal please input: sudo raspi-config
It will appear the following window after execution:
thumb
Then, select 1 Expand Filesystem through the keyboard’s "↑↓"key, and click “Enter” key on the keyboard. Then through the "→ ←"key to select “Finish”, and click the “Enter” key on the keyboard. Finally, pop up the following window, then click “Yes”.
thumb

thumb
After click Yes, it has rebooted the Raspberry, so you just need to re-login it.


2. Using WinSCP to transfer file between PC host and Raspberry
a. Plug the network cable of the router into the Raspberry motherboard, and network cable must belong to the same network segment with the computer.
Then input ifconfig command in the terminal to check the Raspberry’s IP, and the IP at this moment is 192.168.1.121 as shown in the following figure:
thumb

b. Open the folder tool where provides a WinSCP installation package, then install and open the application program, the window interface shown as the figure below:
thumb

c. File protocol is SCP; Host name is Raspberry’s IP address; Default port number is 22; Username is pi; Password is raspberry.
Then click “Login”, if the login process appears prompts, click “Yes”. Appearing the below figure means successfully log in WinSCP.
thumb


3. Install Wiringpi
a. Wiringpi is a library file for raspberry to control IO port, in which integrates I2C library, SPI library, UART library, software PWM library and more.
The relevant library function folder provides the compression package of wiringpi library file.
Or you can download it on the official website: https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/
Use winSCP to put the wiringPi-b0a60c3.tar of PC into the pi user folder of raspberry system, as shown in the figure below:
thumb

b. In the terminal input cd/home/pi to enter pi folder; execute tar-xzf wiringPi-b0a60c3.tar.gz to unzip the file, getting wiringPi-b0a60c3 folder; in the terminal input cd wiringPi-b0a60c3 command, execute ./build to install wiringpi. The window interface below shows the successful installation:
thumb

thumb

c. To see whether the wiringpi installation is successful, in the terminal execute gpio readall command.
Pop up the below window interface means installation successfully.
thumb

Learning Courses

Lesson 1: Hello World

1. Introduction
Since it is the first contact with Raspberry Pi, you just need a raspberry motherboard without other auxiliary components to display "Hello World!"

2. Hardware Required

  • USB Cable * 1
  • Raspberry Motherboard * 1

3. Programming
a. In the terminal input cd / home / pi and mkdir lesson to build lesson folder.
b. Use winSCP to put Lesson1_Hello_world into the lesson folder of raspberry system.
c. In the terminal execute cd lesson and cd lesson1_Hello_World to enter the folder.
d. In the terminal execute make, generating a HelloWorld executable file in the folder.
e. In the terminal execute sudo. / HelloWorld to run the file, the terminal will print Hello World! as the figure shown below.
f. Ctrl + c exits the processing program.

thumb

4. Sample Code

#include <wiringPi.h>
#include <stdio.h>

int main()

{
  wiringPiSetup();
//      printf("Hello World!\n");

 for(;;)
 {
 printf("Hello World!\n");
  delay(1000);

 } 
  }

5. Special Instruction
lesson1_Hello_World folder has a Makefile file. Code as below:
HelloWorld:HelloWorld.o
gcc HelloWorld.c -o HelloWorld -lwiringPi
Makefile rule:
Target(target): Prerequisite(prerequiries)...
<tab> Command(command)

Target is usually the name of the file to be generated; Prerequiries is the material to generate the target; <tab> Command is a command to execute a target.
When executing the make command in the folder, the system's compiler will generate the executable HelloWorld file according to the instructions in the Malefile file. Executing HelloWorld file, more Makefile knowledge please refer to the relevant information.

Documents

Datasheet PDF:
https://drive.google.com/open?id=1rwxOl1p8YrNxUXho5xh4aukaPkZSYN-2

SDFormatter Tool:
https://www.sdcard.org/downloads/formatter_4/index.html

Raspberry Pi Download:
https://www.raspberrypi.org/downloads/

Install Wiringpi:
https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/

Download Link of Mirror Image File:
https://www.raspberrypi.org/downloads/raspbian/

Buy From