# Getting Started With Raspberry Pi Complete RFID Starter Kit ## Download code and library [https://fs.keyestudio.com/KS3015](https://fs.keyestudio.com/KS3015) ## Description: Raspberry Pi is a small computer in the size of a credit card and at low cost. It can serve as a personal server and router. You could get a camera monitor by plugging a camera to it. Equally, the voice interactive function could be achieved if a microphone or a speaker is connected with it. What’s more, it extends 40pins out to link with sensors ans modules, which makes conducting all kinds of experiments possible. And this purpose-built kit is for Raspberry Pi enthusiasts. With the help of it, you could acquire knowledge of Linux, Python and other programming related skills as well as the applications of sensors and modules. ## Kit List: | **Product Name** | **QTY** | **Picture** | | :-----------------------------------: | :-----: | :----------------------------------------------------------: | | GPIO Extension Board | 1 | ![](media/3af182663cfe16478339230a4588f7d5.png) | | LED - Green | 5 | ![image-20230427120008303](media/image-20230427120008303.png) | | LED - Red | 10 | ![0cc05386fde8f322c52e1431f1bff123](media/0cc05386fde8f322c52e1431f1bff123.png) | | LED - Yellow | 5 | ![7c73c16eb685ce33673a1f78eec776bf](media/7c73c16eb685ce33673a1f78eec776bf.png) | | LED - RGB | 1 | ![13e57f8a3d24268911b4259dd1c4d50e](media/13e57f8a3d24268911b4259dd1c4d50e.png) | | 220Ω Resistor | 10 | ![df103cacd3f526fe80b0f89e4f19b04a](media/df103cacd3f526fe80b0f89e4f19b04a.png) | | 10KΩ Resistor | 10 | ![4c0ddff5b76dff489cf1d9c484ce4916](media/4c0ddff5b76dff489cf1d9c484ce4916.png) | | 100Ω Resistor | 10 | ![96200e59add7e804b04d4af6b1864148](media/96200e59add7e804b04d4af6b1864148.png) | | 10KΩ Potentiometer | 1 | ![bbf20bffeac2379c141410e00fc22cfe](media/bbf20bffeac2379c141410e00fc22cfe.png) | | Active Buzzer | 1 | ![f05a177b0d2d9c0effccf535151bbfdb](media/f05a177b0d2d9c0effccf535151bbfdb.png) | | Passive Buzzer | 1 | ![d1ea1bb2b2749820cab389d5b85b838b](media/d1ea1bb2b2749820cab389d5b85b838b.png) | | Button Sensor | 4 | ![](media/018a31800765761e285d89284ad71075.png) | | Ball Tilt Sensor | 2 | ![image-20230427120053607](media/image-20230427120053607.png)![image-20230427120053930](media/image-20230427120053930.png) | | Photoresistor | 3 | ![image-20230427120100867](media/image-20230427120100867.png)![image-20230427120101180](media/image-20230427120101180.png)![image-20230427120101193](media/image-20230427120101193.png) | | Flame Sensor | 1 | ![0814397ad6e0bc8baecb08b519e93446](media/0814397ad6e0bc8baecb08b519e93446.png) | | LM35DZ Temperature Sensor | 1 | ![e7ab9953efc2f4085bfc0e07fc7344b6](media/e7ab9953efc2f4085bfc0e07fc7344b6.png) | | 74HC595N Chip | 1 | ![4c653a3dd887b27f8cef84b7a16ad35c](media/4c653a3dd887b27f8cef84b7a16ad35c.png) | | L293D Chip | 1 | ![c2c155294f770976d009900cc996eefe](media/c2c155294f770976d009900cc996eefe.png) | | 1 Digit 7-segment LED Display | 1 | ![44f6ed69f58b019b0ba472702daafa1f](media/44f6ed69f58b019b0ba472702daafa1f.png) | | 4 Digit 7-segment LED Display | 1 | ![bd1f6bca550938a634da14b7574ce97c](media/bd1f6bca550938a634da14b7574ce97c.png) | | 8\*8 LED Dot Matrix | 1 | ![](media/a0ede53942fca2727aed9a9930129780.png) | | 1602 LCD Display | 1 | ![ab2009681c764ad0c6281cc0fc404338](media/ab2009681c764ad0c6281cc0fc404338.jpeg) | | IR Receiver Sensor | 1 | ![6f2e3e718359065cb560cd189f021cbe](media/6f2e3e718359065cb560cd189f021cbe.png) | | IR Remote Control | 1 | ![5bb408f57f39accf4cbcc9479018fb05](media/5bb408f57f39accf4cbcc9479018fb05.png) | | Servo | 1 | ![e28493649f65fa5c30538a88efd27d43](media/e28493649f65fa5c30538a88efd27d43.jpeg) | | ULN2003 Driver Board | 1 | ![efe23615da298d4eb8dd5e431f86015e](media/efe23615da298d4eb8dd5e431f86015e.png) | | 5V Stepper Motor | 1 | ![8ebb14a35091dc8d02d95cb6748dd1e9](media/8ebb14a35091dc8d02d95cb6748dd1e9.png) | | PCF8591 A/D Converter Module | 1 | ![99a773f39b28fa8d8d09665e67d7c8fa](media/99a773f39b28fa8d8d09665e67d7c8fa.png) | | Joystick Module | 1 | ![dc66680eb5fb489fd577c9c66d03ec15](media/dc66680eb5fb489fd577c9c66d03ec15.png) | | Relay Module | 1 | ![b0d26e6eea0e84c833f7f535fec9cf54](media/b0d26e6eea0e84c833f7f535fec9cf54.png) | | 0.96 Inch OLED Display | 1 | ![KS0271](media/KS0271.png) | | Sound Module | 1 | ![e315ef2757b4154299e38350c4e93462](media/e315ef2757b4154299e38350c4e93462.png) | | PIR Motion Sensor | 1 | ![image-20230427165555970](media/image-20230427165555970.png) | | MQ-2 Analog Gas Sensor | 1 | ![23c8cf53545ee20d4be213d977e4ee07](media/23c8cf53545ee20d4be213d977e4ee07.png) | | MPU6050 Module | 1 | ![6118fe78d22cb3be8c78ac4c4c2dfffc](media/6118fe78d22cb3be8c78ac4c4c2dfffc.png) | | HC-SR04 Ultrasonic Sensor | 1 | ![image-20230427165542681](media/image-20230427165542681.png) | | DS3231 Clock Module | 1 | ![image-20230427165610942](media/image-20230427165610942.png) | | DHT11 Temperature and Humidity Sensor | 1 | ![image-20230427165616945](media/image-20230427165616945.png) | | Soil Humidity Sensor | 1 | ![image-20230427165622872](media/image-20230427165622872.png) | | Water Level Sensor | 1 | ![](media/a1a7fef3c00950e483fd52c9f6afb956.png) | | RFID-RC522 Module | 1 | ![image-20230427165631349](media/image-20230427165631349.png) | | RFID Card | 1 | ![image-20230427165637562](media/image-20230427165637562.png) | | Access Key | 1 | ![image-20230427165642200](media/image-20230427165642200.png) | | Water Pump | 1 | ![image-20230427165646743](media/image-20230427165646743.png) | | 4\*4 Membrane Switch Keypad | 1 | ![fcd187eb009098d691927511606c991b](media/fcd187eb009098d691927511606c991b.jpeg) | | Motor\*1 | 1 | ![image-20230427165658529](media/image-20230427165658529.png) | | Water Pipe | 1 | ![image-20230427165709275](media/image-20230427165709275.png) | | 830-Hole Breadboard | 1 | ![c5aadd2106124e3a345af17ce33176ca](media/c5aadd2106124e3a345af17ce33176ca.png) | | Male to Female DuPont Line | 20 | ![image-20230427120224693](media/image-20230427120224693.png) | | Jumper Wire | 30 | ![59e2b3c392cfc81704bb1fa62fadf227](media/59e2b3c392cfc81704bb1fa62fadf227.png) | | 40-Pin Line | 1 | ![image-20230427120235338](media/image-20230427120235338.png) | | Screwdriver | 1 | ![](media/04efadf25e085be8b0f03379c4242e28.png) | | Resistance Color Code Table | 1 | ![417726be3c87e14a4d4b394efa52895c](media/417726be3c87e14a4d4b394efa52895c.jpeg) | ## Install Raspberry Pi OS System: **Hardware Tool:** - Raspberry Pi 4B/3B/2B - Above 8G TFT SD Card - Card Reader - Computer and other parts **Install Software Tool** **Windows System:** ## Install putty: Download Putty:https://www.chiark.greenend.org.uk/\~sgtatham/putty/ ![](media/c26be4cd1f5543f20f275556ce5892c0.png) ![](media/d888918aa7bf9e5ea94597aad1ee4224.png) After downloading the driver file![](media/e597704d7033c7c3c5da06d4f561822c.png),double-click it and tap“Next” ![](media/01f1b2d98915be2be9c0c2a3d330dde2.png) Click“Next” ![](media/bd698753a8eea7a2ff5c5e0e598cbd94.png) Select“Install Putty files”and click“Install”. ![](media/071a0acc98bb2dc5cd45d85dec72d111.png) After a few seconds, click“Finish”. ![](media/ec368c3a549c09edd70f9786456d5430.png) **SSH Remote Login software -WinSCP** Download WinSCP: After the download, click![](media/1719daa1002d7477ad4700e1df85d2df.png)and ![](media/e09e48a32781d08aabb06156efe1de49.png). ![](media/5ee80ade909fe3eb73dc9535704b4c0b.png) Click“Accept” ![](media/9c652f54f6a7d53f6b2aedba40104a00.png) Follow the below steps to finish the installation. ![](media/f32891714d5966037d59d1812aa15686.png) ![](media/57d6139ba0aac9ca996bcbe6f6fd218f.png) ![](media/49ffed878ee84546b156af3a0bf5556e.png) ![](media/14ffa1e11243835d30ffb933219dcef5.png) **SD Card Formatter** Format TFT card tool Download SD Card Formatter : http://www.canadiancontent.net/tech/download/SD_Card_Formatter.html ![](media/fa229f4e063572ce1c59574c308bf452.png) ![](media/ac5d5eb9463805484b9239b99faf04eb.png) Unzip the SDCardFormatterv5_WinEN package, double-click ![](media/8c6f8da97bf702080a8e302db2e9f982.png)to run it. ![](media/046c67e4072093ee3dad27e8088fcf9f.png) Click“Next”and choose![](media/13dc08ae2b5cb52ae3d7ea198134d778.png), then tap“Next” ![](media/384203e0b54ddfe37f18b65f70e786e5.png) ![](media/cf4e91eac0c0573cff282256a915a01a.png) c. Click“Next”and“Install”. ![](media/0af58ee3afb14005a884ca2dc941157f.png) ![](media/807623ddeea20c8b61503845d8aec9bc.png) After a few seconds, click“Finish” ![](media/df2deb7e04c25ee207e994f0d2808194.png) **Burn Win32DiskImager** Download Link:https://sourceforge.net/projects/win32diskimager/ ![](media/4ffb55fd466198ca9524afbde7806271.png) After the download, double-click![](media/63c3eaf215c92c325f95613c9d8d49ce.png) and tap“Run” ![](media/0f86f055a814207b0b09e1a7e6cb20bc.png) Select ![](media/5cdab33a0a7ddd4ab5b2ca8cb04670be.png) and tap“Next”. ![](media/d70ecd0554cbdbd60997a2356b55dc0d.png) Click“Browse...”and find out the folder where the Win32DiskImager is located, tap“Next”. ![](media/1cdc2638bc1e9fe214344429f5e97a13.png) ![](media/cc7949bb335b75000e77b18c85e4e07b.png) Tick![](media/99d088dd3f9e62d94fe8d56bd4638d1d.png), click“Next”and“Install” ![](media/c03510a9961a0e7307945dff10de3550.png) ![](media/0c9c0d647479ee984fc29c3cedc72c79.png) After a few seconds, click“Finish”. The installation is finished ![](media/1d75c6dd9ea4a2c437a2b655b713a1db.png) Scan to search ip address software tool---WNetWatcher Download Link:[http://www.nirsoft.net/utils/wnetwatcher.zip](http://www.nirsoft.net/utils/wnetwatcher.zip) ## Raspberry Pi Imager Download Address: (recommend downloading the version with desktop and commonly used software) ![](media/3e0526d601054847d1b1feee8384dbbe.png) ## Install Raspberry Pi OS on Raspberry Pi 4B Insert TFT RAM card to card reader, then interface card reader to USB port of computer. Format TFT RAM card with SD Card Formatter software, as shown below: ![](media/79d747e6f00f857a593b3327397cc44f.png) ![](media/cbc55902de71ce984d873ca2cb67fffa.png) ![](media/82031b5354cc4edeccf2bfa7465b7c6c.png) **Burn System** Burn the Raspberry Pi OS system to TFT card using Win32DiskImager software ![](media/80d236cae8bdf63d80dc65048ffb52b3.png) ![](media/243d1ef34211eafe1a92b67fc0ee85a2.png) ![](media/ea854c476e9a8d4f82dd4a7c714cd5af.png) Don’t eject card reader after burning mirror system, build a file named SSH, then delete .txt. The SSH login function can be activated by copying SSH file to boot category, as shown below. ![](media/ffb73310322accd671da373bb2e71945.png) **Eject Card Reader** Log in system(raspberry and PC should be in the same local area network) Insert TFT card into Raspberry, connect internet cable and plug in power. If you have screen and HDMI cable of Raspberry Pi, you could view Raspberry Pi OS system activating. If not, you can enter the desktop of Raspberry Pi via SSH remote login software---WinSCP and xrdp login. **Remote Login** **Enter default user name, password and host name on WinSCP to log in.** **The same network only receives one Raspberry Pi** ![](media/0a41d5c629ec98afbc31dc47ff5c18ec.png) ![](media/ff64e71b9e30df60d0b099dbc2532587.png) **Check ip and mac address** ![](media/a4285a452978026c9e60c31d35974315.png) Click to open terminal input the password:raspberry, and press“Enter”on keyboard. ![](media/a433a9ee584c821a702d0250937e2ba8.png) ![](media/7fb10d842cc7fd824a325d30fc3ecdc7.png) Logging in successfully, open the terminal, input ip a and tap“Enter”to check ip and mac address. ![](media/132e9ab754a0f63e38b3e4cfbc3679f2.png) Form the above figure, mac address of this Raspberry Pi is a6:32:17:61:9c, and ip address is 192.168.1.128(use ip address to finish xrdp login) Since mac address never changes, you could confirm ip via it. **Fix ip address of Raspberry Pi** Ip address is changeable, therefore, we need to make ip address fixed for convenient use. Follow the below steps: Switch to root user If without root user’s password ①Set root passward Input passwordin the terminal:sudo passwd root to set password ②Switch to root user su root ③ Fix the configuration file of ip address Firstly change ip address of the following configuration file (\##New ip address:address 192.168.1.99) Copy the above new address to terminal and press“Enter” Configuration File: echo -e ' auto eth0 iface eth0 inet static \##Change IP address address 192.168.1.99 netmask 255.255.255.0 gateway 192.168.1.1 network 192.168.1.0 broadcast 192.168.1.255 dns-domain 119.29.29.29 dns-nameservers 119.29.29.29 metric 0 mtu 1492 '\>/etc/network/interfaces.d/eth0 As shown below: ![](media/a68a4f59d4d364efa28b6680a2c48d43.png) ④Reboot the system and activate the configuration file Input the restart command in the terminal: sudo reboot You could log in via fixed ip afterwards. ⑤Check IP and insure ip address fixed well ![](media/b4313e2d78a4289705c658a1ebbc962b.png) **Log in Desktop on Raspberry Pi Wirelessly** In fact, we can log in desktop on Raspberry Pi Wirelessly even without screen and HDMI cable. VNC and Xrdp are commonly used to log in desktop of Raspberry Pi wirelessly. Let’s take example of Xrdp. **Install Xrdp Service in the terminal** Install Command: Switch to Root User: su root Install :apt-get install xrdp Enter y and press “Enter” As shown below: ![](media/677a2eaa651ab0ba44af205227b92683.png) **Open the remote desktop connection on Windows** Press WIN+R on keyboard and enter mstsc.exe As shown below: ![](media/e5a66a3a1c998f8feb1c21c7a457ec4e.png) Input ip address of Raspberry Pi, as shown below. Click“Connect”and tap“Connect”. 192.168.1.99 is ip address we use, you could change into yours ip address. ![](media/c41c66bea61b30019e02a74b483af700.png) Click“Yes”. ![](media/297813f1370ce5c158fac61511f61295.png) Input user name: pi, default password: raspberry, as shown below: ![](media/251fddc1decc15d0b69f8a0c7467d5c1.png) Click“OK”or“Enter”, you will view the desktop of Raspberry Pi OS, as shown below: ![](media/56bd5693edd484c4433dc438b58c6130.png) Now, we finish the basic configuration of Raspberry Pi OS. ## Raspberry Pi 4B: | **Raspberry Pi 4B** | **Raspberry Pi 4B Model** | | :----------------------------------------------------------: | :----------------------------------------------------------: | | ![image-20230427121016003](media/image-20230427121016003.png) | ![image-20230427121019353](media/image-20230427121019353.png) | Hardware Interfaces: ![](media/d232a87d73f7426894a6cafed80521a0.png) 40-Pin GPIO Header Description GPIO pins are divided into BCM GPIO number, physics number and WiringPi GPIO number. We usually use WiringPi GPIO number when using C language and BCM GPIO and physics number are used to Python, as shown below: ![ca74a57f9eb9086f102688bf043e49fd](media/ca74a57f9eb9086f102688bf043e49fd.png) Note: pin(3.3 V) on the left hand is square, but other pins are round. Turn Raspberry Pi over, there is a square GPIO on the back.(you could tell from pin(3.3V). ![](media/86a686aad06cfe7563e7a01456e2cb7a.jpeg) Note: the largest current of each pin on Raspberry Pi 4B is 16mA and the aggregate current of all pins is not less than 51mA. ## GPIO Extension Board: This extension board is led out by 40-pin headers of Raspberry Pi for convenient connection. Note: the silk mark is also printed according to BCM GPIO number. ![](media/5b4223076c8f4f19ccf62039f929eafd.png) Connection Diagram ![](media/9ffda4057d1a225502e509706e841b6a.png) ## Resources: 1. 2. 3. 4. 5.