{"id":1433,"date":"2018-05-02T10:24:37","date_gmt":"2018-05-02T15:24:37","guid":{"rendered":"https:\/\/www.scottdanesi.com\/?p=1433"},"modified":"2020-03-17T09:42:47","modified_gmt":"2020-03-17T14:42:47","slug":"using-optos-for-your-homebrew-pinball-machine","status":"publish","type":"post","link":"https:\/\/www.scottdanesi.com\/?p=1433","title":{"rendered":"Using Optos For Your Homebrew Pinball Machine"},"content":{"rendered":"<p>Hey Everyone, it has been a long time since I did an actual pinball related blog post, so here it is!\u00a0 I have been getting a ton of questions lately on how to properly power opto transmitter LEDs and how to hook up the receivers to the SW-16 P-ROC boards.\u00a0 I am going to walk through it in enough detail that you should be able to get up running on the concepts quickly.<\/p>\n<h2>Powering Opto Transmitters<\/h2>\n<p><a href=\"https:\/\/www.pinballlife.com\/index.php?p=product&amp;id=170\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-1436\" src=\"https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/pbl_a-16908_emitter-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/pbl_a-16908_emitter-150x150.jpg 150w, https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/pbl_a-16908_emitter.jpg 250w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>Opto transmitters are nothing more than high powered infrared LEDs.\u00a0 For this guide, I am going to be referring to the Williams\/Bally style opto transmitter which can be seen here: <a href=\"https:\/\/www.pinballlife.com\/williamsbally-led-transmitter-emitter-for-opto-assemblies.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.pinballlife.com\/williamsbally-led-transmitter-emitter-for-opto-assemblies.html<\/a>.\u00a0 This LED emitter has no circuitry attached to it by default.\u00a0 These LED emitters are also used on the small PCB and bracket assemblies seen here: <a href=\"https:\/\/www.pinballlife.com\/williamsbally-led-transmitter-emitter-and-pcb-board.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.pinballlife.com\/williamsbally-led-transmitter-emitter-and-pcb-board.html<\/a>\u00a0and other various trough board assemblies.<\/p>\n<p>In order to safely power this LED, you will need to gather a few data points and make a couple small decisions.\u00a0 You will need to know the forward voltage of the LED, maximum constant current that the LED can handle, decide what input voltage you would like to supply to it (5v or 12v), and decide how much current you would like to give the LED to ensure it has enough power to transmit infrared light to reach your opto receiver.<\/p>\n<p>So here is our data:<\/p>\n<ul>\n<li><span style=\"color: #ff6600;\"><strong>Forward Voltage:<\/strong><\/span> 1.7v<\/li>\n<li><span style=\"color: #ff6600;\"><strong>Max Constant Current:<\/strong><\/span> 100ma, but I recommend you do not exceed 75ma to maximize the life of the LED.\u00a0 This will be powerful enough to transmit a pretty decent amount of distance between the emitter and receiver.<\/li>\n<li><span style=\"color: #ff6600;\"><strong>Input Source Voltage:<\/strong><\/span> 5vdc is my recommendation as it is higher than the forward voltage of the LED, and low enough that the resistor does not have to dissipate too much heat.<\/li>\n<\/ul>\n<p>These LED emitters will need a current limiting resistor in series with them as applying 5v or 12v directly to the LED will cause it to overload and fail.\u00a0 Now, to calculate this resistor value, we will need to calculate resistance and power based on the data that we have.\u00a0 Now, I could be idealistic and talk about the actual calculations, but I am going to show you how I usually calculate this using an online LED resistor calculator.\u00a0 The one that I use the most is the one below.\u00a0 I have already filled out the fields, but feel free to change some of the values up to see what happens.<\/p>\n<p><a href=\"http:\/\/led.linear1.org\/1led.wiz?VS=5;VF=1.7;ID=75\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/led.linear1.org\/1led.wiz?VS=5;VF=1.7;ID=75<\/a><\/p>\n<p><a href=\"http:\/\/led.linear1.org\/1led.wiz?VS=5;VF=1.7;ID=75\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1448\" src=\"https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/LEDEmitterResistorCalc.jpg\" alt=\"\" width=\"821\" height=\"530\" srcset=\"https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/LEDEmitterResistorCalc.jpg 821w, https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/LEDEmitterResistorCalc-300x194.jpg 300w, https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/LEDEmitterResistorCalc-768x496.jpg 768w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/a><\/p>\n<p>So as you can see above, the calculator has automatically figured out what the ohms and recommended resistor wattage should be for our emitter.\u00a0 What I also like about this calculator is that it gives a nice visual representation of how to wire the circuit and what the resistor color bands are.<\/p>\n<p><span style=\"color: #ff6600;\"><strong>Important note:<\/strong> <\/span>Please be sure to use at least the recommended resistor wattage.\u00a0 You can see above that the calculator is recommending at least a 1\/2 watt resistor.\u00a0 Too small of a resistor and it can burn up, which is bad.\u00a0 \ud83d\ude42<\/p>\n<p>That is about it for powering an opto emitter!<\/p>\n<h2>Connecting Opto Receivers to the SW-16 P-ROC Board<\/h2>\n<p><a href=\"https:\/\/www.pinballlife.com\/index.php?p=product&amp;id=171\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-1452\" src=\"https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/pbl_a-16909_receiver.jpg\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/pbl_a-16909_receiver.jpg 250w, https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/pbl_a-16909_receiver-150x150.jpg 150w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a>Now for this section, I am going to be talking about the Williams\/Bally style opto receivers and how they hook up to the SW-16 P-ROC switch boards.\u00a0 These are the black colored opto receivers that can be fond here: <a href=\"https:\/\/www.pinballlife.com\/williamsbally-led-receiver-for-opto-assemblies.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.pinballlife.com\/williamsbally-led-receiver-for-opto-assemblies.html<\/a>.\u00a0 These, just like the emitters, are also used in small PCB assemblies, and trough opto boards as well.<\/p>\n<p>To connect these optos into the SW-16 P-ROC board, you will simply need to wire it directly to the inputs of your switch board.\u00a0 It is really that easy.\u00a0 It will act just like a standard switch as long as it is connected in the correct orientation.\u00a0 Below, you will see an image from the P-ROC documentation.\u00a0 The cathode\/ground side of this diode is the side with the flat indentation on the black epoxy base of the opto.\u00a0 Please also keep in mind that opto receivers are normally closed switches and when it detects the IR beam from the emitter, it will open.\u00a0 This is opposite of a normal switch.\u00a0 When a ball breaks the opto beam it will go from a closed state to an open state.<\/p>\n<p>The full documentation can be found here:\u00a0<a href=\"https:\/\/www.multimorphic.com\/content\/uploads\/2017\/07\/SW-16-2_LLD_v2-0.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.multimorphic.com\/content\/uploads\/2017\/07\/SW-16-2_LLD_v2-0.pdf<\/a><\/p>\n<p><a href=\"https:\/\/www.multimorphic.com\/content\/uploads\/2017\/07\/SW-16-2_LLD_v2-0.pdf\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1454\" src=\"https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/LEDReceiverHookups.jpg\" alt=\"\" width=\"595\" height=\"728\" srcset=\"https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/LEDReceiverHookups.jpg 595w, https:\/\/www.scottdanesi.com\/wp-content\/uploads\/2018\/05\/LEDReceiverHookups-245x300.jpg 245w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/a><\/p>\n<p>I hope this all makes sense and helps you get your project up and running!\u00a0 Please also keep in mind that some Stern and certain Williams trough boards have resistors built into them on the emitter side.\u00a0 The guide above will allow you to connect to boards and directly to emitters that have no circuit logic.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey Everyone, it has been a long time since I did an actual pinball related blog post, so here it is!\u00a0 I have been getting a ton of questions lately on how to properly power opto transmitter LEDs and how to hook up the receivers to the SW-16 P-ROC boards.\u00a0 I am going to walk [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,12,8],"tags":[],"class_list":["post-1433","post","type-post","status-publish","format-standard","hentry","category-arcade","category-hardware","category-how-to"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.scottdanesi.com\/index.php?rest_route=\/wp\/v2\/posts\/1433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scottdanesi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scottdanesi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scottdanesi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scottdanesi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1433"}],"version-history":[{"count":16,"href":"https:\/\/www.scottdanesi.com\/index.php?rest_route=\/wp\/v2\/posts\/1433\/revisions"}],"predecessor-version":[{"id":3256,"href":"https:\/\/www.scottdanesi.com\/index.php?rest_route=\/wp\/v2\/posts\/1433\/revisions\/3256"}],"wp:attachment":[{"href":"https:\/\/www.scottdanesi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scottdanesi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scottdanesi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}