Following Thingy arduino code<\/a><\/p>\nClick the link above to download the arduino code. The code controls two motors by varying speeds (mapping the speed of the motors from high to low based on the compass reading’s deviation from 0 degrees), attempting to always position the compass reading at 0 degrees.<\/p>\n"},"caption":{"rendered":"
arduino code that controls two motors based on compass reading<\/p>\n"},"alt_text":"","media_type":"file","mime_type":"application\/rtf","media_details":{},"post":304,"source_url":"http:\/\/www.mariarabinovich.com\/blog\/wp-content\/uploads\/2010\/12\/CompasCode.rtf","_links":{"self":[{"href":"http:\/\/www.mariarabinovich.com\/blog\/wp-json\/wp\/v2\/media\/640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mariarabinovich.com\/blog\/wp-json\/wp\/v2\/media"}],"about":[{"href":"http:\/\/www.mariarabinovich.com\/blog\/wp-json\/wp\/v2\/types\/attachment"}],"author":[{"embeddable":true,"href":"http:\/\/www.mariarabinovich.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mariarabinovich.com\/blog\/wp-json\/wp\/v2\/comments?post=640"}],"wp:attached-to":[{"embeddable":true,"post_type":"post","id":304,"href":"http:\/\/www.mariarabinovich.com\/blog\/wp-json\/wp\/v2\/posts\/304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}