{"id":127,"date":"2009-10-30T13:03:24","date_gmt":"2009-10-30T12:03:24","guid":{"rendered":"http:\/\/stigern.net\/blog\/?p=127"},"modified":"2011-12-16T06:15:00","modified_gmt":"2011-12-16T05:15:00","slug":"arduino-showing-cpu-load-with-9-leds","status":"publish","type":"post","link":"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/","title":{"rendered":"Arduino: Showing CPU load with 9 leds!"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"LedStrip\" src=\"http:\/\/img691.imageshack.us\/img691\/4766\/cpuledstrip.jpg\" alt=\"\" width=\"342\" height=\"351\" \/><\/p>\n<p>My new project, is a simple led-strip which shows CPU load. 9 led&#8217;s are used for this, could have used more but my tiny breadboard couldn&#8217;t hold more. Anyhow, it uses serial communication to receive how much the totalcpu usage is. For this you need a C# program running on your computer, it just sends a value from 0-100. And the Arduino reacts and lights up leds accordingly to how much load your CPU got.<\/p>\n<p>I will not go into how you make the program in C#, therefore I&#8217;m uploading the .exe here for you to download. I&#8217;ll also include the source-code for it.<\/p>\n<p>What you need?<\/p>\n<p><em>1x Arduino<br \/>\n9x LEDs<br \/>\nSome wires<\/em><\/p>\n<p>1. Wire it all up like in this <a href=\"http:\/\/img519.imageshack.us\/img519\/8744\/fritzlingcpuled.jpg\" target=\"_blank\">Fritzing picture.<\/a><\/p>\n<p>2. Load up the Arduino with the <a href=\"http:\/\/pastebin.com\/f33164593\">following program.<\/a><\/p>\n<p>3. <a href=\"http:\/\/stigern.net\/upload\/download.php?file=67ad76d2ab72dec0e33efcfb3e0be6e9\" target=\"_self\">Download the C# program here.<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"CpuLoad\" src=\"http:\/\/img251.imageshack.us\/img251\/8602\/programj.jpg\" alt=\"\" width=\"301\" height=\"151\" \/><\/p>\n<p>When you start the .exe file, you only need to select which Com port the Arduino is using. And the click connect, and then it should start communicating with the Arduino. And show cpu load.<\/p>\n<p>[youtube=http:\/\/www.youtube.com\/watch?v=ecbdUhiOWes&#038;w=425&#038;h=344]<\/p>\n<p><strong>PS. If you got any questions etc, please take it in my <a href=\"http:\/\/stigern.net\/forum\/viewtopic.php?f=24&amp;t=457\" target=\"_blank\">forums post here.<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My new project, is a simple led-strip which shows CPU load. 9 led&#8217;s are used for this, could have used more but my tiny breadboard couldn&#8217;t hold more. Anyhow, it uses serial communication to receive how much the totalcpu usage is. For this you need a C# program running on your computer, it just sends [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[14,4],"tags":[16,18,19,165,169,168,26,30,166,171,102,167,170,61],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","category-arduino-electronics","category-electronics","tag-arduino","tag-c","tag-code","tag-cpu","tag-example","tag-express","tag-guide","tag-led","tag-load","tag-processor","tag-program","tag-sharp","tag-showing","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Arduino: Showing CPU load with 9 leds! - Stigern.Net<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Arduino: Showing CPU load with 9 leds! - Stigern.Net\" \/>\n<meta property=\"og:description\" content=\"My new project, is a simple led-strip which shows CPU load. 9 led&#8217;s are used for this, could have used more but my tiny breadboard couldn&#8217;t hold more. Anyhow, it uses serial communication to receive how much the totalcpu usage is. For this you need a C# program running on your computer, it just sends [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/\" \/>\n<meta property=\"og:site_name\" content=\"Stigern.Net\" \/>\n<meta property=\"article:published_time\" content=\"2009-10-30T12:03:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-12-16T05:15:00+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/img691.imageshack.us\/img691\/4766\/cpuledstrip.jpg\" \/>\n<meta name=\"author\" content=\"Stigern\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stigern\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/\",\"url\":\"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/\",\"name\":\"Arduino: Showing CPU load with 9 leds! - Stigern.Net\",\"isPartOf\":{\"@id\":\"https:\/\/stigern.net\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/img691.imageshack.us\/img691\/4766\/cpuledstrip.jpg\",\"datePublished\":\"2009-10-30T12:03:24+00:00\",\"dateModified\":\"2011-12-16T05:15:00+00:00\",\"author\":{\"@id\":\"https:\/\/stigern.net\/blog\/#\/schema\/person\/a2a77157fa1facae3c843032fbc1ad3c\"},\"breadcrumb\":{\"@id\":\"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/#primaryimage\",\"url\":\"http:\/\/img691.imageshack.us\/img691\/4766\/cpuledstrip.jpg\",\"contentUrl\":\"http:\/\/img691.imageshack.us\/img691\/4766\/cpuledstrip.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/stigern.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Arduino: Showing CPU load with 9 leds!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/stigern.net\/blog\/#website\",\"url\":\"https:\/\/stigern.net\/blog\/\",\"name\":\"Stigern.Net\",\"description\":\"my little blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/stigern.net\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/stigern.net\/blog\/#\/schema\/person\/a2a77157fa1facae3c843032fbc1ad3c\",\"name\":\"Stigern\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/stigern.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/305d159d64fe4a9ee434aed8ee639410?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/305d159d64fe4a9ee434aed8ee639410?s=96&d=mm&r=g\",\"caption\":\"Stigern\"},\"sameAs\":[\"http:\/\/www.stigern.net\"],\"url\":\"https:\/\/stigern.net\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Arduino: Showing CPU load with 9 leds! - Stigern.Net","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/","og_locale":"en_US","og_type":"article","og_title":"Arduino: Showing CPU load with 9 leds! - Stigern.Net","og_description":"My new project, is a simple led-strip which shows CPU load. 9 led&#8217;s are used for this, could have used more but my tiny breadboard couldn&#8217;t hold more. Anyhow, it uses serial communication to receive how much the totalcpu usage is. For this you need a C# program running on your computer, it just sends [&hellip;]","og_url":"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/","og_site_name":"Stigern.Net","article_published_time":"2009-10-30T12:03:24+00:00","article_modified_time":"2011-12-16T05:15:00+00:00","og_image":[{"url":"http:\/\/img691.imageshack.us\/img691\/4766\/cpuledstrip.jpg","type":"","width":"","height":""}],"author":"Stigern","twitter_misc":{"Written by":"Stigern","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/","url":"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/","name":"Arduino: Showing CPU load with 9 leds! - Stigern.Net","isPartOf":{"@id":"https:\/\/stigern.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/#primaryimage"},"image":{"@id":"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/#primaryimage"},"thumbnailUrl":"http:\/\/img691.imageshack.us\/img691\/4766\/cpuledstrip.jpg","datePublished":"2009-10-30T12:03:24+00:00","dateModified":"2011-12-16T05:15:00+00:00","author":{"@id":"https:\/\/stigern.net\/blog\/#\/schema\/person\/a2a77157fa1facae3c843032fbc1ad3c"},"breadcrumb":{"@id":"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/#primaryimage","url":"http:\/\/img691.imageshack.us\/img691\/4766\/cpuledstrip.jpg","contentUrl":"http:\/\/img691.imageshack.us\/img691\/4766\/cpuledstrip.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/stigern.net\/blog\/arduino-showing-cpu-load-with-9-leds\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/stigern.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Arduino: Showing CPU load with 9 leds!"}]},{"@type":"WebSite","@id":"https:\/\/stigern.net\/blog\/#website","url":"https:\/\/stigern.net\/blog\/","name":"Stigern.Net","description":"my little blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/stigern.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/stigern.net\/blog\/#\/schema\/person\/a2a77157fa1facae3c843032fbc1ad3c","name":"Stigern","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/stigern.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/305d159d64fe4a9ee434aed8ee639410?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/305d159d64fe4a9ee434aed8ee639410?s=96&d=mm&r=g","caption":"Stigern"},"sameAs":["http:\/\/www.stigern.net"],"url":"https:\/\/stigern.net\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":1,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":303,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions\/303"}],"wp:attachment":[{"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}