<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Blog #2: Getting Started with MAX40080 Current Sense Amplifier</title><link>/challenges-projects/design-challenges/experimenting-with-current-sense-amplifier/b/challenge-blog/posts/blog-2-getting-started-with-max40080-current-sense-amplifier</link><description>What is a Current sense amplifier?
The simplest technique for measuring current is to insert a small resistor, also called a current shunt, in series with the current to be measured. The voltage across the current sense resistor is measured, and the </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Blog #2: Getting Started with MAX40080 Current Sense Amplifier</title><link>https://community.element14.com/challenges-projects/design-challenges/experimenting-with-current-sense-amplifier/b/challenge-blog/posts/blog-2-getting-started-with-max40080-current-sense-amplifier</link><pubDate>Wed, 18 May 2022 18:19:16 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a889ed26-2506-4f8d-a551-1d225584fa55</guid><dc:creator>misaz</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Thank you for feedback about my code, library and blog posts. Last code you shown is based on code from my second blog which I wrote before I developed my library but it do not use my Library&amp;nbsp;[emoticon:c4563cd7d5574777a71c318021cbbcc8]&amp;nbsp;. Library simplifies usage of sensor and is designed for reducing need for writing magic hexadecimal numbers. With my library code can be rewritten to much more simple form:&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:569dee0a-9a4c-46f1-9507-e97810e3a7ee:type=python&amp;text=from%20max40080%20import%20MAX40080%0D%0A%0D%0Amax%20%3D%20MAX40080%28%29%0D%0Amax.configure%28%29%0D%0A%0D%0Ameasurements%20%3D%20%5B%5D%0D%0Afor%20i%20in%20range%28100%29%3A%0D%0A%20%20%20%20measurements.append%28max.read_current%28%29%29%0D%0A%20%20%20%20time.sleep%280.001%29%0D%0A%20%20%20%20%0D%0Aprint%28%22Average%3A%22%2C%20sum%28measurements%29%20%2F%20len%28measurements%29%29%0D%0Aplt.plot%28measurements%29%0D%0Aplt.ylim%28ymin%3D0%29%0D%0Aplt.show%28%29]&lt;/p&gt;
&lt;p&gt;Note there is one difference. While code from my second blog printed RAW values as received from ADC, example code above plots values in Ampere unit which is more native. If you want to get RAW results from library, you can use max.read_raw_current() instead of max.read_current()&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=23603&amp;AppID=364&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>