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
IoT on Wheels Design Challenge
  • Challenges & Projects
  • Design Challenges
  • IoT on Wheels Design Challenge
  • More
  • Cancel
IoT on Wheels Design Challenge
Blog Traffic Predictor #8 - Predicting the best route to avoid traffic [Part 1 of 2]
  • 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: dixonselvan
  • Date Created: 28 Oct 2017 2:51 PM Date Created
  • Views 670 views
  • Likes 2 likes
  • Comments 2 comments
  • iot on wheels design challenge
  • iot on wheels
  • trafficpredictor
Related
Recommended

Traffic Predictor #8 - Predicting the best route to avoid traffic [Part 1 of 2]

dixonselvan
dixonselvan
28 Oct 2017

Week 8 - Oct 23 - 29

 

It's almost time to hit the traffic. This blog will cover up the development of login and registration screens, API and integration of the same in the mobile app. Going through my previous blog Traffic Predictor #7 - Into the traffic [Part 2 of 2]  will help in understanding the progress better. Especially the App (Android) part.

Module 1 - Traffic prediction with machine learning

APP (Android)

 

  • Login Screen

          The home screen will act as the login screen [shown below]. It consists of "username" and "password" fields along with "Login" button and "Register Here" link at the bottom. After successful login a personalized user page will be displayed [shown test version below the login screen], else an alert message would pop up to try again.

image

image

  • Registration Screen

          The registration screen is for registering new users once they fill the "username", "password", "gender" and "country" fields and click "Register" button. On successful registration the user will be redirected to login page, else an alert will be shown to try with another username or simply to try again.

image

  • API

          API are "Application Program Interface" are like access keys to already developed software. Mostly these will function like giving inputs and obtaining desired outputs from the API.

         

               For example, GMaps API.

 

          In the android app, when the login/ registration button is pressed by the user the data will be converted into JSON object [JSON is a standardized string format].

    

               For instance, lets consider from the login screen the below JSON contents are passed.

                        {

                               username: Dixon124;

                               password: Test;

                         }

 

          This data will be given to Login API which will read the username verify it in the database and then decrypt the stored password to compare it with the JSON input password. Then this will allow user to login. A similar process is followed in Registration API. In this project APIs are written in PHP language.

 

          The main motive of creating a user login screen for traffic predictor project is to obtain user specific location data for machine learning. This will enable easier classification of data when compared to raw location data from route A to B.

 

 

IoT expansion board:

 

For the purpose of connecting the Nucleo-L476RG board with user mobile through BT Wi-Fi I have made the below shield expansion board BT connection is achieved through HC-05 bluetooth transceiver and Wi-Fi connection is achieved through ESP8266 Wi-Fi transceiver module

image

Progress made so far,

||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||   55%

{tabbedtable} Tab LabelTab Content
Entry & Introduction

IoT on Wheels Design Challenge - Traffic predictor and auto pilot mode

Traffic Predictor #1 - The Official Announcement

PlanTraffic Predictor #3 - The Plan
Initial Setup

Traffic Predictor #2 - Quest for the Code Editor

Traffic Predictor #4 - Finally, the kit arrives

Module 1

Traffic Predictor #5 - Machine Learning and Building a case for the kit

Traffic Predictor #6 - Into the traffic [Part 1 of 2]

Traffic Predictor #7 - Into the traffic [Part 2 of 2]

Module 2

Yet to Begin

Module 3Yet to Begin
IntegrationYet to Begin

image

  • Sign in to reply

Top Comments

  • goweswaran
    goweswaran over 7 years ago +1
    Good work dixon
Parents
  • goweswaran
    goweswaran over 7 years ago

    Good work dixon

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dixonselvan
    dixonselvan over 7 years ago in reply to goweswaran

    Thank you goweswaran

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • dixonselvan
    dixonselvan over 7 years ago in reply to goweswaran

    Thank you goweswaran

    • Cancel
    • Vote Up 0 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