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 #6 - Into the 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: 15 Oct 2017 3:58 AM Date Created
  • Views 713 views
  • Likes 1 like
  • Comments 2 comments
  • iot on wheels design challenge
  • iot on wheels
  • trafficpredictor
Related
Recommended

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

dixonselvan
dixonselvan
15 Oct 2017

Week 6 - Oct 09 - 15

 

     Having set up everything to kickstart the project, this blog will cover up my further progress in moving the device (Nucleo-L476RG kit plus Case) "Into the traffic". This will be the second blog covering module 1. A glance over the previous week's blog #5 will help you in understanding trafficpredictor project progress better.

Module 1 - Traffic prediction with machine learning on an added advantage of mass storage capability of the STM32 Nucleo-64 development board

To be covered later/ in this blog,

 

image App (Android / Web)

image Code Snippets

image MATLAB GUI

image Explored Kit's Storage Capacity

 

App (Android)

     It took me almost a day & more than 5GB internet data to complete Android studio SDK along with AVD installation. Meanwhile, I tried few online mobile apps and websites for android application development sites (These are restricted to basic layout modifications & fewer functionalities when compared to Android Studio). Out of the available websites to develop an android app, I found the following websites to be best:

  • Appy Pie
  • Web Self

     Advantage - They had faster time from development to production plus more options and layouts. And overall they are FREE!

 

     The main limitation I felt using Android Studio is, it uses most of the computer's RAM (Full capacity of the computer - 4GB). This results in freezing/ hanging off my computer due to 90+% RAM usage. This is severely impacting the application development process as and when I need to test the code I have to wait for 10 to 20 minutes to visualize the output in the Virtual Device Emulator. Credits to IObit's performance monitor which saved my computer from most of the hanging part with an option "Clean RAM" [Refer below screenshot - Broomstick icon].

image

 

     One more option which I tried out was to reduce the RAM allotted to the AVD from and select Graphics to be Hardware. Refer below screenshot for steps which are given inside the screenshot.

image

 

If you have suggestions to make Android Studio work fluently without hanging while emulating the output, please do share in the comments section below.

[App is under development and details will be posted in the next blog...]

 

GPS Data

     GPS data collected from the user has to be saved in a database for further processing (Machine Learning). I have planned to transfer data to Google spreadsheets which would be cost and time effective in the testing phase. After the successful test and on demand of huge traffic of data, it can be moved into a database ( preferably SQL/ DB2).

 

Challenging part - GPS & Wi-Fi

     Being not aware of the process of extracting information from GPS satellites through GMAPS API and integrating it to work with the kit, it is really a bit challenging. Though initially, I felt connecting the kit to the internet will be easier, it becomes challenging as I progress.

 

  • Wi-Fi Expansion Board - The Wi-Fi Expansion board X-NUCLEO-IDW01M1 comes with a handy instruction manual from the ST (Download it here). As per the manual, I set up the apache server on my PC and managed it through XAMPP. But I was not able to receive messages as instructed in the manual [Refer Screenshot below]. This can be due to the version difference, version from when they had prepared the document to the version available currently. This led me to a state where I am unable to ensure Wi-Fi expansion board setup is complete. Otherwise, things are good to go.

image

 

  • GPS - Being the heart of the project I am still clueless to start things with GPS though I have an idea of how would things work.

 

How I overcome - Thank you DAB after your comment, I had some spark to work with. It is a bit challenging to begin with GPS, provided there is no sensor in the kit for directly receiving GPS data. Hence I have planned to kick things through the mobile app. I have now started to use GMAPS API and it is very interesting to work with.

 

Tutorials which helped me are GMAPS API for Android - by Google & the below tutorial in youtube

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 

Progress made so far,

|||||||||||||||||||||||||||||||||||||||||||||||||||||||   40%

{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

Module 2

Yet to Begin

Module 3Yet to Begin
IntegrationYet to Begin

 

image

  • Sign in to reply

Top Comments

  • DAB
    DAB over 7 years ago +1
    There are several ways to access the GPS ascii string on the RPi website. Go take a look, the format is standard and has been used for decades to read position information. DAB
  • dixonselvan
    dixonselvan over 7 years ago in reply to DAB

    Thanks DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 7 years ago

    There are several ways to access the GPS ascii string on the RPi website.

    Go take a look, the format is standard and has been used for decades to read position information.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
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