{"id":24,"date":"2019-11-19T22:27:56","date_gmt":"2019-11-19T22:27:56","guid":{"rendered":"http:\/\/engprojects.tcnj.edu\/apis\/?page_id=24"},"modified":"2019-11-20T14:13:17","modified_gmt":"2019-11-20T14:13:17","slug":"embedded-system","status":"publish","type":"page","link":"https:\/\/engprojects.tcnj.edu\/apis\/embedded-system\/","title":{"rendered":"Embedded System"},"content":{"rendered":"\n<p>The embedded system to be used is a set of sensors primarily driven by a FiPy, made by Pycom. The FiPy is a micro-python based micro-controller that has various embedded capabilities such as i2c, SPI, UART, ADCs, DACs, etc. It sits in the frame of an ESP32 board with various attachments that grant it the ability to use WiFi, Bluetooth, LoRa, Sigfox, LTE CAT-M1, and NBIOT. Five different signal types, hence the name &#8220;FiPy&#8221;. The datasheet for the FiPy can be found <a href=\"https:\/\/pycom.io\/wp-content\/uploads\/2018\/08\/fipySpecsheetAugust2017n2-1.pdf\">here<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"684\" src=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-1-1024x684.png\" alt=\"\" class=\"wp-image-38\" srcset=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-1-1024x684.png 1024w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-1-300x200.png 300w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-1-768x513.png 768w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-1.png 1122w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Pycom Fipy.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-1024x495.png\" alt=\"\" class=\"wp-image-37\" srcset=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-1024x495.png 1024w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-300x145.png 300w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-768x372.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Pinout of Pycom FiPy.<\/figcaption><\/figure>\n\n\n\n<p>The sensors to be used in this project are a temperature &amp; humidity sensor and 4 load cells. Specifically, the AM2320 is used for finding our temperature and humidity values. This sensor is a i2c based sensor that is affordable yet accurate. The project is utilizing four S-type load cells that will retrieve the weight placed on the scale. The datasheet for the AM2320 can be found <a href=\"https:\/\/cdn-shop.adafruit.com\/product-files\/3721\/AM2320.pdf\">here<\/a>, and the link to the load cells, <a href=\"https:\/\/www.amazon.com\/gp\/product\/B01F6IUITS\/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&amp;psc=1\">here<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn-shop.adafruit.com\/1200x900\/3721-00.jpg\" alt=\"Image result for Am2320\" width=\"531\" height=\"398\"\/><figcaption>AM2320 Temperature and Humidity Sensor.<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-2-910x1024.png\" alt=\"\" class=\"wp-image-41\" width=\"337\" height=\"378\" srcset=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-2-910x1024.png 910w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-2-267x300.png 267w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-2-768x864.png 768w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-2.png 1212w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><figcaption>S-type load cell.<\/figcaption><\/figure><\/div>\n\n\n\n<p>Lastly, some peripherals are needed to handle gathering the signals of these sensors. The FiPy directly interfaces with the AM2320 of i2c, so nothing is needed there, however, the signals from the load cells must be amplified for processing. To do this, an HX711 24-bit amplifier and ADC was used. The datasheet for the HX711 can be found <a href=\"https:\/\/cdn.sparkfun.com\/datasheets\/Sensors\/ForceFlex\/hx711_english.pdf\">here<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-3.png\" alt=\"\" class=\"wp-image-42\" width=\"204\" height=\"178\" srcset=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-3.png 951w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-3-300x262.png 300w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-3-768x670.png 768w\" sizes=\"auto, (max-width: 204px) 100vw, 204px\" \/><figcaption>HX711 Amplifier and ADC.<\/figcaption><\/figure><\/div>\n\n\n\n<p>In order to keep the sensors from draining power while the FiPy enters deep sleep mode. A simple NMOSFET transistor is used to enable the sensors while the device is awake and disable them when it goes to sleep.<\/p>\n\n\n\n<p>Lastly, the device needs to be powered. The group is completing this task by using a voltaic V50 battery pack accompanied by a  6 Watt solar panel. This combination is favorable as the battery can be charged while simultaneously powering the micro-controller.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-5.png\" alt=\"\" class=\"wp-image-44\" width=\"294\" height=\"190\" srcset=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-5.png 936w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-5-300x195.png 300w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-5-768x498.png 768w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><figcaption>Voltaic V50 battery pack.<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-6-733x1024.png\" alt=\"\" class=\"wp-image-45\" width=\"196\" height=\"273\" srcset=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-6-733x1024.png 733w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-6-215x300.png 215w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-6-768x1073.png 768w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-6.png 872w\" sizes=\"auto, (max-width: 196px) 100vw, 196px\" \/><figcaption>Voltaic 6W solar panel.<\/figcaption><\/figure><\/div>\n\n\n\n<p>With all the parts selected, a PCB was designed to house all the components in a favorable manor. The PCB was designed in EAGLE.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"763\" src=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-8-1024x763.png\" alt=\"\" class=\"wp-image-47\" srcset=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-8-1024x763.png 1024w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-8-300x224.png 300w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-8-768x572.png 768w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-8.png 1067w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>PCB schematic to combine all components.<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-9.png\" alt=\"\" class=\"wp-image-48\" width=\"446\" height=\"164\" srcset=\"https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-9.png 789w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-9-300x110.png 300w, https:\/\/engprojects.tcnj.edu\/apis\/wp-content\/uploads\/sites\/125\/2019\/11\/image-9-768x282.png 768w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><figcaption>PCB Preview.<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The embedded system to be used is a set of sensors primarily driven by a FiPy, made by Pycom. The FiPy is a micro-python based micro-controller that has various embedded capabilities such as i2c, SPI, UART, ADCs, DACs, etc. It sits in the frame of an ESP32 board with various attachments that grant it the &hellip; <a href=\"https:\/\/engprojects.tcnj.edu\/apis\/embedded-system\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Embedded System<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":209,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-24","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/engprojects.tcnj.edu\/apis\/wp-json\/wp\/v2\/pages\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/engprojects.tcnj.edu\/apis\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/engprojects.tcnj.edu\/apis\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/engprojects.tcnj.edu\/apis\/wp-json\/wp\/v2\/users\/209"}],"replies":[{"embeddable":true,"href":"https:\/\/engprojects.tcnj.edu\/apis\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"https:\/\/engprojects.tcnj.edu\/apis\/wp-json\/wp\/v2\/pages\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/engprojects.tcnj.edu\/apis\/wp-json\/wp\/v2\/media?parent=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}