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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Ralph Yamamoto's Blog TS-04 DMM Data Plotting
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 15 Feb 2020 9:33 PM Date Created
  • Views 611 views
  • Likes 4 likes
  • Comments 2 comments
  • general tools ts-04
  • web bluetooth
  • dmm logging
  • plotly
Related
Recommended

TS-04 DMM Data Plotting

ralphjy
ralphjy
15 Feb 2020

This is a followup to my previous post: DMM Logging with Web Bluetooth .

 

I wanted to extend the HTML interface to allow me to plot the data that is received via Bluetooth from the DMM.  It seems that nowadays when I want to capture and visualize data that I'm usually using some form of IDE or dashboard in the cloud.  There are many great services out there and they are very good for analysis and generating reports.  For the purposes of a tool like a DMM I thought that it would be better to have a simpler interface that did not require internet/cloud connectivity and that could be reasonably portable.  Since I'm starting with a browser based interface I thought that I would use JavaScript libraries to do the data plotting and analysis within the HTML code.  If I use local libraries that would allow the code to be portable between computers without requiring internet connectivity.

 

First question was which plotting library to use.  I decided to try Plotly as I have used the cloud based interface and it has both JavaScript and Python libraries available.  I thought that getting things working would be fairly simple but the devil is in the details.....  Getting a basic plot working was easy but doing simple things like controlling the axes configuration is something I'm still trying to figure out.  And, of course, if you roll your own configuration - you only get what you implement (that's the good news and bad news).

 

I've now got a simple plotting interface working.  I need to work on making it more configurable but I think that's something that will happen over time.  I thought that I'd just share what I have at this point.

 

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

  • Sign in to reply

Top Comments

  • fmilburn
    fmilburn over 5 years ago +1
    Hi Ralph, Nice work and a really interesting way to capture data from a DMM, and the General DMM is really inexpensive . Would it be easy to open up a csv file and store the data for analysis? I've not…
  • ralphjy
    ralphjy over 5 years ago in reply to fmilburn +1
    Yes, I'm working on that next. The original program (that Tom Igoe did) puts the decoded data in JSON format (key:value pairs), so it shouldn't be hard to store it in a CSV file. I'll probably have to…
  • ralphjy
    ralphjy over 5 years ago in reply to fmilburn

    Yes, I'm working on that next.  The original program (that Tom Igoe did) puts the decoded data in JSON format (key:value pairs), so it shouldn't be hard to store it in a CSV file.  I'll probably have to make sure I get the units right (I don't currently account for that in the plotting).  I'm still contemplating what to do about undersampling the data (it comes in at a pretty good clip).  I guess I could just set a sampling period for storage but I was thinking that I might want to retain min/max from all the data points.  I'll need to timestamp it also.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago

    Hi Ralph,

     

    Nice work and a really interesting way to capture data from a DMM, and the General DMM is really inexpensive.  Would it be easy to open up a csv file and store the data for analysis?  I've not used JavaScript.

     

    Frank

    • 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