element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Pi IoT
  • Challenges & Projects
  • Design Challenges
  • Pi IoT
  • More
  • Cancel
Pi IoT
Blog [Pi IoT] Smart Competition Home #2: The plan
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: clazarom
  • Date Created: 3 Jun 2016 2:49 PM Date Created
  • Views 806 views
  • Likes 2 likes
  • Comments 3 comments
  • pi 3
  • pi
  • piiot
  • designchallenge
  • smart home
Related
Recommended

[Pi IoT] Smart Competition Home #2: The plan

clazarom
clazarom
3 Jun 2016

In the introduction of this project, only a brief idea was presented: a smart home which also includes a competition system to get its residents involved. There was also a discussion of the communication among some devices and function that can/should be included, but not much planning or specifics were provided. What is the smart home going to consist of? When do we start having a competition system and how far we go with the games? Is there even enough time in 14 weeks to do so? With this entry, I will try to break the general project into functional blocks.

At the end, there is a tentative schedule: it never hurts to have some timeline to look back to and discover how far from these tentative deadlines I am

Well, lets get to it!

 

Work & Milestones

 

We can divide the whole projects in two main sub systems: smart home and competition system. The intention is to build the competition system as a main feature in the whole smart home.

(NOTE: More details on software installed/ coded and hardware designed/connected will be provided at each stage).

 

SMART HOME

 

Basics

Function

Devices

How to

Connectivity setup: MQTT

Raspberry Pi 3

Raspberry Pi 1

Smartphone

Broker installed in Raspberry Pi 3

Publisher client in Raspberry Pi 1

Subscriber client in smartphone

Subscriber client in Raspberry Pi 3

Sensors reading

Sensors type 1:

  • - TMP006
  •   MPL3115A2MPL3115A2
  • - Gas detector

I2C protocol – connect to the corresponding Raspberry Pi 1 I2C ports

 

Sensors type 2:

  • - Door switch
  • - Alarm button

Direct connection to Raspberry Pi 1 GPIO ports

 

Raspberry Pi 1

Reads GPIO ports

Implements MQTT publisher client -> sends data to Raspi 3

 

Raspberry Pi 3

Implements MQTT broker

Data storage

Raspberry Pi 3

Implements MQTT subscriber client -> read data from Raspi 1

MySQL database to store data

GUI – general home access

Raspberry Pi 3

Same MQTT subscriber client

Displays read data

Mobile app – individual home access

 

Implements MQTT subscriber client -> read data from Raspi 1

Displays info

Web portal – remote access

Raspberry Pi 3

TBA

Extra 1: Announcement board

Function

Devices

How to

User sets

  • - Task
  • - Announcement

Raspberry Pi 3

Include a menu to input:

Notes

Task that should be finished within a deadline (i.e. cleaning)

Data storage

Raspberry Pi 3

Database

Display task/announcements

Raspberry Pi 3

Update main GUI to include an “Announcements” tab

 

 

COMPETITION SYSTEM

 

Basic: Run competition

Function

Devices

How to

Record user’s run distance

Android smart phone

Mobile app.

1) record run distance with either:

  • - Use maps framework: get miles
  • - Count steps/use phone gyroscope

2) send distance to smart home

       -       Send to home server IP address

Data storage

Raspberry Pi 3

Implement home server – Apache

Create PHP interface to fetch data coming from phone

Store data in smart home database - MySQL

Display data

Raspberry Pi 3

Update home GUI:

  • - Individual data
  • - General table with best results

Extra 1: Tourist/Discovery system

Function

Devices

How to

New destination selection

Raspberry Pi 3

Select a reasonable location to visit

Display it on the home GUI

Allow remote access to the selected location

Mobile app- geo location

Android smartphone

Update mobile app:

  • - Map frame work to detect person’s location
  • - Read new location from Raspi 3
  • - Send when the person gets to that location

Extra 2: Smart house inner challenges

TBA

 

 

 

 

Schedule

 

1-2 Weeks (Monday) 23 May 2016 – 5 June 2016

  • Application
  • Initial set up and planning
  • Build “Basic smart house” I
    • Connectivity setup
    • Sensors reading
    • Simple Interface

3-4 Weeks (Monday) 6 June 2016 – 19 June 2016

  • Build “Basic smart house” II
    • Data storage
    • Mobile App
    • Improved GUI
    • Web portal
  • Build Basic run competition I
    • Raspi 3 server

5-6 Weeks (Monday)20 June 2016 – 3 July 2016

  • Build Basic run competition II
    • Mobile app
  • Test run competition I
    • Distance calculations
    • Mobile to server communication
  • Raspi 3 GUI updated

7-8 Weeks (Monday) 4 July 2016 – 17 July 2016

  • Extra 1 – discovery/tourist competition

9 – 10 Weeks (Monday) 18 July 2016 – 31 July 2016

  • Extra 1 – announcement board

11- 12 Weeks (Monday)1 August 2016 – 14 August

  • Extra 2 – smart house inner challenges

13-14 Weeks (Monday) 15 August 2016 – 28 August

  • Clean up: final modifications
  • Prepare project submission

(Monday) 29 August 2016 -  Project submission

  • Sign in to reply

Top Comments

  • DAB
    DAB over 9 years ago +1
    Very comprehensive plan. I will follow along to see if anything gets overtaken by events, which is usual for projects. DAB
  • clazarom
    clazarom over 9 years ago in reply to rhe123 +1
    An interesting project Tapiriik! It is definitely easier for the user (well, developer too) to sync the sport app already in use. Thanks for the suggestion.
Parents
  • DAB
    DAB over 9 years ago

    Very comprehensive plan.

     

    I will follow along to see if anything gets overtaken by events, which is usual for projects.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • DAB
    DAB over 9 years ago

    Very comprehensive plan.

     

    I will follow along to see if anything gets overtaken by events, which is usual for projects.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube