{"id":3495,"date":"2017-02-24T17:44:15","date_gmt":"2017-02-25T01:44:15","guid":{"rendered":""},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T07:00:00","slug":"3495","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/3495","title":{"rendered":"How can I control AC devices with the Digital Control Unit?"},"content":{"rendered":"<p>The <a href=\"\/product\/digital-control-unit\/\">Digital Control Unit<\/a> (<nobr>DCU-BTD<\/nobr>) is a great tool for integrating Vernier sensors with simple DC output devices, like buzzers, LEDs, and fans. However, the DCU cannot operate AC devices, like the kind you would plug into a wall outlet, directly.<\/p>\n<p>The easiest way we have found to control an AC device with the DCU is using a PowerSwitch Tail II. This power cord can switch on and off 120 V AC devices with a simple control voltage, like the output of a DCU, an Arduino, or other microcontroller. Connect a DCU line to its &#8220;+in&#8221; input and the DCU ground to its &#8220;-in&#8221; input, and it will switch &#8220;on&#8221; whenever the DCU line is activated. You can control lights, space heaters, toasters, or any device you would plug into a wall outlet. The PowerSwitch Tail II can be purchased from a variety of online vendors, including <a href=\"http:\/\/www.amazon.com\/POWERSWITCHTAIL-COM-PowerSwitch-Tail-II\/dp\/B00B888VHM\">Amazon<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"\/files\/til\/images\/3495-hardware.jpg\" class=\"border\" alt=\"3495-hardware.jpg\" \/><\/p>\n<p><i>DCU connected to the PowerSwitch Tail II. When DCU line D1 is activated, the light bulb will turn on.<\/i><\/p>\n<p>If you are comfortable with basic electronics, you can skip the DCU and use the PowerSwitch Tail II exclusively. Do the following:<\/p>\n<p>1) Using a <a href=\"\/product\/digital-btd-cable\/\">Digital BTD Cable<\/a> (<nobr>CB-BTD<\/nobr>) (or a <a href=\"\/product\/digital-sensor-cable\/\">Digital Sensor Cable<\/a> (<nobr>MDC-BTD<\/nobr>) cable cut in half), fan out the individual wires. Determine which wire connects to each BTD pin. The pinout for the BTD cable is at www.vernier.com\/support\/sensor-pinouts\/<br \/>\n2) Connect Pin 1 of a BTD cable to the &#8220;+in&#8221; input and Pin 5 to the &#8220;-in&#8221;. Plug the BTD cable into the DIG\/SONIC1 channel of a Vernier interface.<br \/>\n3) In Logger <i>Pro<\/i> in the Experiment\/Sensor Setup window, choose the &#8220;Digital Control Unit&#8221; in the drop-down menu for DIG\/SONIC1 (even though you are not using the DCU). <\/p>\n<p>Now you can control the PowerSwitch Tail II from Logger <i>Pro<\/i>, just as if you had it connected to the first digital output line (D1) of the DCU.<\/p>","protected":false},"excerpt":{"rendered":"<p>The is a great tool for integrating Vernier sensors with simple DC output devices, like buzzers, LEDs, and fans. However, the DCU cannot operate AC&#8230;<\/p>\n","protected":false},"author":9585,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[3062,509,798,5926],"class_list":["post-3495","post","type-post","status-publish","format-standard","hentry","tag-ac-power","tag-dcu-btd","tag-diy","tag-electronics"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/3495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/users\/9585"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=3495"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/3495\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=3495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=3495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=3495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}