element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 #5 - Machine Learning and Building a case for the kit
  • 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: 7 Oct 2017 4:23 PM Date Created
  • Views 829 views
  • Likes 6 likes
  • Comments 2 comments
  • iot on wheels design challenge
  • iot on wheels
  • machine learning
  • ai
  • ai project
  • trafficpredictor
Related
Recommended

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

dixonselvan
dixonselvan
7 Oct 2017

Week 5 - Oct 02 - 08

 

This week I have planned to design and build module #1 which would the biggest and the main module in my trafficpredictor project. In this blog, I have covered up the machine learning concept/ algorithm to be used. Along with this, I am going to unveil the case to be used for mounting the Nucleo - L476RG kit in the vehicle.

 

I am still exploring ways to utilize the kit's storage capacity, once done will share the same in my future blogs.

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

So far everything to kickstart my trafficpredictor project has been completed.

image Plan

image Code Editor & Software IDE required

 

Yet to come

image App (Android / Web)

image Code Snippets

image MATLAB GUI

 

Machine Learning  New

 

     Machine learning (ML) has been the talk of the town along with Artificial intelligence (AI). ML is an interesting area because we can teach the computer how to identify objects/ face through computer vision (CV) / predict data. The reason I have opted for machine learning to predict traffic is its ability to process a huge amount of data and convert them into a single output.

     There are two main types of machine learning - Classification and Clustering. I have chosen to classify data into either best route with less traffic or route with traffic, this would fall under type classification. This is one way because of my prior experience with classification type machine learning in MATLAB and also it better suits the project purpose.

Data refers to GPS data - latitude & longitude from API plus time at which data was recorded.

Output refers to resultant of machine learning process - probably a route which is predicted to have less traffic.

GUI for machine learning

     I have a GUI developed in MATLAB already for machine learning smells which can be seen below. The graph plotted to the left (Classification) separates the fragrance of one perfume from other (separated by a line).  The graph to the right (Clustering) clusters the smell values around the 'X' marked and thus separates them.

image

     Link to share your thoughts in Discussions related to the above project "Odor Detector", if interested - Is it possible to transmit and receive smell?

 

{tabbedtable} Tab LabelTab Content
Building a case for the kit  Updated

Check out the next tab for"How to connect Nucleo-L476RG board to USB Charger Power Bank

 

The case has been built to hold/mount the Nucleo-L476RG kit onto the vehicle therefore while on travel we can record the GPS location data in future modules to identify real-time traffic The case includes two provisions one to hold the MCU board with expansion boards and the other to hold the battery pack power bank Though the case is not an enclosure type it is hard enough to protect the case hold the kit and battery in position even in tough terrains and allows easier access I have added below photos video of the kit inside the case and mounted onto my bike

 

For those who are not able to afford 3D - Printers like me, I would suggest Metal Mechanix - 5. It has been much help in bringing my designs into life at a much faster rate.

 

{gallery} Case for the kit

image

Image 1: Case mounted in bike's handlebar

image

Image 2: The Case

image

Image 3: Case and the bike


Travel with the newly built case - Video

 

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

Please do not attempt to record audio / video while driving the vehicle alone or without any safety harness and auto recording equipments.

How to connect Nucleo-L476RG board to USB Charger Power Bank

Mobility would be the key criteria when it comes to moving the prototype to real-traffic to gather data for machine learning. So I have decided to use my 20,000mAh power bank with 5.1V 2A output as the external power source.

 

Steps to connect Nucleo-L476RG board to USB Charger Power Bank

  1. Connect the Nucleo-L476RG and the USB Charger Power bank using the USB type A to mini-B cable
  2. Make sure JP5's pin 1 and 2 are connected using a jumper (U5V).
  3. Turn ON JP1(using a jumper) to enable power supply from the USB Charger/ Power Bank.

image

Nucleo-L476RG board connected to power bank

 

Reference for this article: Nucleo-L476RG Datasheet

 

Please find below links to my previous blogs on my traffic predictor project for IoT on Wheels design Challenge,

Blog 1 - The Official Announcement

Blog 2 - Quest for the code editor

Blog 3 - The Plan

Blog 4 - Finally, the kit arrives

image

  • Sign in to reply

Top Comments

  • DAB
    DAB over 7 years ago +3
    Nice update. I do have one concern about your mounting bracket. I would add some shock mounting to the frame. Your current design will subject the electronics to vibrations, which could result in the cables…
  • dixonselvan
    dixonselvan over 7 years ago in reply to DAB +1
    Thanks, DAB I never thought that perspective of things. Will follow your suggestion
  • dixonselvan
    dixonselvan over 7 years ago in reply to DAB

    Thanks, DAB I never thought that perspective of things. Will follow your suggestion

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

    Nice update.

     

    I do have one concern about your mounting bracket.

    I would add some shock mounting to the frame.  Your current design will subject the electronics to vibrations, which could result in the cables losing contact.

     

    Try adding some rubber washers and make sure you add external fasteners to the cabling to make sure they maintain contact at all times.

     

    DAB

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