{"id":1974,"date":"2017-04-16T18:15:31","date_gmt":"2017-04-16T16:15:31","guid":{"rendered":"http:\/\/www.sciencetronics.com\/greenphotons\/?p=1974"},"modified":"2025-06-16T18:37:50","modified_gmt":"2025-06-16T16:37:50","slug":"replacing-three-remotes","status":"publish","type":"post","link":"https:\/\/www.sciencetronics.com\/greenphotons\/?p=1974","title":{"rendered":"Replacing three remotes"},"content":{"rendered":"<h3 id=\"idea\">Idea<\/h3>\n<p>You know the problem &#8211; with every new gadget comes a new remote control, and while there are programmable and universal remote controls out there, they will never just do what you want.<\/p>\n<figure id=\"attachment_1979\" aria-describedby=\"caption-attachment-1979\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3762a_1200.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1979\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3762a_1200-300x240.jpg\" alt=\"The three main remotes in my living room.\" width=\"300\" height=\"240\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3762a_1200-300x240.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3762a_1200-1024x819.jpg 1024w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3762a_1200-150x120.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3762a_1200-400x320.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3762a_1200.jpg 1157w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1979\" class=\"wp-caption-text\">The three main remotes in my living room.<\/figcaption><\/figure>\n<p>For controlling my tv, my digital box and one of <a href=\"https:\/\/www.instructables.com\/id\/Remote-controlled-LED-ribbon\/\" target=\"_blank\" rel=\"noopener\">the wall lights<\/a> in my living room I used to have three remote controls. Each of these remotes had a gazillion buttons which I never ever use, and the ones I use regularly were partly placed at inconvenient positions. For a couple of years now I had suggested a remote control as a microcontroller project to my students, but only this year Josefine and Tobias pursued this project and gave me a proof of concept.<\/p>\n<h3 id=\"libs\">Libraries<\/h3>\n<p>There are two great libraries to give your microcontroller project access to the world of infrared remote controls, <a href=\"https:\/\/www.mikrocontroller.net\/articles\/IRMP_-_english#top\" target=\"_blank\" rel=\"noopener\">IRMP<\/a> for the receiving end and <a href=\"https:\/\/www.mikrocontroller.net\/articles\/IRSND_-_english\" target=\"_blank\" rel=\"noopener\">IRSND<\/a> for the transmitter part. While my students combined both libraries into a single, programmable unit, I only left the self learning part as an option, but went for a fixed layout of the remote until now.<\/p>\n<h3 id=\"sniffer\">Sniffer<\/h3>\n<p>However, I first constructed a small infrared sniffer in order to acquire the codes sent out by my existing remote controls. It uses such a simple circuit that I didn&#8217;t bother to make a printed circuit board but rather copied the circuit directly from the breadboard to a veroboard.<\/p>\n<figure id=\"attachment_1983\" aria-describedby=\"caption-attachment-1983\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3779a_900.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1983\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3779a_900-300x169.jpg\" alt=\"breadboard construction of the &quot;infrared sniffer&quot;\" width=\"300\" height=\"169\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3779a_900-300x169.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3779a_900-150x84.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3779a_900-400x225.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3779a_900.jpg 929w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1983\" class=\"wp-caption-text\">breadboard construction of the &#8220;infrared sniffer&#8221;<\/figcaption><\/figure>\n<figure id=\"attachment_1984\" aria-describedby=\"caption-attachment-1984\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3780a_1000.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1984\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3780a_1000-300x211.jpg\" alt=\"with the Nokia-display in place\" width=\"300\" height=\"211\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3780a_1000-300x211.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3780a_1000-150x106.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3780a_1000-400x282.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3780a_1000.jpg 979w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1984\" class=\"wp-caption-text\">with the Nokia-display in place<\/figcaption><\/figure>\n<p>It would have been good enough to keep the IR sniffer on a breadboard, but this time I even stuffed it into a small box.<\/p>\n<figure id=\"attachment_1986\" aria-describedby=\"caption-attachment-1986\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3776a_900.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1986\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3776a_900-300x223.jpg\" alt=\"The infrared sniffer in a small box.\" width=\"300\" height=\"223\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3776a_900-300x223.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3776a_900-150x111.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3776a_900-400x297.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3776a_900.jpg 871w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1986\" class=\"wp-caption-text\">The infrared sniffer in a small box.<\/figcaption><\/figure>\n<h3 id=\"design\">Design<\/h3>\n<p>Looking at what I needed from my three remote controls I came up with 32 buttons in total which can conveniently be arranged in a 8&#215;4 matrix &#8211; at this point I decided against the use of capacitive buttons like my students did, and opted instead for regular push buttons, and without testing anything on a breadboard first I directly went into the design of a single-sided circuit board in <a href=\"http:\/\/kicad-pcb.org\/\" target=\"_blank\" rel=\"noopener\">KiCAD<\/a>. I chose to use two infrared emitting LEDs which can be either connected in series or parallel by means of jumper links &#8211; depending on the supply voltage. Since I then decided to use three AAA cells as power source, giving me nominally 4.5 V, I selected the series connected version with a 10 ohm dropper resistor in the final design.<\/p>\n<figure id=\"attachment_1989\" aria-describedby=\"caption-attachment-1989\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/remote_schematic_1100.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1989\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/remote_schematic_1100-300x144.jpg\" alt=\"Schematic diagram of the remote control.\" width=\"300\" height=\"144\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/remote_schematic_1100-300x144.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/remote_schematic_1100-1024x491.jpg 1024w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/remote_schematic_1100-150x72.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/remote_schematic_1100-400x192.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/remote_schematic_1100.jpg 1107w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1989\" class=\"wp-caption-text\">Schematic diagram of the remote control.<\/figcaption><\/figure>\n<h3 id=\"layout\">Layout<\/h3>\n<p>I spent almost a day trying to make a single-sided layout around a TQFP32-packaged ATmega328 before I started over with a larger DIP28-packaged one. The biggest problem was the placement of the chip in the middle of the key matrix and still be able to route the column wires all the way through &#8211; the wide spacing of the DIP28-package makes it possible to thread the wires between two pins which is impossible for the TQFP32-package if I wanted make the circuit board using <a href=\"https:\/\/www.instructables.com\/id\/PCB-making-guide\/\" target=\"_blank\" rel=\"noopener\">the toner-transfer technique<\/a>.<\/p>\n<figure id=\"attachment_1981\" aria-describedby=\"caption-attachment-1981\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_top.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1981\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_top-300x162.jpg\" alt=\"KiCAD #D rendering of the circuit board, showing the button matrix.\" width=\"300\" height=\"162\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_top-300x162.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_top-1024x554.jpg 1024w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_top-150x81.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_top-400x216.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_top.jpg 1220w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1981\" class=\"wp-caption-text\">KiCAD #D rendering of the circuit board, showing the button matrix.<\/figcaption><\/figure>\n<figure id=\"attachment_1982\" aria-describedby=\"caption-attachment-1982\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_bot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1982\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_bot-300x150.jpg\" alt=\"KiCAD 3D rendering of the circuit board, showing the microcontroller, ISP connector and IR LEDs on the rear side.\" width=\"300\" height=\"150\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_bot-300x150.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_bot-1024x510.jpg 1024w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_bot-150x75.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_bot-400x199.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_tht_bot.jpg 1218w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1982\" class=\"wp-caption-text\">KiCAD 3D rendering of the circuit board, showing the microcontroller, ISP connector and IR LEDs on the rear side.<\/figcaption><\/figure>\n<h3 id=\"etching\">Etching<\/h3>\n<p>For the toner transfer process I laser-printed the mirrored pcb layout onto a sheet of glossy inkjet paper before using my modified paper laminator to transfer the toner onto a cleaned piece of copper-clad FR4 base material. After etching the circuit board then in sodium persulfate solution I trimmed the board to the exact size, drilled the holes for the microcontroller, the ISP connector and the infrared LEDs. Then I tinned the traces and soldered everything in place.<\/p>\n<figure id=\"attachment_1975\" aria-describedby=\"caption-attachment-1975\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3756a_1200.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1975\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3756a_1200-300x154.jpg\" alt=\"The etched, drilled and tinned circuit board.\" width=\"300\" height=\"154\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3756a_1200-300x154.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3756a_1200-1024x527.jpg 1024w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3756a_1200-150x77.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3756a_1200-400x206.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3756a_1200.jpg 1217w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1975\" class=\"wp-caption-text\">The etched, drilled and tinned circuit board.<\/figcaption><\/figure>\n<figure id=\"attachment_1976\" aria-describedby=\"caption-attachment-1976\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3757a_1100.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1976\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3757a_1100-300x196.jpg\" alt=\"Front side of the finished circuit board with all 32 smd push-buttons in place.\" width=\"300\" height=\"196\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3757a_1100-300x196.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3757a_1100-1024x668.jpg 1024w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3757a_1100-150x98.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3757a_1100-400x261.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3757a_1100.jpg 1083w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1976\" class=\"wp-caption-text\">Front side of the finished circuit board with all 32 smd push-buttons in place.<\/figcaption><\/figure>\n<figure id=\"attachment_1977\" aria-describedby=\"caption-attachment-1977\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3758a_1200.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1977\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3758a_1200-300x180.jpg\" alt=\"Rear side of the finished circuit board showing the socket for the microcontroller, the ISP port and the infrared LEDs.\" width=\"300\" height=\"180\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3758a_1200-300x180.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3758a_1200-1024x615.jpg 1024w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3758a_1200-150x90.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3758a_1200-400x240.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3758a_1200.jpg 1175w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1977\" class=\"wp-caption-text\">Rear side of the finished circuit board showing the socket for the microcontroller, the ISP port and the infrared LEDs.<\/figcaption><\/figure>\n<h3 id=\"3d\">Designing a case<\/h3>\n<p>The final touch was of course to make a matching case for the remote &#8211; I did this using the parametric engine of <a href=\"http:\/\/www.openscad.org\/\" target=\"_blank\" rel=\"noopener\">OpenSCAD<\/a>, before slicing the file in Cura and printing it on my <a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/?p=1758\" target=\"_blank\" rel=\"noopener\">Wanhao Duplicator<\/a>.<\/p>\n<figure id=\"attachment_1993\" aria-describedby=\"caption-attachment-1993\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_scad.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1993\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_scad-300x202.png\" alt=\"3D view of the housing ot the remote control in OpenSCAD.\" width=\"300\" height=\"202\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_scad-300x202.png 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_scad-1024x688.png 1024w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_scad-150x101.png 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_scad-400x269.png 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_scad.png 1121w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1993\" class=\"wp-caption-text\">3D view of the housing ot the remote control in OpenSCAD.<\/figcaption><\/figure>\n<p>So here it is then, The outer front is still a bit blend and I am still thinking over the best way to label the individual keys.<\/p>\n<figure id=\"attachment_1978\" aria-describedby=\"caption-attachment-1978\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3760a_1200.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1978\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3760a_1200-300x270.jpg\" alt=\"Final assembly in the 3D-printed casing.\" width=\"300\" height=\"270\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3760a_1200-300x270.jpg 300w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3760a_1200-1024x921.jpg 1024w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3760a_1200-150x135.jpg 150w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3760a_1200-400x360.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3760a_1200.jpg 1217w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1978\" class=\"wp-caption-text\">Final assembly in the 3D-printed casing.<\/figcaption><\/figure>\n<figure id=\"attachment_1980\" aria-describedby=\"caption-attachment-1980\" style=\"width: 261px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3766a_1200.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1980\" src=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3766a_1200-261x300.jpg\" alt=\"The (almost) final remote control.\" width=\"261\" height=\"300\" srcset=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3766a_1200-261x300.jpg 261w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3766a_1200-890x1024.jpg 890w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3766a_1200-130x150.jpg 130w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3766a_1200-400x460.jpg 400w, https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3766a_1200.jpg 1218w\" sizes=\"auto, (max-width: 261px) 100vw, 261px\" \/><\/a><figcaption id=\"caption-attachment-1980\" class=\"wp-caption-text\">The (almost) final remote control.<\/figcaption><\/figure>\n<h3 id=\"performance\">Performance<\/h3>\n<ul>\n<li>yes, it works nicely!<\/li>\n<li>the microcontroller is kept in sleep mode, from which it wakes up with a pin change interrupt when any button is pressed<\/li>\n<li>peak current through the LEDs is about 150 mA<\/li>\n<li>standby current consumption of the remote control is about 70 \u00b5A<\/li>\n<\/ul>\n<h3 id=\"bom\">Bill of materials<\/h3>\n<ul>\n<li>1 pc Atmel ATmega328P<\/li>\n<li>2 pcs <a href=\"http:\/\/www.vishay.com\/docs\/81056\/tsus5400.pdf\" target=\"_blank\" rel=\"noopener\">TSUS5400<\/a> IR LEDs<\/li>\n<li>1 pc <a href=\"http:\/\/assets.nexperia.com\/documents\/data-sheet\/MMBT2222A.pdf\" target=\"_blank\" rel=\"noopener\">MMBT2222A<\/a> NPN transistor<\/li>\n<li>32 pcs 6 mm x 6 mm 4-pin smd push buttons<\/li>\n<li>1 pc 0805 ceramic capacitor 4.7 \u00b5F<\/li>\n<li>1 pc 0805 ceramic capacitor 100 nF<\/li>\n<li>1 pc 0805 resistor 10 ohm<\/li>\n<li>1 pc 0805 resistor 10 kohm<\/li>\n<li>3 pcs 0805 resistor about 470 ohm<\/li>\n<li>1 pc 0805 blue LED<\/li>\n<li>1 pc 0805 red LED (optional for self-learning)<\/li>\n<li>1 pc <a href=\"http:\/\/www.vishay.com\/docs\/82459\/tsop48.pdf\" target=\"_blank\" rel=\"noopener\">TSOP4838<\/a> IR receiver (optional for self learning)<\/li>\n<\/ul>\n<h3 id=\"download\">File download area<\/h3>\n<ul>\n<li>AVR GCC source files for the <em>IR sniffer<\/em> <a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170327_m328p_irsniffer.zip\">20170327_m328p_irsniffer<\/a><\/li>\n<li>AVR GCC source files <a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170410_m328p_ir_remote.zip\">20170410_m328p_ir_remote<\/a><\/li>\n<li>KiCAD files <a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170409_remote_kicad.zip\">20170409_remote_kicad<\/a><\/li>\n<li>OpenSCAD files <a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/20170410_remote_scad.zip\">20170410_remote_scad<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Idea You know the problem &#8211; with every new gadget comes a new remote control, and while there are programmable and universal remote controls out there, they will never just do what you want. For controlling my tv, my digital box and one of the wall lights in my living room I used to have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1980,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[47,46,22,11,8],"tags":[],"class_list":["post-1974","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3d-printing","category-avr","category-computers_en","category-electronics_en","category-everything_en","entry","has-media"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2017\/04\/IMGP3766a_1200.jpg","jetpack_shortlink":"https:\/\/wp.me\/p48grL-vQ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts\/1974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1974"}],"version-history":[{"count":21,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts\/1974\/revisions"}],"predecessor-version":[{"id":2342,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts\/1974\/revisions\/2342"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/media\/1980"}],"wp:attachment":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}