{"id":199,"date":"2012-10-07T15:35:10","date_gmt":"2012-10-07T13:35:10","guid":{"rendered":"http:\/\/jcoder.me\/blog\/?p=199"},"modified":"2012-10-07T17:10:45","modified_gmt":"2012-10-07T15:10:45","slug":"arduino-pwm-in-slow-motion","status":"publish","type":"post","link":"https:\/\/jcoder.me\/blog\/2012\/10\/07\/arduino-pwm-in-slow-motion\/","title":{"rendered":"Arduino PWM in slow motion"},"content":{"rendered":"<p>Although I&#8217;m mostly working with the &#8220;normal&#8221; digital input \/ output on the Arduino, it might be a good idea to play with the PWM output, too, just to have a basic knowledge about it if needed.<\/p>\n<p>I&#8217;ll not go too much into detail about the theoretical background of PWM (highly suggesting you to read the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Pulse-width_modulation\" target=\"_blank\">Wikipedia article about PWM<\/a> if you want to learn more about it). Simply speaking, PWM on the Arduino creates an analogue signal between 0 and 5 Volts by pulsing the power with an interval, e.g. to provide 50% (2.5 Volts) the power is pulsed at a rate of 500 Hz (Arduino uses this frequency for PWM) with half of the time provding either 5 Volts or 0 Volts.<\/p>\n<p>So, what about connecting a LED to the Arduino PWM, powering it at 50% and using high speed video recording?<\/p>\n<p><iframe loading=\"lazy\" src=\"http:\/\/player.vimeo.com\/video\/50919538\" frameborder=\"0\" width=\"500\" height=\"281\"><\/iframe><\/p>\n<p><a href=\"http:\/\/vimeo.com\/50919538\">Arduino PWM in slow motion<\/a> from <a href=\"http:\/\/vimeo.com\/nonepicfilms\">Nils<\/a> on <a href=\"http:\/\/vimeo.com\">Vimeo<\/a>.<\/p>\n<p>At 1000 frames per second you can see the flickering that is caused by the switching power on and off at high frequency.<\/p>\n<p>I currently don&#8217;t have any use case for PWM in my projects but it&#8217;s good to know how it basically works if needed ;)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although I&#8217;m mostly working with the &#8220;normal&#8221; digital input \/ output on the Arduino, it might be a good idea to play with the PWM output, too, just to have a basic knowledge about it if needed. I&#8217;ll not go &hellip; <a href=\"https:\/\/jcoder.me\/blog\/2012\/10\/07\/arduino-pwm-in-slow-motion\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":205,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[55,43,44,45],"class_list":["post-199","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","tag-arduino","tag-pwm","tag-slow-motion","tag-video"],"_links":{"self":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts\/199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/comments?post=199"}],"version-history":[{"count":6,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts\/199\/revisions"}],"predecessor-version":[{"id":206,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts\/199\/revisions\/206"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/media\/205"}],"wp:attachment":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/media?parent=199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/categories?post=199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/tags?post=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}