{"id":1,"date":"2019-09-10T15:19:16","date_gmt":"2019-09-10T15:19:16","guid":{"rendered":"http:\/\/engprojects.tcnj.edu\/smart-led\/?p=1"},"modified":"2020-06-29T14:00:49","modified_gmt":"2020-06-29T14:00:49","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/engprojects.tcnj.edu\/smart-led\/2019\/09\/10\/hello-world\/","title":{"rendered":"Smart LED Fixture"},"content":{"rendered":"<p>Project Goals<\/p>\n<ul>\n<li>Design and Build LED driving PCB<\/li>\n<li>Develop Firmware<\/li>\n<li>Develop Android application<\/li>\n<li>Fabricate LED fixture (TBD)<\/li>\n<\/ul>\n\n\n<p>Circuit Design<\/p>\n\n\n\n<p>To power the LED strings a power driving circuit must be designed. Within this circuit there are three main components of the circuit. These components include the a driving integrated circuit, power mosfet, and the LEDs. <\/p>\n\n\n\n<p>UI &amp; Android Application<\/p>\n\n\n\n<p>When developing an Android app there are four crucial  files that are required for functionality of the application, these files include: main activity, GATT connectivity, XML, and manifest.  The main activity handles the interface and calls the GATT protocol. The GATT connectivity file controls the data transfer between the GATT client (mobile device) and peripheral (PSoC). The XML file determines the esthetics of the user interface including text, buttons, layout, etc. The last final is the manifest file that contains permission statements to enable the local Bluetooth antenna.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"302\" height=\"541\" src=\"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/ui-1.png\" alt=\"\" class=\"wp-image-29\" srcset=\"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/ui-1.png 302w, https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/ui-1-167x300.png 167w\" sizes=\"auto, (max-width: 302px) 100vw, 302px\" \/><\/figure><\/div>\n\n\n\n<p>Embedded System<\/p>\n\n\n\n<p>To directly control the LED driving circuit the PSoC 4 BLE was chosen for the ease of use along with an built in database. Through the PSoC Creator software input and output pins can declared in the Design Wide Resources file as shown below. With this software custom services and characteristics can be easily declared with all of the necessary supporting code generated in the main.c file. These services and characteristics are the attributes that can be read or written to interface with the application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"452\" src=\"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/psoc-1024x452.png\" alt=\"\" class=\"wp-image-37\" srcset=\"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/psoc-1024x452.png 1024w, https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/psoc-300x133.png 300w, https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/psoc-768x339.png 768w, https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/psoc.png 1494w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><br><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"879\" height=\"560\" src=\"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/PSoC.png\" alt=\"\" data-id=\"47\" data-link=\"https:\/\/engprojects.tcnj.edu\/smart-led\/2019\/09\/10\/hello-world\/psoc-2\/\" class=\"wp-image-47\" srcset=\"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/PSoC.png 879w, https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/PSoC-300x191.png 300w, https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/PSoC-768x489.png 768w\" sizes=\"auto, (max-width: 879px) 100vw, 879px\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"452\" src=\"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/psocble-1.png\" alt=\"\" class=\"wp-image-49\" srcset=\"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/psocble-1.png 558w, https:\/\/engprojects.tcnj.edu\/smart-led\/wp-content\/uploads\/sites\/132\/2019\/11\/psocble-1-300x243.png 300w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/figure><\/div>\n\n\n\n<p>Mechanical Design<\/p>\n\n\n\n<p>The design of the LED fixture is to be decided once revisions are finalized.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Final Presentation<\/h2>\n\n\n\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1pQuB5pNVwuZ-Kvb5NhIuIIWPVn8T7ZyhzOltc87BdS8\/edit?usp=sharing\">https:\/\/docs.google.com\/presentation\/d\/1pQuB5pNVwuZ-Kvb5NhIuIIWPVn8T7ZyhzOltc87BdS8\/edit?usp=sharing<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Project Goals Design and Build LED driving PCB Develop Firmware Develop Android application Fabricate LED fixture (TBD) Circuit Design To power the LED strings a power driving circuit must be designed. Within this circuit there are three main components of the circuit. These components include the a driving integrated circuit, power mosfet, and the LEDs. &hellip; <a href=\"https:\/\/engprojects.tcnj.edu\/smart-led\/2019\/09\/10\/hello-world\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Smart LED Fixture<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":0,"href":"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"wp:attachment":[{"href":"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/engprojects.tcnj.edu\/smart-led\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}