{"id":265,"date":"2023-03-10T18:35:24","date_gmt":"2023-03-10T18:35:24","guid":{"rendered":"http:\/\/pi.peernix.com\/?p=265"},"modified":"2023-03-10T18:35:24","modified_gmt":"2023-03-10T18:35:24","slug":"adjustable-pwm-remote-ir-remote-switch","status":"publish","type":"post","link":"http:\/\/peernix.com\/?p=265","title":{"rendered":"Adjustable PWM IR Remote Switch"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">After having acquired quite a few LED strips from irreparable televisions, and having fun building circuits to drive them, it became clear that some way to control them in a more meaningful way would be useful. A simple on\/off switch could suffice, but dimming would also be a nice feature, and perhaps means of remote as well as local control would be a nice addition. The easiest way to achieve all of this and maintain a small form factor would of course be to use a microcontroller.<\/p>\n\n\n\n<a href=\"https:\/\/ibb.co\/wL7FTZw\"><img decoding=\"async\" src=\"https:\/\/i.ibb.co\/Sxc42Dd\/schematicpng.png\" alt=\"schematicpng\" border=\"0\"><\/a>\n\n\n\n<p class=\"wp-block-paragraph\">After finishing recent projects which employed infrared remote technology, I decided that IR could be a good fit for this remote switch project as well. So now, the main element of the project has to be decided on; the right microcontroller. Having much experience with the ATMega328P, it would seem to be a natural choice, however, it is rather large in size for the desired from factor, and contains many more I\/O than needed. This led me to consider another chip from the AVR family; the ATTIny85. Coming in the reasonable SOIC8 package, this seemed to be a good fit.<\/p>\n\n\n\n<a href=\"https:\/\/ibb.co\/7v7sQX1\"><img decoding=\"async\" src=\"https:\/\/i.ibb.co\/Y2vHX3L\/2020-12-05-13-40-01.jpg\" alt=\"2020-12-05-13-40-01\" border=\"0\"><\/a>\n\n\n\n<p class=\"wp-block-paragraph\">The idea now is to have the board employ PWM to control brightness, and be able to utilize a standard IR remote control to control these outputs. After capturing some key press codes, a IR remote can be re-utilized, eliminating the need for a separate remote control for the board if desired. Besides lighting, other loads could also be controlled, either with PWM, or standard on\/off DC switching.<\/p>\n\n\n\n<a href=\"https:\/\/ibb.co\/SdQ3gk7\"><img decoding=\"async\" src=\"https:\/\/i.ibb.co\/7Rg1D3N\/2023-03-10-11-42-32.jpg\" alt=\"2023-03-10-11-42-32\" border=\"0\"><\/a>\n\n\n\n<p class=\"wp-block-paragraph\">To power the low voltage stuff, a linear regulator that was capable of a 25v input was selected, to allow a larger range of input voltages for switching. A more than capable and somewhat chunky TO252 (T6009L) mosfet was selected for handling the switching, although other transistors could be used as well. A large physical button, and potentiometer were included for local control, and a IR sensor was added for intercepting the remote codes. An LED was added for visual feedback, and a barrel jack and screw terminals were added to top off the board. Capability was added to include a 433MHz RF control module, however this was never tested. For the fun of it, a variable strobe feature was added, because.. why not. To house the board, a simple enclosure was designed and 3D printed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After having acquired quite a few LED strips from irreparable televisions, and having fun building circuits to drive them, it became clear that some way to control them in a more meaningful way would be useful. A simple on\/off switch could suffice, but dimming would also be a nice feature, and perhaps means of remote<\/p>\n<div class=\"more-link\"><a href=\"http:\/\/peernix.com\/?p=265\">Read More<\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,47],"class_list":["entry","author-datz","post-265","post","type-post","status-publish","format-standard","category-uncategorized","tag-arduino","tag-pcb"],"_links":{"self":[{"href":"http:\/\/peernix.com\/index.php?rest_route=\/wp\/v2\/posts\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/peernix.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/peernix.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/peernix.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/peernix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=265"}],"version-history":[{"count":0,"href":"http:\/\/peernix.com\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions"}],"wp:attachment":[{"href":"http:\/\/peernix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/peernix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/peernix.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}