{"id":24,"date":"2022-04-16T19:42:59","date_gmt":"2022-04-16T19:42:59","guid":{"rendered":"https:\/\/scholars.spu.edu\/flyingsquirrel\/?page_id=24"},"modified":"2022-04-16T22:34:40","modified_gmt":"2022-04-16T22:34:40","slug":"software","status":"publish","type":"page","link":"https:\/\/scholars.spu.edu\/flyingsquirrel\/software\/","title":{"rendered":"Software"},"content":{"rendered":"\n<h3 class=\"alignwide wp-block-heading\">Software Flow Chart<\/h3>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-content\/uploads\/sites\/64\/2022\/04\/image-9.png\" alt=\"\" class=\"wp-image-103\" width=\"666\" height=\"369\" srcset=\"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-content\/uploads\/sites\/64\/2022\/04\/image-9.png 770w, https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-content\/uploads\/sites\/64\/2022\/04\/image-9-300x166.png 300w, https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-content\/uploads\/sites\/64\/2022\/04\/image-9-768x426.png 768w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"alignwide wp-block-heading\">Thermal Camera Code<\/h3>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"261\" src=\"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-content\/uploads\/sites\/64\/2022\/04\/image-8.png\" alt=\"\" class=\"wp-image-97 size-full\" srcset=\"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-content\/uploads\/sites\/64\/2022\/04\/image-8.png 935w, https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-content\/uploads\/sites\/64\/2022\/04\/image-8-300x84.png 300w, https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-content\/uploads\/sites\/64\/2022\/04\/image-8-768x214.png 768w\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">The code for the thermal camera to work with the raspberry pi was adapted from the open source library, libseek-thermal.<\/p>\n<\/div><\/div>\n\n\n\n<h3 class=\"alignwide wp-block-heading\">Door Motor Arduino Code<\/h3>\n\n\n\n<div class=\"wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<pre class=\"wp-block-code\"><code>\/\/ Include the Arduino Stepper Library\n#include &lt;Stepper.h&gt;\n\n\/\/ Number of steps per output rotation\nconst int stepsPerRevolution = 200;\nconst int interruptPin = 21;\nbool closed = true;\nbool pressed = false;\n\n\/\/ Create Instance of Stepper library\nStepper myStepper(stepsPerRevolution, 2, 3, 5, 4);\n\n\nvoid setup()\n{\n  \/\/ set the speed at 60 rpm:\n  myStepper.setSpeed(60);\n  \/\/ initialize the serial port:\n  Serial.begin(9600);\n  attachInterrupt(digitalPinToInterrupt(interruptPin), spinMotor, RISING);\n}\n\nvoid loop() \n{\n  if (closed &amp;&amp; pressed){\n     myStepper.step(stepsPerRevolution * 3);\n     delay(500);\n     pressed = false;\n  } \n  if (!(closed) &amp;&amp; pressed){\n    myStepper.step(-stepsPerRevolution * 3);\n    delay(500);\n    pressed = false;\n  }\n}\n\nvoid spinMotor(){\n  pressed = true;\n  if (closed){\n    closed = false;\n  } else {\n    closed = true;\n  }\n}<\/code><\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Software Flow Chart Thermal Camera Code The code for the thermal camera to work with the raspberry pi was adapted from the open source library, libseek-thermal. Door Motor Arduino Code<\/p>\n","protected":false},"author":140,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"class_list":["post-24","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-json\/wp\/v2\/pages\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-json\/wp\/v2\/users\/140"}],"replies":[{"embeddable":true,"href":"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":6,"href":"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-json\/wp\/v2\/pages\/24\/revisions"}],"predecessor-version":[{"id":104,"href":"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-json\/wp\/v2\/pages\/24\/revisions\/104"}],"wp:attachment":[{"href":"https:\/\/scholars.spu.edu\/flyingsquirrel\/wp-json\/wp\/v2\/media?parent=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}