{"id":143,"date":"2021-01-07T06:08:00","date_gmt":"2021-01-06T22:08:00","guid":{"rendered":"http:\/\/bversion.com\/WordPress\/?p=143"},"modified":"2021-03-19T07:16:20","modified_gmt":"2021-03-18T23:16:20","slug":"our-first-pcba","status":"publish","type":"post","link":"https:\/\/bversion.com\/WordPress\/2021\/01\/07\/our-first-pcba\/","title":{"rendered":"Our First PCBA"},"content":{"rendered":"\n<figure class=\"wp-block-video\"><video height=\"576\" style=\"aspect-ratio: 1280 \/ 576;\" width=\"1280\" autoplay controls muted src=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/Our-First-PCBA.mp4\" playsinline><\/video><figcaption>This is our first Arduino project and also our first time to use soldering iron.. XD<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210104_102608-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210104_102608-1024x461.jpg\" alt=\"\" class=\"wp-image-370\" width=\"749\" height=\"337\" srcset=\"https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210104_102608-1024x461.jpg 1024w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210104_102608-300x135.jpg 300w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210104_102608-768x346.jpg 768w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210104_102608-1536x692.jpg 1536w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210104_102608-2048x922.jpg 2048w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/a><\/figure>\n\n\n\n<p>After we learnt some basic idea about the Arduino UNO board and basic LED circuitry, we started to build our first project &#8211; LED array. But, keep in mind, always put loading (i.e. resistor) for LED. Otherwise, you will burn it or even damaged the board.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-large is-resized\"><a href=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210105_172947-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210105_172947-1024x768.jpg\" alt=\"\" class=\"wp-image-371\" width=\"749\" height=\"561\" srcset=\"https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210105_172947-1024x768.jpg 1024w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210105_172947-300x225.jpg 300w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210105_172947-768x576.jpg 768w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210105_172947-1536x1152.jpg 1536w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210105_172947-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>We built LED array circuitry with the &#8216;bread&#8217; board, so that we can easily adjust  and debug the circuitry prior fit them onto a PCB. <\/p>\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\" style=\"flex-basis:50%\">\n<div class=\"wp-block-image\"><figure class=\"alignleft size-large is-resized\"><a href=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/03\/Pull-up-and-Pull-down-Resistor.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/03\/Pull-up-and-Pull-down-Resistor.png\" alt=\"\" class=\"wp-image-841\" width=\"370\" height=\"257\" srcset=\"https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/03\/Pull-up-and-Pull-down-Resistor.png 750w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/03\/Pull-up-and-Pull-down-Resistor-300x208.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/a><\/figure><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<p>We also learnt how to connect the switch to the input pin with pull-up and pull down resistor concept. So that the input pin will not be floating with uncertain voltage which will induce unstable the result. We used pull-down resistor because we want to trigger the LED pattern when the switch is being pressed.<\/p>\n<\/div>\n<\/div>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">void turn_on() {\n\n  int Light_effect = 1 ;\n  button = digitalRead(10);\n  \n  if (button == HIGH ){\n   Light_effect = Light_effect + 1;\n   if (Light_effect == 4) {\n     Light_effect = 1 ;\n    }\n  }\n  if (Light_effect == 1) { \n    Light_1();\n  }\n  if (Light_effect == 2) {\n    Light_2();\n  }\n  if (Light_effect == 3) {\n    Light_3();\n  }\n}  <\/pre>\n\n\n\n<p>We defined 3 lighting effects by on\/off different port of LED in preset sequence. When the switch connect to port 10 is pressed, it will change the light effect value and call the function for the corresponding light effect. Once the light effect 3 is done, it will switch back to the first one. Below is the first light effect, try to create your own and simplify the coding.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">void Light_1() {\n  \n  digitalWrite (9,HIGH) ;\n  delay (100) ;\n  digitalWrite (8,HIGH) ;\n  delay (100) ;\n  digitalWrite (7,HIGH) ;\n  delay (100) ;\n  digitalWrite (6,HIGH) ;\n  delay (100) ;\n  digitalWrite (5,HIGH) ;\n  delay (100) ;\n  digitalWrite (4,HIGH) ;\n  delay (100) ;\n  digitalWrite (3,HIGH) ;\n  delay (100) ;\n  digitalWrite (2,HIGH) ;\n  delay (100) ;\n  digitalWrite (9,LOW) ;\n  delay (100) ;\n  digitalWrite (8,LOW) ;\n  delay (100) ;\n  digitalWrite (7,LOW) ;\n  delay (100) ;\n  digitalWrite (6,LOW) ;\n  delay (100) ;\n  digitalWrite (5,LOW) ;\n  delay (100) ;\n  digitalWrite (4,LOW) ;\n  delay (100) ;\n  digitalWrite (3,LOW) ;\n  delay (100) ;\n  digitalWrite (2,LOW) ;\n  delay (100) ;\n}<\/pre>\n\n\n\n<p>Once we confirmed the circuitry is good and the program is running well, we soldered all the components to a double side PCB. We made our first PCBA without being scalded by the soldering iron!!!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-medium is-resized\"><a href=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_141631-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_141631-300x225.jpg\" alt=\"\" class=\"wp-image-379\" width=\"225\" height=\"169\" srcset=\"https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_141631-300x225.jpg 300w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_141631-1024x768.jpg 1024w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_141631-768x576.jpg 768w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_141631-1536x1152.jpg 1536w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_141631-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-medium is-resized\"><a href=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_144920-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_144920-300x225.jpg\" alt=\"\" class=\"wp-image-380\" width=\"225\" height=\"169\" srcset=\"https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_144920-300x225.jpg 300w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_144920-1024x768.jpg 1024w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_144920-768x576.jpg 768w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_144920-1536x1152.jpg 1536w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_144920-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_180450-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_180450-1024x768.jpg\" alt=\"\" class=\"wp-image-381\" width=\"750\" height=\"563\" srcset=\"https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_180450-1024x768.jpg 1024w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_180450-300x225.jpg 300w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_180450-768x576.jpg 768w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_180450-1536x1152.jpg 1536w, https:\/\/bversion.com\/WordPress\/wp-content\/uploads\/2021\/02\/20210107_180450-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After we learnt some basic idea about the Arduino UNO board and basic LED circuitry, we started to build our first project &#8211; LED array. But, keep in mind, always put loading (i.e. resistor) for LED. Otherwise, you will burn it or even damaged the board. We built LED array circuitry with the &#8216;bread&#8217; board, &hellip; <a href=\"https:\/\/bversion.com\/WordPress\/2021\/01\/07\/our-first-pcba\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Our First PCBA<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":201,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"yes","footnotes":""},"categories":[5],"tags":[],"class_list":["post-143","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-world-of-arduino"],"_links":{"self":[{"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":16,"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":844,"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/posts\/143\/revisions\/844"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/media\/201"}],"wp:attachment":[{"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bversion.com\/WordPress\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}