{"id":153,"date":"2025-10-19T12:00:09","date_gmt":"2025-10-19T12:00:09","guid":{"rendered":"https:\/\/togo-lab.io\/?p=153"},"modified":"2025-10-19T14:56:31","modified_gmt":"2025-10-19T14:56:31","slug":"pc817-optocoupler-tester-lazy-sunday-afternoon-project","status":"publish","type":"post","link":"https:\/\/togo-lab.io\/?p=153","title":{"rendered":"PC817 Optocoupler Tester \u2013 Lazy Sunday Afternoon Project"},"content":{"rendered":"<p>For some upcoming projects, I\u2019ll use the <a href=\"https:\/\/www.farnell.com\/datasheets\/73758.pdf\"><strong>PC817 optocoupler family<\/strong><\/a>. But sadly, you don\u2019t always get what you think you\u2019ve bought. So how can you simply check if they work as described in the datasheet? I wanted a quick way to verify parts before building them in.  <\/p>\n<p>This small tester consists of two independent circuits, runs on <strong>5 V<\/strong>, and does two simple things:<\/p>\n<ol>\n<li><strong>Quick Test<\/strong> \u2013 Push the switch, and if the LED lights, the optocoupler basically works.  <\/li>\n<\/ol>\n<figure id=\"attachment_mmd_149\" class=\"wp-block-image aligncenter\"><a href=\"\/wp-content\/uploads\/2025\/10\/OptoCoupler_CheckCircuit_QuitckManual.png\" data-lightbox=\"mygallery\"><img decoding=\"async\" width=\"553\" height=\"514\" src=\"https:\/\/togo-lab.io\/wp-content\/uploads\/2025\/10\/OptoCoupler_CheckCircuit_QuitckManual.png\" class=\"attachment-full size-full\" alt=\"OptoCoupler_CheckCircuit_QuickManual\" loading=\"lazy\" align=\"center\" \/><\/a><\/figure>\n<ol start=\"2\">\n<li><strong>Frequency Test<\/strong> \u2013 Based on the circuit from the datasheet. Input impedance is 50 \u03a9, and the output can be pulled up with <strong>100 \u03a9<\/strong>, <strong>1 k\u03a9<\/strong>, or <strong>10 k\u03a9<\/strong> to see how the device behaves at different frequencies.<\/li>\n<\/ol>\n<figure id=\"attachment_mmd_148\" class=\"wp-block-image aligncenter\"><a href=\"\/wp-content\/uploads\/2025\/10\/OptoCoupler_CheckCircuit_ParameterCheck.png\" data-lightbox=\"mygallery\"><img decoding=\"async\" width=\"916\" height=\"607\" src=\"https:\/\/togo-lab.io\/wp-content\/uploads\/2025\/10\/OptoCoupler_CheckCircuit_ParameterCheck.png\" class=\"attachment-full size-full\" alt=\"OptoCoupler_CheckCircuit_ParameterCheck\" loading=\"lazy\" align=\"center\" \/><\/a><\/figure>\n<p>Simple stripboard:\n<figure id=\"attachment_mmd_158\" class=\"wp-block-image aligncenter\"><a href=\"\/wp-content\/uploads\/2025\/10\/0002-PC817-Series-PhotoCoupler-Tester_SB.jpg\" data-lightbox=\"mygallery\"><img decoding=\"async\" width=\"650\" height=\"591\" src=\"https:\/\/togo-lab.io\/wp-content\/uploads\/2025\/10\/0002-PC817-Series-PhotoCoupler-Tester_SB.jpg\" class=\"attachment-full size-full\" alt=\"0002-PC817-Series-PhotoCoupler-Tester_SB\" loading=\"lazy\" align=\"center\" \/><\/a><\/figure>\n<p>That\u2019s it.<br \/>\nIt\u2019s not meant to be fancy\u2014just a <strong>tiny 2-hour project<\/strong> to get reliable data and a feel for how different PC817 batches respond.<br \/>\nThe project data will be on <a href=\"https:\/\/gitea.togo-lab.io\/tgohle\/0002-PC817-Series-PhotoCoupler-Tester\">Gitea \u2013 ToGo-Lab, Project ID 0002<\/a>,<\/p>\n<p>As working proof, some simple scope screenshots:<\/p>\n<div id=\"attachment_mmd_151\" class=\"grid lightbox-set\" data-masonry=\"{ &quot;itemSelector&quot;: &quot;.grid-item&quot;, &quot;columnWidth&quot;: &quot;.grid-sizer&quot;, &quot;percentPosition&quot;: true }\">\n<div class=\"grid-sizer\"><\/div>\n<div class=\"grid-item\"><figure id=\"attachment_mmd_151\" class=\"wp-block-image aligncenter\"><a data-lightbox=\"myset0_1\" href=\"\/wp-content\/uploads\/2025\/10\/Optocoupler_final.png\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/togo-lab.io\/wp-content\/uploads\/2025\/10\/Optocoupler_final.png\" class=\"attachment-full size-full\" alt=\"Optocoupler_final\" loading=\"lazy\" align=\"center\" \/><\/a><\/figure><\/div>\n<div class=\"grid-item\"><figure id=\"attachment_mmd_150\" class=\"wp-block-image aligncenter\"><a data-lightbox=\"myset0_1\" href=\"\/wp-content\/uploads\/2025\/10\/Optocoupler_final_Test.png\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/togo-lab.io\/wp-content\/uploads\/2025\/10\/Optocoupler_final_Test.png\" class=\"attachment-full size-full\" alt=\"Optocoupler_final_Test\" loading=\"lazy\" align=\"center\" \/><\/a><\/figure><\/div>\n<div class=\"grid-item\"><figure id=\"attachment_mmd_152\" class=\"wp-block-image aligncenter\"><a data-lightbox=\"myset0_1\" href=\"\/wp-content\/uploads\/2025\/10\/OptoCoupler_Test_Measurement.png\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"653\" src=\"https:\/\/togo-lab.io\/wp-content\/uploads\/2025\/10\/OptoCoupler_Test_Measurement.png\" class=\"attachment-full size-full\" alt=\"OptoCoupler_Test_Measurement\" loading=\"lazy\" align=\"center\" \/><\/a><\/figure><\/div>\n<\/div>\n<p>If you\u2019re into optocouplers or small test circuits, feel free to build along or suggest tweaks.<br \/>\nAlways happy to hear what others find useful in their own setups. \ud83d\ude42<\/p>","protected":false},"excerpt":{"rendered":"<p>For some upcoming projects, I\u2019ll use the PC817 optocoupler family. But sadly, you don\u2019t always get what you think you\u2019ve bought. So how can you simply check if they work as described in the datasheet? I wanted a quick way to verify parts before building them in. This small tester consists of two independent circuits, &hellip; <a href=\"https:\/\/togo-lab.io\/?p=153\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PC817 Optocoupler Tester \u2013 Lazy Sunday Afternoon Project&#8221;<\/span><\/a><\/p>","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6,9,19,29,28,13,23],"post_folder":[],"class_list":["post-153","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-diy","tag-hw","tag-lab","tag-optocoupler","tag-pc817","tag-test","tag-workbench"],"_links":{"self":[{"href":"https:\/\/togo-lab.io\/index.php?rest_route=\/wp\/v2\/posts\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/togo-lab.io\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/togo-lab.io\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/togo-lab.io\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/togo-lab.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=153"}],"version-history":[{"count":5,"href":"https:\/\/togo-lab.io\/index.php?rest_route=\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/togo-lab.io\/index.php?rest_route=\/wp\/v2\/posts\/153\/revisions\/159"}],"wp:attachment":[{"href":"https:\/\/togo-lab.io\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/togo-lab.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/togo-lab.io\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=153"},{"taxonomy":"post_folder","embeddable":true,"href":"https:\/\/togo-lab.io\/index.php?rest_route=%2Fwp%2Fv2%2Fpost_folder&post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}