{"id":129740,"date":"2022-11-14T19:21:14","date_gmt":"2022-11-14T19:21:14","guid":{"rendered":"https:\/\/blog.finxter.com\/?p=892909"},"modified":"2022-11-14T19:21:14","modified_gmt":"2022-11-14T19:21:14","slug":"getting-to-know-your-basic-uctronics-raspberry-pi-pico-kit","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2022\/11\/14\/getting-to-know-your-basic-uctronics-raspberry-pi-pico-kit\/","title":{"rendered":"Getting To Know Your Basic UCTRONICS Raspberry Pi Pico Kit"},"content":{"rendered":"\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-top\" data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;892909&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;top&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;1&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (1 vote)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n<div class=\"kksr-stars\">\n<div class=\"kksr-stars-inactive\">\n<div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"kksr-stars-active\" style=\"width: 142.5px;\">\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\"> 5\/5 &#8211; (1 vote) <\/div>\n<\/div>\n<p>Now that we\u2019ve covered <a href=\"https:\/\/blog.finxter.com\/getting-started-with-thonny-the-optimal-ide-for-the-raspberry-pi-pico\/\" data-type=\"post\" data-id=\"802754\" target=\"_blank\" rel=\"noreferrer noopener\">Thonny<\/a> and <a href=\"https:\/\/blog.finxter.com\/learn-the-basics-of-micropython-for-absolute-python-beginners\/\" data-type=\"post\" data-id=\"852391\" target=\"_blank\" rel=\"noreferrer noopener\">MicroPython<\/a>, it\u2019s time to get to know the components in your basic <strong>Raspberry Pi Pico kit<\/strong>. <\/p>\n<p class=\"has-base-background-color has-background\"><img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/1f916.png\" alt=\"\ud83e\udd16\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/> <strong>Note<\/strong>: There is more than one kit out there, but it is this author\u2019s opinion that the best value for beginners is the one from UCTRONICS. Most of them have similar components, but this one just happens to be my go-to and is the subject of this installment.<\/p>\n<p><em>*If you have not yet read our previous installments on <a href=\"https:\/\/blog.finxter.com\/learn-the-basics-of-micropython-for-absolute-python-beginners\/\" data-type=\"URL\" data-id=\"https:\/\/blog.finxter.com\/learn-the-basics-of-micropython-for-absolute-python-beginners\/\" target=\"_blank\" rel=\"noreferrer noopener\">learning MicroPython<\/a> for the Raspberry Pi Pico or <a href=\"https:\/\/blog.finxter.com\/getting-started-with-thonny-the-optimal-ide-for-the-raspberry-pi-pico\/\" data-type=\"post\" data-id=\"802754\" target=\"_blank\" rel=\"noreferrer noopener\">Thonny<\/a>, be sure you review those before moving beyond this short tutorial.<\/em><\/p>\n<p>Alright, let\u2019s jump in! Here\u2019s what the kit looks like:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"739\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-139.png\" alt=\"\" class=\"wp-image-892918\" srcset=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-139.png 769w, https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-139-300x288.png 300w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/figure>\n<\/div>\n<p>First things first, though. We\u2019re going to start with the Pico itself. The main thing you\u2019ll need to know about it (at least for the purposes of doing experiments) is its pins.<\/p>\n<h2>Your Pico and Its Pins<\/h2>\n<p>Your Pico talks to hardware through a series of pins along both its edges. Most of these pins work as a general-purpose input\/output (GPIO) pin, meaning they can be programmed to act as either an input or an output and have no fixed purpose of their own. <\/p>\n<ul>\n<li>Some pins have extra features and alternative modes for communicating with more complicated hardware; <\/li>\n<li>Others have a fixed purpose, providing connections for things like power.<\/li>\n<\/ul>\n<p>Raspberry Pi Pico\u2019s 40 pins are labeled on the underside of the board, with three also labeled with their numbers on the top of the board: Pin 1, Pin 2, and Pin 39. <\/p>\n<p>These top labels help you remember how the numbering works: Pin 1 is at the top left as you look at the board from above with the micro USB port to the upper side, Pin 20 is the bottom left, Pin 21 the bottom right, and Pin 39 one below the top right with the unlabeled Pin 40 above it.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"549\" height=\"561\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-140.png\" alt=\"\" class=\"wp-image-892922\" srcset=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-140.png 549w, https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-140-294x300.png 294w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/figure>\n<\/div>\n<p>While you will generally use actual pin numbers when writing your code, we may reference some of them by their functions, as well.<\/p>\n<p>As you can see, there are several different kinds of pins with different functions. Here\u2019s a quick reference guide to help you remember:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"523\" height=\"686\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-141.png\" alt=\"\" class=\"wp-image-892923\" srcset=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-141.png 523w, https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-141-229x300.png 229w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/figure>\n<\/div>\n<p>You\u2019ll learn more about these functions in later tutorials as we get into projects. For now, all you need to focus on is the basics. This is not meant to be an exhaustive electronics course. <img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/1f642.png\" alt=\"\ud83d\ude42\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<h2>Other Electronic Components<\/h2>\n<p>Obviously, your Pico isn\u2019t the only thing you\u2019re going to need if you\u2019re going to be conducting any experiments. <\/p>\n<p>The other things are the components that your Pico\u2019s pins will be controlling. There are tons of components out there, but the cool thing about this kit is that these are useful regardless of how complicated your projects ultimately get &#8211; and if you have fun with these, I guarantee you\u2019ll start coming up with your own.<\/p>\n<h3>Breadboard<\/h3>\n<p>Anyway, let\u2019s start with the second most important component (well, besides the micro USB cord that connects the Pico to your computer) &#8211; your <em>breadboard<\/em>.&nbsp;<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"471\" height=\"224\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-142.png\" alt=\"\" class=\"wp-image-892926\" srcset=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-142.png 471w, https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-142-300x143.png 300w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/figure>\n<\/div>\n<p>This little beauty makes life a WHOLE lot easier. This unit eliminates the need for a circuit board and soldering. Instead, you can just shove &#8211; ok, maybe not <em>shove,<\/em> but insert &#8211; wires and pins into the right spots and remove them as needed to do new projects. Hard to beat that!<\/p>\n<h3>Jumper Wires<\/h3>\n<p>Next are your <em>jumper wires<\/em>, which connect components to circuits on your breadboard and take the place of those little \u201cwire trails\u201d you see on circuit boards. <\/p>\n<p>That way, they aren\u2019t permanent and can be moved as you see fit. They can also be used to lengthen wires or pins as needed. <\/p>\n<p>To accomplish this, they come in 3 types &#8211; male-to-male (M2M), male-to-female (M2F), and of course F2F (can you guess?).<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"314\" height=\"302\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-143.png\" alt=\"\" class=\"wp-image-892928\" srcset=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-143.png 314w, https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-143-300x289.png 300w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/><\/figure>\n<\/div>\n<h3>Momentary Switch<\/h3>\n<p>Next up, we have a <em>push-button switch<\/em>, or <em>momentary switch<\/em>. This doodad is exactly what it looks like &#8211; a button. <\/p>\n<p>However, in this case, it\u2019s not the same as a <em>latching switch<\/em>, which stays depressed once you click it. This one only has to be held down to make it keep working.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"273\" height=\"207\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-144.png\" alt=\"\" class=\"wp-image-892929\"\/><\/figure>\n<\/div>\n<p>Now this one\u2019s going to shock you. It\u2019s called\u2026 a <em>light-emitting diode, or LED<\/em>! I know, I know, you\u2019ve never heard of it, right? <img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/1f602.png\" alt=\"\ud83d\ude02\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"374\" height=\"105\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-145.png\" alt=\"\" class=\"wp-image-892930\" srcset=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-145.png 374w, https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-145-300x84.png 300w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/figure>\n<\/div>\n<p>I don\u2019t think I have to say much of anything about these, but I will make two points. <\/p>\n<ul>\n<li>First, not all LEDs are going to work with your Pico. 5V and 12V aren\u2019t good, so if you decide to buy more, make sure you keep that in mind. <\/li>\n<li>Second, the two legs are different lengths. The long one is positive, and the short is negative.<\/li>\n<\/ul>\n<p>When we\u2019re running a current through stuff, we can sometimes run the risk of blowing them out, especially the LEDs. So how do we prevent that from happening? <\/p>\n<h3>Resistor<\/h3>\n<p>With <em>resistors<\/em>, of course! Now, there are a lot of resistors out there with different stripes on them to tell you the level of resistance they provide in a unit called <em>ohms(\ud835\udfa8)<\/em>. I\u2019m not going to get into that kind of detail here because it isn\u2019t necessary for Pico jobs. <\/p>\n<p>Suffice it to say that if you run out of resistors and want more, you\u2019ll be using little 330\ud835\udfa8 guys.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"427\" height=\"91\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-146.png\" alt=\"\" class=\"wp-image-892934\" srcset=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-146.png 427w, https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-146-300x64.png 300w\" sizes=\"auto, (max-width: 427px) 100vw, 427px\" \/><\/figure>\n<\/div>\n<p>Just one little note &#8211; yours might not be the same color, but the stripes will be. The ones I got in my kit are blue, but that doesn\u2019t matter; 330\ud835\udfa8 is 330\ud835\udfa8.<\/p>\n<h3>Piezoelectric Buzzer<\/h3>\n<p>Everyone\u2019s favorite component to play with &#8211; well, as long as you have people in your place to annoy &#8211; is the <em>piezoelectric buzzer<\/em>. Oh, boy, this one\u2019s fun! It does exactly what its name indicates, and it does it by vibrating two metal plates together when a current is run through it. Heh, heh.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"290\" height=\"172\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-147.png\" alt=\"\" class=\"wp-image-892937\"\/><\/figure>\n<\/div>\n<p>I\u2019m an avid guitar player, and I LOVE the electric guitar the most. I\u2019m the heaviest of metal heads! Ok, maybe not that heavy. I only clock in at 5\u20197\u201d and 140lb. Sorry &#8211; if you\u2019re not an American reader, that ain\u2019t big. Martial arts has done me a lot of good in life. <img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/1f923.png\" alt=\"\ud83e\udd23\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<p>Aaaaaaaanyway, there are at least two knobs on an electric guitar &#8211; one for volume, and one for tone. <\/p>\n<h3>Potentiometer<\/h3>\n<p>These both use <em>potentiometers<\/em> that can be used either as a <em>variable resistor<\/em> (with two legs connected) or a <em>voltage divider<\/em> (with all three wired up). In other words, one hookup controls ohms and the other controls volts. I\u2019ll let you guess which version controls which function on the guitar.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"162\" height=\"264\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-148.png\" alt=\"\" class=\"wp-image-892939\"\/><\/figure>\n<\/div>\n<h3>Motion Detector<\/h3>\n<p>Ever tried to break into somebody\u2019s house, but they had one of those pesky motion detectors that lit up the whole property and nearly got you busted? No? I guess that\u2019s just\u2026 a friend\u2026 <img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/1f633.png\" alt=\"\ud83d\ude33\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<p>Well, you get one of those pesky\u2026 I mean\u2026 <em>cool <\/em>motion detectors, too. It\u2019s actually called a <em>passive infrared sensor (PIR)<\/em>, and it makes things happen when you wave your hand in front of it. Better than a button? You be the judge.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"286\" height=\"236\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-149.png\" alt=\"\" class=\"wp-image-892941\"\/><\/figure>\n<\/div>\n<h3>Screen and Display<\/h3>\n<p>Last but not least (I love overused, trite cliches, don\u2019t you?), we have a screen. It\u2019s actually called an <em>inter-integrated circuit<\/em> or <em>I2C display<\/em>. It can show all kinds of nifty stuff from text to pictures. There are some fun things to do with this baby!<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"298\" height=\"156\" src=\"https:\/\/blog.finxter.com\/wp-content\/uploads\/2022\/11\/image-150.png\" alt=\"\" class=\"wp-image-892943\"\/><\/figure>\n<\/div>\n<p>Obviously, there are other components you can get like motors, current sensors, reverse-LEDs, and a whole host of things. Some of them require special drivers and such, though, so they wouldn\u2019t be considered basic. For the purposes of this series, we will be focusing on more basic components and projects before graduating to higher-level (and more expensive) experiments.<\/p>\n<h2>Keep Learning! <img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/1f447.png\" alt=\"\ud83d\udc47\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/h2>\n<p>Next time, we\u2019ll get into our first project. It\u2019s pretty easy, but it\u2019s fun and totally worth it. I can\u2019t wait to get started, so I\u2019ll talk to you soon. Until then, try some more of the MicroPython I taught you <a href=\"https:\/\/blog.finxter.com\/learn-the-basics-of-micropython-part-2\/\" data-type=\"post\" data-id=\"867926\" target=\"_blank\" rel=\"noreferrer noopener\">before<\/a>. Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>5\/5 &#8211; (1 vote) Now that we\u2019ve covered Thonny and MicroPython, it\u2019s time to get to know the components in your basic Raspberry Pi Pico kit. Note: There is more than one kit out there, but it is this author\u2019s opinion that the best value for beginners is the one from UCTRONICS. Most of them [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[857],"tags":[73,468,528],"class_list":["post-129740","post","type-post","status-publish","format-standard","hentry","category-python-tut","tag-programming","tag-python","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/129740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/comments?post=129740"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/129740\/revisions"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=129740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=129740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=129740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}