{"id":7636,"date":"2021-04-14T16:40:34","date_gmt":"2021-04-14T14:40:34","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=7636"},"modified":"2021-04-14T16:44:55","modified_gmt":"2021-04-14T14:44:55","slug":"tasmota-setup-a-pwm-with-1024bit","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/tasmota-setup-a-pwm-with-1024bit\/","title":{"rendered":"Tasmota: Setup a PWM with 1024Bit"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_7636 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_7636')){$('.twoclick_social_bookmarks_post_7636').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Tasmota%3A%20Setup%20a%20PWM%20with%201024Bit\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ashort%20post%20today.%20It%20shows%20howto%20configure%20a%20GPIO%20Pin%20as%20PWM%20with%20a%20width%20of%201024Bits.%20%20Note%20the%20restrictions%20when%20using%20IO%20Ports.%0D%0A%0D%0AConfigure%20GPIO%2014%20to%20PWM%201.%0D%0A%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/tasmota-setup-a-pwm-with-1024bit\\\/\",\"post_id\":7636,\"post_title_referrer_track\":\"Tasmota%3A+Setup+a+PWM+with+1024Bit\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>short post today. It shows howto configure a GPIO Pin as PWM with a width of 1024Bits.  Note the <a href=\"https:\/\/tasmota.github.io\/docs\/Peripherals\/#restrictions\" rel=\"noopener\" target=\"_blank\">restrictions <\/a>when using IO Ports.<\/p>\n<p>Configure GPIO 14 to PWM 1.<\/p>\n<p><!--more--><br \/>\nThen setup the pwm by the following <a href=\"https:\/\/tasmota.github.io\/docs\/Commands\/\" rel=\"noopener\" target=\"_blank\">Commands<\/a><br \/>\n<code><br \/>\nSetOption15 0<br \/>\nSetOption68 0<br \/>\nPwmFrequency 1000<br \/>\nPwmRange 1023<br \/>\n<\/code><br \/>\nNow you can set the output pulsewith<br \/>\n<code><br \/>\npwm1 512<br \/>\n22:37:20.356 CMD: pwm1 512<br \/>\n22:37:20.364 MQT: switches\/stat\/display001\/RESULT = {\"PWM\":{\"PWM1\":512}}<br \/>\n<\/code><\/p>\n<p><!--Rule to show value on display \nrule1 on PWM#PWM1 do [x0y0]displaytext PWM1 %value% endon\n--><br \/>\nMichael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, short post today. It shows howto configure a GPIO Pin as PWM with a width of 1024Bits. Note the restrictions when using IO Ports. Configure GPIO 14 to PWM 1.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1580,1],"tags":[1583,689,1582,1472],"class_list":["post-7636","post","type-post","status-publish","format-standard","hentry","category-tasmota-devices","category-uncategorized","tag-1024bit","tag-configure","tag-pwm","tag-tasmota"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=7636"}],"version-history":[{"count":4,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7636\/revisions"}],"predecessor-version":[{"id":7640,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7636\/revisions\/7640"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=7636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=7636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=7636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}