Step-by-step Tutorial - WordPress.com

Jun 26, 2017 - Write server code and main page for website. 9) Setting up the tapping game website(Part 3). Run the server. 10) PHP code to retrieve data ...
2MB Sizes 3 Downloads 315 Views
ST0324 Internet of Things CA1 Step-by-step Tutorial

SCHOOL OF DIGITAL MEDIA AND INFOCOMM TECHNOLOGY (DMIT)

IOT CA1 Step-by-step Tutorial DIPLOMA IN BUSINESS INFORMATION TECHNOLOGY DIPLOMA IN INFORMATION TECHNOLOGY DIPLOMA IN INFOCOMM SECURITY MANAGEMENT

ST0324 Internet of Things (IOT) 2017/2018 Semester 1

Date of Submission:

Monday 26 Jun 2017 (8:00 am)

Prepared for:

Ms Dora Chua

Class:

DIT/FT/3A/42

Submitted by:

Toh Bing Cheng

Student ID

1529856



ST0324 Internet of Things CA1 Step-by-step Tutorial

Table of Contents Section 1 Overview of the application .............................................................................................. 2 A.

What is the application about? ........................................................................................ 2

B.

Summary of the steps that will be described ................... Error! Bookmark not defined.

C.

How does the final RPI set-up looks like? ........................................................................ 2

D.

How does the web application look like? ........................................................................ 4

Section 2 Hardware requirements .................................................................................................... 5 Hardware checklist..................................................................................................................... 5 Section 3 Whatever your section header is ...................................................................................... 5 Section 4 Whatever your section header is ...................................................................................... 5 Section 5 Whatever your section header is ...................................................................................... 6

Created by Dora

Page 1 of 38



ST0324 Internet of Things CA1 Step-by-step Tutorial

Section 1 Overview of the application A. What is the application about? This project is to simulate an arcade management system with an actual working python game! In this tutorial, you will be making use of the LED and Buttons for the Tapping game and having a website to view the data. This application would have the nessasary features of an arcade management system. This Labs’s coding may be a little difficult to understand as you will be learning how to code a proper python game with the Raspberry Pi.

B. What you will be doing for this lab There are 5 sections in this lab. Below is a summary of the contents covered in each section Section Description 1) Overview Get an overview of what you will do for the lab 2) Hardware requirements Provides overview of hardware required 3) Software requiremens Provides overview of software required Sections 4 to 10 provides the step-by-step instructions to set up the game on the Raspberry Pi 4) Setting up the tapping game(Part 1) Learn how to connect the hardware components to the RPi 5) Setting up the tapping game(Part 2) Code out the Program for the game 6) Setting up the tapping game(Part 3) Test run the Program 7) Setting up the tapping game Create a new database website(Part 1) 8) Setting up the tapping game Write server code and main page for website website(Part 2) 9) Setting up the tapping game Run the server website(Part 3) 10) PHP code to retrieve data from Write PHP code to retrieve data from database and database output as JSON for the website 11) Have fun with it! Play and test around the program, try to beat my high score :P

C. How does the final RPI set-up looks like? Created by Dora

Page 2 of 38



Created by Dora

ST0324 Internet of Things CA1 Step-by-step Tutorial

Page 3 of 38