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
Arduino
  • Products
  • More
Arduino
Arduino Forum What do I need for my arduino + current sensor to do data logging ?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 7 replies
  • Subscribers 389 subscribers
  • Views 1414 views
  • Users 0 members are here
Related

What do I need for my arduino + current sensor to do data logging ?

haoen456123
haoen456123 over 3 years ago

Hi all, 

I am currently working on an Arduino project which requires me to data log the current produced and study the current trend. 

Some requirements are : 

DC current up to 1A

1 - 5 seconds data logging of current data 

Resolution of 0.1mA

Power no limit 

Can anyone let me know which parts I need to form this set up to record the current produced ? 

  • Sign in to reply
  • Cancel

Top Replies

  • dougw
    dougw over 3 years ago +6
    To resolve 0.1 mA and 1 Amp with the same sensor, you need a 16 bit A/D, which is beyond a normal Arduino. There are current sense chips that have a high-resolution built-in A/D converter that can interface…
  • Andrew J
    Andrew J over 3 years ago in reply to dougw +6
    And not just that. You need to check with the datasheet about the error rates because some can be quite high and all will have some impact on readings at 100uA. I think you may need to do some form of…
  • shabaz
    shabaz over 3 years ago +5
    That's non-trivial, and as Andrew mentions, there is the issue of noise that could swamp your lower readings, and you can try to remove some of that through filtering by say averaging, but then the speed…
  • Jan Cumps
    0 Jan Cumps over 3 years ago

    Is this a high or low voltage application?

    Do the test device (Arduino) and the system you are testing share the same ground?

    Where do you want to log to, and how?

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dougw
    0 dougw over 3 years ago

    To resolve 0.1 mA and 1 Amp with the same sensor, you need a 16 bit A/D, which is beyond a normal Arduino. There are current sense chips that have a high-resolution built-in A/D converter that can interface to some Arduinos. Such as a TI INA237.

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Andrew J
    0 Andrew J over 3 years ago in reply to dougw

    And not just that.  You need to check with the datasheet about the error rates because some can be quite high and all will have some impact on readings at 100uA.  I think you may need to do some form of standard deviation processing on the data presentation to better qualify what the results are showing and take account of outliers.  You mention 1 to 5 seconds of data but at what resolution, e.g. once per 0.1 seconds?  Check the sample rate at 16-bit vs your timing resolution vs accuracy.  

    Ultimately, how you log will depend upon the volume of data points that need to be logged, how real-time the trend needs to be observed etc.  I think more info is required to help more.

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rsjawale24
    0 rsjawale24 over 3 years ago

    As other members have mentioned, it is better if you use current sense ICs. They will give you better resolution as well as the correct reading.
    To store/log the data, you can interface a SD card with the Arduino. If you need the data along with the timestamp, you might consider interfacing a real-time clock(RTC).

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 3 years ago

    That's non-trivial, and as Andrew mentions, there is the issue of noise that could swamp your lower readings, and you can try to remove some of that through filtering by say averaging, but then the speed suffers. 

    There's an example project here https://www.youtube.com/watch?v=dBKbuUVFMk4

    which used an 18-bit ADC, for the same purpose (logging at low and high current) as part of a larger project that also includes voltage sourcing, but if you examine the circuit on the project page, the current monitoring portion was almost half of the entire project. That project may meet your needs (by omitting the voltage sourcing portion of the project), however most of the parts for that project are likely unobtainable currently due to the semiconductor shortage.

    Here is how averaging can make a difference. You can see from the video, that the averaging can show a nice flat line at very low current, but the instantaneous measurement will have noise. The x-axis is in seconds:

    image

    Here you can see what I think were individual measurements, scattered on the display, so you can see the actual noise on the measurements; I don't recall what the x-axis period was:

    image

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Andrew J
    0 Andrew J over 3 years ago in reply to shabaz

    Sorry to do this, but I’m commenting to test: suddenly I have to become a member of Arduino to participate, despite posting earlier.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cstanton
    0 cstanton over 3 years ago in reply to Andrew J

    Weird. Registered Users should be able to reply without having to join first.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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