{"id":218,"date":"2022-04-18T17:27:19","date_gmt":"2022-04-18T17:27:19","guid":{"rendered":"https:\/\/scholars.spu.edu\/2ndwind\/?page_id=218"},"modified":"2022-05-05T21:20:33","modified_gmt":"2022-05-05T21:20:33","slug":"computer-and-electrical-aspects","status":"publish","type":"page","link":"https:\/\/scholars.spu.edu\/2ndwind\/computer-and-electrical-aspects\/","title":{"rendered":"Computer and Electrical Aspects"},"content":{"rendered":"\n<p class=\"has-text-align-center has-white-color has-text-color has-background\" style=\"background-color:#035c8f;font-size:17px\">PCB Design<\/p>\n\n\n\n<p style=\"font-size:15px\">In terms of design for the PCB, the main component that will be soldered on is the QT Py RP2040 module.&nbsp; This will be positioned in the top left corner of the PCB with the switch and battery system sitting closely to the right.&nbsp; The batteries make sense at this position on the PCB since it is powering the QT Py RP2040 by the 5 volt pin, which is at the top right of the microcontroller.&nbsp; The ports for the laser emitter and receiver will sit towards the outer ends of the bottom portion of the PCB.&nbsp; These must be on the same general plan in order to let the laser sit perfectly perpendicular to the height of the diaphragm.&nbsp; We will also design the four corners of the PCB to have screw holds which also act as ground.&nbsp; This will allow us to ground the different components at each corner rather than on one bus line.&nbsp; This will also allow the PCB to be screwed into the electrical housing.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/scholars.spu.edu\/2ndwind\/wp-content\/uploads\/sites\/65\/2022\/04\/image-14.png\" alt=\"\" class=\"wp-image-232\" width=\"749\" height=\"565\" srcset=\"https:\/\/scholars.spu.edu\/2ndwind\/wp-content\/uploads\/sites\/65\/2022\/04\/image-14.png 643w, https:\/\/scholars.spu.edu\/2ndwind\/wp-content\/uploads\/sites\/65\/2022\/04\/image-14-300x226.png 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center has-white-color has-text-color has-background\" style=\"background-color:#035c8f;font-size:17px\">Laser Circuit and Battery Prototype<\/p>\n\n\n\n<p style=\"font-size:15px\">While we presented a couple of battery options in DR 2.1, they were ultimately too big for the desired size of our system and were unable to be easily interchangeable by the user within the housing.&nbsp; Based on the updated power consumption calculations, we needed a battery that could supply around 0.65 Watt hours at the very least.&nbsp; In order to accomplish this while accommodating our customers desire for size-prioritized system, we decided to utilize two CR2032 lithium watch batteries.&nbsp; The two 3 volt watch batteries in series with a capacity of around 235 mAh can provide a capacity of 1.41 Watt hours.&nbsp; This is significantly within the power consumption range we calculated prior.&nbsp; While the decay curve of the battery usually needs to be taken into consideration, our batteries will not be utilized for 600 hours which is where the exponential decrease in voltage begins.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"204\" src=\"https:\/\/scholars.spu.edu\/2ndwind\/wp-content\/uploads\/sites\/65\/2022\/04\/Laser-circ.png\" alt=\"\" class=\"wp-image-241\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-center has-white-color has-text-color has-background\" style=\"background-color:#035c8f;font-size:17px\">Code<\/p>\n\n\n\n<p>Since our laser sensor system only utilizes a laser emitter and a light dependent resistor, we chose to use Micro Python.\u202f Micro Python, our programming language of choice through Python interpreter (pip-installable), can be installed via operating-system package manager directly on the Raspberry Pi Pico. Our analysis produced that Thonny IDE is a great IDE to program the Pico using micropython. Because of its performance, Thonny IDE has been included by default in the Raspberry Pi\u2019s official operating system distribution. We concluded Thonny IDE far exceeds what we require to write an optimal code for the Pico.\u202f&nbsp;<\/p>\n\n\n\n<p>Through analysis of the APDS-9960 and codes that incorporate it by the sensor\u2019s manufacturer Adafruit, we found that the necessary programming language needed is Circuit Python, an open-source derivative of Micro Python.\u202f This language interpreter and the library holding different Adafruit files essential for the sensor integration with the Pico can be installed via the Adafruit website.\u202f This package also had to be installed and changed in Thonny.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PCB Design In terms of design for the PCB, the main component that will be soldered on is the QT Py RP2040 module.&nbsp; This will be positioned in the top left corner of the PCB with the switch and battery system sitting closely to the right.&nbsp; The batteries make sense at this position on the PCB since it is powering<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/scholars.spu.edu\/2ndwind\/computer-and-electrical-aspects\/\">Read More<\/a><\/p>\n","protected":false},"author":145,"featured_media":0,"parent":0,"menu_order":4,"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-218","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/scholars.spu.edu\/2ndwind\/wp-json\/wp\/v2\/pages\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scholars.spu.edu\/2ndwind\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/scholars.spu.edu\/2ndwind\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/scholars.spu.edu\/2ndwind\/wp-json\/wp\/v2\/users\/145"}],"replies":[{"embeddable":true,"href":"https:\/\/scholars.spu.edu\/2ndwind\/wp-json\/wp\/v2\/comments?post=218"}],"version-history":[{"count":13,"href":"https:\/\/scholars.spu.edu\/2ndwind\/wp-json\/wp\/v2\/pages\/218\/revisions"}],"predecessor-version":[{"id":303,"href":"https:\/\/scholars.spu.edu\/2ndwind\/wp-json\/wp\/v2\/pages\/218\/revisions\/303"}],"wp:attachment":[{"href":"https:\/\/scholars.spu.edu\/2ndwind\/wp-json\/wp\/v2\/media?parent=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}