{"id":1405,"date":"2016-09-12T05:45:11","date_gmt":"2016-09-12T11:45:11","guid":{"rendered":"http:\/\/play.fallows.ca\/wp\/?p=1405"},"modified":"2017-02-21T13:14:37","modified_gmt":"2017-02-21T20:14:37","slug":"serial-loop-control-running","status":"publish","type":"post","link":"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/","title":{"rendered":"Serial Loop Control Running"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/play.fallows.ca\/wp\/wp-content\/uploads\/sites\/4\/2016\/09\/serial-loop-control.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"border: 0px currentcolor\" title=\"serial loop control\" src=\"https:\/\/i0.wp.com\/play.fallows.ca\/wp\/wp-content\/uploads\/sites\/4\/2016\/09\/serial-loop-control_thumb.jpg?resize=558%2C558\" alt=\"serial loop control\" width=\"558\" height=\"558\" border=\"0\" \/><\/a><\/p>\n<p>It\u2019s been a busy few days, but I did manage to get the serial loop control running.<\/p>\n<p><!--more--><\/p>\n<p>As shown in the photo above right, my magnetic loop motor drive and gears are hooked up to the computer though a serial communications line. Most recent computers do not have an RS-232 (COM Port) connector. So, you use a USB-to-Serial adapter, like the CP2102 breakout board. This creates an emulated serial port, in my case COM7, which can be used to remote control a stepper motor.<\/p>\n<p>The tiny chip at the left of the breadboard is the <a href=\"https:\/\/www.arduino.cc\/en\/Main\/ArduinoBoardProMini\" target=\"_blank\" rel=\"nofollow\">Arduino Pro Mini<\/a>, a tiny version of the Arduino. It connects to the motor controller (top) and an end-stop switch on the controller. I 3D printed the orange lever to press against the end stop switch at the minimum counter-clockwise direction. One side of the switch is connected to an \u201cinterrupt pin\u201d on the Arduino. When the switch changes (opens or closes) it automatically signals the Arduino.<\/p>\n<p>Based on the gear ratios in the stepper motor and on the plastic (yellow) worm gear, it takes 50,900 motor steps to turn the capacitor through its full range. So, this provides very fine tuning.<\/p>\n<h2>Serial Loop Control Basic Commands<\/h2>\n<p>My first version of the control software has some basic commands. A \u201c+\u201d turns the loop control on. A \u201c-\u201d turns loop control off. The letter \u201cG\u201d commands the motor to move to an absolute position. In the example above left, I sent \u201cG=5000\u201d which tells the Arduino to move the motor to position 5000, about 10% of its travel distance.<\/p>\n<p>Sending the letters \u201cU\u201d or \u201cD\u201d tells the motor to move a relative number of steps. In the example above, the \u201cD=300\u201d command told the system to move down 300 steps from 5000 to 4700.<\/p>\n<p>While the motor is moving, the system sends back position information once per second until its target is reached, then says \u201cReady\u201d for the next command.<\/p>\n<p>At first connect, the serial loop control automatically homes itself, i.e. finds position \u201c0\u201d. This is done by turning the motor counter-clockwise until the end stop switch closes, and then moving clockwise a short distance until the switch opens again. This happens very quickly and assures that the system always starts in the same position.<\/p>\n<p>The next step is to replace the wired serial connection with a wireless connection to provide real remote control of the magnetic loop. I have written the control software so that it does not care if it is being controlled through the serial port or over WIFI \u2013 it\u2019s all serial data however it moves around.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It\u2019s been a busy few days, but I did manage to get the serial loop control running.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[11],"tags":[67,202,192],"series":[263],"class_list":["post-1405","post","type-post","status-publish","format-standard","hentry","category-electronics-projects","tag-antennas","tag-magloop","tag-stepper-motor","series-magnetic-loop-antenna"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Serial Loop Control Running - Making It Up<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Serial Loop Control Running - Making It Up\" \/>\n<meta property=\"og:description\" content=\"It\u2019s been a busy few days, but I did manage to get the serial loop control running.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/\" \/>\n<meta property=\"og:site_name\" content=\"Making It Up\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/john.fallows.5\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-12T11:45:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-02-21T20:14:37+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/play.fallows.ca\/wp\/wp-content\/uploads\/sites\/4\/2016\/09\/serial-loop-control_thumb.jpg\" \/>\n<meta name=\"author\" content=\"John VE6EY\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@VE6EY\" \/>\n<meta name=\"twitter:site\" content=\"@VE6EY\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John VE6EY\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/\",\"url\":\"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/\",\"name\":\"Serial Loop Control Running - Making It Up\",\"isPartOf\":{\"@id\":\"https:\/\/play.fallows.ca\/wp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/play.fallows.ca\/wp\/wp-content\/uploads\/sites\/4\/2016\/09\/serial-loop-control_thumb.jpg\",\"datePublished\":\"2016-09-12T11:45:11+00:00\",\"dateModified\":\"2017-02-21T20:14:37+00:00\",\"author\":{\"@id\":\"https:\/\/play.fallows.ca\/wp\/#\/schema\/person\/9750e0ab227030255d9806757525f945\"},\"breadcrumb\":{\"@id\":\"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/play.fallows.ca\/wp\/wp-content\/uploads\/sites\/4\/2016\/09\/serial-loop-control_thumb.jpg?fit=558%2C558&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/play.fallows.ca\/wp\/wp-content\/uploads\/sites\/4\/2016\/09\/serial-loop-control_thumb.jpg?fit=558%2C558&ssl=1\",\"width\":558,\"height\":558},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/play.fallows.ca\/wp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Projects\",\"item\":\"https:\/\/play.fallows.ca\/wp\/category\/projects\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Electronics Projects\",\"item\":\"https:\/\/play.fallows.ca\/wp\/category\/projects\/electronics-projects\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Serial Loop Control Running\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/play.fallows.ca\/wp\/#website\",\"url\":\"https:\/\/play.fallows.ca\/wp\/\",\"name\":\"Making It Up\",\"description\":\"Enjoying Radio and Maker Hobbies\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/play.fallows.ca\/wp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/play.fallows.ca\/wp\/#\/schema\/person\/9750e0ab227030255d9806757525f945\",\"name\":\"John VE6EY\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/play.fallows.ca\/wp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e4048edfe09efff51033c48b4fb951e8ac0a4dc84a25c96b25e5ae9f5b7069a5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e4048edfe09efff51033c48b4fb951e8ac0a4dc84a25c96b25e5ae9f5b7069a5?s=96&d=mm&r=g\",\"caption\":\"John VE6EY\"},\"sameAs\":[\"https:\/\/x.com\/VE6EY\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Serial Loop Control Running - Making It Up","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/","og_locale":"en_US","og_type":"article","og_title":"Serial Loop Control Running - Making It Up","og_description":"It\u2019s been a busy few days, but I did manage to get the serial loop control running.","og_url":"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/","og_site_name":"Making It Up","article_publisher":"https:\/\/www.facebook.com\/john.fallows.5","article_published_time":"2016-09-12T11:45:11+00:00","article_modified_time":"2017-02-21T20:14:37+00:00","og_image":[{"url":"http:\/\/play.fallows.ca\/wp\/wp-content\/uploads\/sites\/4\/2016\/09\/serial-loop-control_thumb.jpg","type":"","width":"","height":""}],"author":"John VE6EY","twitter_card":"summary_large_image","twitter_creator":"@VE6EY","twitter_site":"@VE6EY","twitter_misc":{"Written by":"John VE6EY","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/","url":"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/","name":"Serial Loop Control Running - Making It Up","isPartOf":{"@id":"https:\/\/play.fallows.ca\/wp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/#primaryimage"},"image":{"@id":"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/#primaryimage"},"thumbnailUrl":"http:\/\/play.fallows.ca\/wp\/wp-content\/uploads\/sites\/4\/2016\/09\/serial-loop-control_thumb.jpg","datePublished":"2016-09-12T11:45:11+00:00","dateModified":"2017-02-21T20:14:37+00:00","author":{"@id":"https:\/\/play.fallows.ca\/wp\/#\/schema\/person\/9750e0ab227030255d9806757525f945"},"breadcrumb":{"@id":"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/#primaryimage","url":"https:\/\/i0.wp.com\/play.fallows.ca\/wp\/wp-content\/uploads\/sites\/4\/2016\/09\/serial-loop-control_thumb.jpg?fit=558%2C558&ssl=1","contentUrl":"https:\/\/i0.wp.com\/play.fallows.ca\/wp\/wp-content\/uploads\/sites\/4\/2016\/09\/serial-loop-control_thumb.jpg?fit=558%2C558&ssl=1","width":558,"height":558},{"@type":"BreadcrumbList","@id":"https:\/\/play.fallows.ca\/wp\/projects\/electronics-projects\/serial-loop-control-running\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/play.fallows.ca\/wp\/"},{"@type":"ListItem","position":2,"name":"Projects","item":"https:\/\/play.fallows.ca\/wp\/category\/projects\/"},{"@type":"ListItem","position":3,"name":"Electronics Projects","item":"https:\/\/play.fallows.ca\/wp\/category\/projects\/electronics-projects\/"},{"@type":"ListItem","position":4,"name":"Serial Loop Control Running"}]},{"@type":"WebSite","@id":"https:\/\/play.fallows.ca\/wp\/#website","url":"https:\/\/play.fallows.ca\/wp\/","name":"Making It Up","description":"Enjoying Radio and Maker Hobbies","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/play.fallows.ca\/wp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/play.fallows.ca\/wp\/#\/schema\/person\/9750e0ab227030255d9806757525f945","name":"John VE6EY","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/play.fallows.ca\/wp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e4048edfe09efff51033c48b4fb951e8ac0a4dc84a25c96b25e5ae9f5b7069a5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e4048edfe09efff51033c48b4fb951e8ac0a4dc84a25c96b25e5ae9f5b7069a5?s=96&d=mm&r=g","caption":"John VE6EY"},"sameAs":["https:\/\/x.com\/VE6EY"]}]}},"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6wNv5-mF","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/posts\/1405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/comments?post=1405"}],"version-history":[{"count":2,"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/posts\/1405\/revisions"}],"predecessor-version":[{"id":1408,"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/posts\/1405\/revisions\/1408"}],"wp:attachment":[{"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/media?parent=1405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/categories?post=1405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/tags?post=1405"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/play.fallows.ca\/wp\/wp-json\/wp\/v2\/series?post=1405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}