{"id":3838,"date":"2016-12-16T17:30:10","date_gmt":"2016-12-17T01:30:10","guid":{"rendered":""},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T07:00:00","slug":"3838","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/3838","title":{"rendered":"How do I write an Arduino program (sketch) to read the Vernier Encoder System?"},"content":{"rendered":"<p>The signal from the <a href=\"\/product\/motion-encoder-cart-and-receiver\/\">Motion Encoder Cart and Receiver<\/a> (<nobr>DTS-MEC<\/nobr>) is exactly the same as that from our <a href=\"\/product\/rotary-motion-sensor\/\">Rotary Motion Sensor<\/a> (<nobr>RMV-BTD<\/nobr>). As a result, you can use the sample Arduino sketch VernierRotary. This sketch is included in our collection of Arduino sketches and is discussed at:<br \/>\n<a href=\"https:\/\/www.vernier.com\/engineering\/arduino\/digital-sensors\/rotary-motion\/\">https:\/\/www.vernier.com\/engineering\/arduino\/digital-sensors\/rotary-motion\/<\/a><\/p>\n<p>Basically, the program looks for pulses on pins 1 and 2 of the BTD connector. One counts up and the other counts down.<\/p>","protected":false},"excerpt":{"rendered":"<p>The signal from the is exactly the same as that from our . As a result, you can use the sample Arduino sketch VernierRotary. This&#8230;<\/p>\n","protected":false},"author":11015,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[5461,3084,3042,5457],"class_list":["post-3838","post","type-post","status-publish","format-standard","hentry","tag-ard-red","tag-arduino","tag-dts-ec","tag-encoder"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/3838","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\/11015"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=3838"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/3838\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=3838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=3838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=3838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}