{"id":1731,"date":"2021-03-25T19:25:55","date_gmt":"2021-03-25T19:25:55","guid":{"rendered":"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/?page_id=1731"},"modified":"2021-05-12T19:56:30","modified_gmt":"2021-05-12T19:56:30","slug":"physical-computing-virtual","status":"publish","type":"page","link":"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/physical-computing-virtual\/","title":{"rendered":"Physical Computing (Virtual)"},"content":{"rendered":"\n<p>If you have been to or have read our <strong><a href=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/pcomp-workshop\/\">Physical Computing Workshop<\/a><\/strong> and all of this looks familiar&#8211; it is! The difference between that workshop and this one is that this is designed to be done entirely virtually through <a href=\"https:\/\/www.tinkercad.com\/\"><strong>Tinkercad\u2019s<\/strong> <strong>Circuit Simulator<\/strong><\/a>. This is great if you cannot obtain an Arduino kit for any reason, but still would like to learn and experiment with it.<\/p>\n\n\n\n<p>Before starting, you can make a Tinkercad account if you haven\u2019t already, as well as installing the <strong><a href=\"https:\/\/www.arduino.cc\/en\/software\">Arduino IDE.<\/a><\/strong> You can also just make an account with Arduino and use their <strong><a href=\"https:\/\/create.arduino.cc\/editor\">browser based version of the editor<\/a><\/strong>. If you are using one of the machines from the Makerspace, it should be already installed on it.<\/p>\n\n\n\n<p>The procedure for downloading and installing the software is slightly different for Macs and Windows.<a href=\"http:\/\/arduinotogo.com\/2016\/09\/09\/chapter-3-downloading-and-installing-the-software\/\"> <strong><em>Detailed instructions for both platforms are here.<\/em><\/strong><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is Physical Computing?<\/strong><\/h2>\n\n\n\n<p><em>Physical computing<\/em> refers to the process of building physical interfaces that respond to the analog world. This is done by building circuits with microcontrollers and components designed to to do a certain purpose. LEDs light up, potentiomenters change resistance, motors turn, et cetera. This is all done through the electricity going through the circuit.<\/p>\n\n\n\n<p>However, we won\u2019t go too in depth with this, if you\u2019d like to learn more and explore this further, you can read up about it in detail in our <strong><a href=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/pcomp\/\">Physical Computing Overview<\/a><\/strong>.&nbsp;<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>A Look at the Arduino Uno:<\/strong><\/p>\n\n\n\n<p>A <em>microcontroller<\/em> is a small computer that can take in information from inputs such as sensors and switches and control outputs such as lights, motors and other computers. Microcontrollers are widely used in many different ways; DIY and robotics, art installations, industrial applications, and the internet of things.<\/p>\n\n\n\n<p>When you are using a microcontroller, or in our case a microcontroller platform, there are two components: <strong>hardware<\/strong> and <strong>software<\/strong>. The hardware includes the microcontroller and its input and output pins, and any input or output devices you want to attach to it. The software is programs you write that control the microcontroller and the devices you have attached to it.<\/p>\n\n\n\n<p>We will be using the Arduino microcontroller platform. It was developed by a team of teachers to help their design students who were not engineers create physical interfaces. There are many different Arduinos, and clones as well. We will be using the Uno.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"577\" height=\"422\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/Arduino_Uno.png\" alt=\"\" class=\"wp-image-1732\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/Arduino_Uno.png 577w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/Arduino_Uno-300x219.png 300w\" sizes=\"auto, (max-width: 577px) 85vw, 577px\" \/><\/figure><\/div>\n\n\n\n<p>To learn more about the parts of a microcontroller, specifically the Arduino Uno, check out<a href=\"http:\/\/arduinotogo.com\/2016\/08\/20\/chapter-1-parts-of-an-arduino\/\"> <strong>Arduino To Go<\/strong><\/a>!<\/p>\n\n\n\n<p>This is where we\u2019re veering off a bit from the other workshop, as everything is virtual, we do not need to plug in the Arduino. But we are going to look at the native Arduino IDE and code from there. The circuit simulator does have a built in IDE as well, but it&#8217;s a nice to also be familiar with the Arduino IDE as well.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>A Look at the Breadboard:<\/strong><\/p>\n\n\n\n<p>A breadboard is a part that allows you to prototype  and troubleshoot circuits quickly without needing to commit to them.  The board we will be using is called a <em>half sized breadboard<\/em>. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"964\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/Breadboard_01_edit.png\" alt=\"\" class=\"wp-image-1810\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/Breadboard_01_edit.png 689w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/Breadboard_01_edit-214x300.png 214w\" sizes=\"auto, (max-width: 689px) 85vw, 689px\" \/><\/figure><\/div>\n\n\n\n<p>As you can see there&#8217;s all these little holes, and it can get confusing to look at for the first time.  The two rows on each end of the board marked with a plus (+) or minus (-) sign is the power and ground rows. <strong>Power<\/strong> is plus (+), and <strong>ground<\/strong> is (-). This is where you connect your power source and ground from the Arduino. these are marked with <strong>3.3V<\/strong>, <strong>5V<\/strong> (the amount of power we&#8217;re sending to the board in <strong>volts<\/strong>) and <strong>GND<\/strong> (which there are two pins as well.) It&#8217;s important to know, as getting these mixed up could cause a short and circuit and will not work.&nbsp;<\/p>\n\n\n\n<p>The rows labeled with numbers and letters are <strong>tie points<\/strong>, these are where your components and wires go into. You have two sets of tie points, separated by a <strong>trench<\/strong>. This gap allows you to use larger sized components (you will see later with the pushbutton).  The numbers (1-30)  indicates <strong>rows<\/strong> and the letters (a-j) indicate <strong>columns<\/strong>.<\/p>\n\n\n\n<p>Inside, they have  copper strips inside them to make them conductive, which is how these rows work. Here&#8217;s what it looks like:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"581\" height=\"902\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/Breadboard_02.png\" alt=\"\" class=\"wp-image-1809\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/Breadboard_02.png 581w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/Breadboard_02-193x300.png 193w\" sizes=\"auto, (max-width: 581px) 85vw, 581px\" \/><\/figure><\/div>\n\n\n\n<p>The power and ground rows on the breadboard run <em>vertically<\/em> (up and down) from the board, while the tie points run <em>horizontally<\/em> (left to right) on the board. You can&#8217;t put all the pins of a component on the same row of tie points, or it won&#8217;t work, but they can run the same column. So one leg or pin can go into 5c (row 5, column c), and the other can go anywhere else on the c column to work.<\/p>\n\n\n\n<p>(It should be noted this paragraph is using the upright board as a reference. It&#8217;s more likely that your board will be on it&#8217;s side in the simulator, so your tie points will be <em>vertical<\/em> and your power and ground <em>horizontal<\/em> in that case.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What\u2019s an IDE?<\/strong><\/h3>\n\n\n\n<p>An <strong>IDE<\/strong>, or <em>integrated development environment<\/em>, is a software application that allows you to write code and test that code out in the programming language the IDE supports. The Arduino has an IDE, (integrated development environment), that is free and downloadable from the Arduino site (linked above). This is a set of software that allows you to write code, then upload it directly to the Arduino.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Setting Up the&nbsp; IDE:<\/strong><\/h3>\n\n\n\n<p>&nbsp;If you have not installed it before starting this workshop, please do so now. The links are provided above in the beginning, or download <strong><a href=\"https:\/\/www.arduino.cc\/en\/software\">HERE<\/a><\/strong>.&nbsp;Or open up the <strong><a href=\"https:\/\/login.arduino.cc\/login?state=g6Fo2SAyUHFLUWpXakQ3dFV5UkJCckFGbVF3aWtET1BRWkVFdKN0aWTZIEVVdzZSdm9fM3FERWRBX09NZkNyRTRXeGJjMFVpUERWo2NpZNkgcnI2TFNPU3o1N2g3ZnZzSGRSWFhQa1pHM0VSb1hUZlo&amp;client=rr6LSOSz57h7fvsHdRXXPkZG3ERoXTfZ&amp;protocol=oauth2&amp;authorizeTimeoutInSeconds=5&amp;redirect_uri=https%3A%2F%2Fcreate.arduino.cc%2Feditor&amp;logout_uri=https%3A%2F%2Fcreate.arduino.cc&amp;audience=https%3A%2F%2Fapi.arduino.cc&amp;scope=openid%20profile%20email&amp;response_type=code&amp;response_mode=query&amp;nonce=QXV5UG9Ec1UwQnRjZzB4SWdDYzFNUmdYQVNzYTA5aW9EWGNxZFhKU2JPZg%3D%3D&amp;code_challenge=RdGB5uKPC2wmtJ69a18F0ERfoNdDK34PRGtE00N4dCk&amp;code_challenge_method=S256&amp;auth0Client=eyJuYW1lIjoiYXV0aDAtc3BhLWpzIiwidmVyc2lvbiI6IjEuMTIuMSJ9\">browser editor<\/a><\/strong> after making an account.<\/p>\n\n\n\n<p>Once you have finished installing your IDE, start it up. We will still need to set it up as if we were going to use an actual Arduino for this project.<\/p>\n\n\n\n<p>The icon should look like this (or something similar):<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"256\" height=\"256\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/arduino_icon.png\" alt=\"\" class=\"wp-image-1733\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/arduino_icon.png 256w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/arduino_icon-150x150.png 150w\" sizes=\"auto, (max-width: 256px) 85vw, 256px\" \/><\/figure><\/div>\n\n\n\n<p>Once it starts, you should see a window, like so:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"501\" height=\"607\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/ide_startup.png\" alt=\"\" class=\"wp-image-1734\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/ide_startup.png 501w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/ide_startup-248x300.png 248w\" sizes=\"auto, (max-width: 501px) 85vw, 501px\" \/><\/figure><\/div>\n\n\n\n<p>This is called our <strong>Sketch<\/strong>. It is the code we will use to make our Arduino do things. Think of&nbsp; the code as thoughts, the Arduino as a brain and our components as our body parts. It tells the brain what to do and with what body part.&nbsp;<\/p>\n\n\n\n<p>If you have problems reading the sketch, you can&nbsp; adjust it&nbsp; for your comfort. You can expand it to be the full window. And if you go to <strong>File &gt; Preferences<\/strong> to adjust certain settings, like text size and other features. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/IDE_01-1024x499.jpg\" alt=\"\" class=\"wp-image-1738\" width=\"912\" height=\"444\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/IDE_01-1024x499.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/IDE_01-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/IDE_01-768x374.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/IDE_01.jpg 1062w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Unfortunately, Adruino does not have a default dark mode, but I can recommend konradhtc\u2019s <a href=\"https:\/\/create.arduino.cc\/projecthub\/konradhtc\/one-dark-arduino-modern-dark-theme-for-arduino-ide-2fca81\"><strong>One Dark Arduino theme<\/strong>.<\/a> Following the link will show you how to download and install it.<\/p>\n\n\n\n<p>(For the sake of brevity I will be continuing to use the light theme, but I set my text at 16 points for me to read better.)<\/p>\n\n\n\n<p>When you have finished setting up your IDE settings, we must make sure it\u2019s set to the right Arduino that we are using, as there are many different models. Go to <strong>Tools &gt; Board &gt; Arduino Uno<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"799\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/IDE_02_edit.jpg\" alt=\"\" class=\"wp-image-1737\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/IDE_02_edit.jpg 652w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/IDE_02_edit-245x300.jpg 245w\" sizes=\"auto, (max-width: 652px) 85vw, 652px\" \/><\/figure>\n\n\n\n<p><br>It should be the default, but it doesn\u2019t hurt to check. Since this is virtual, we do not need to check the Ports like we would the physical setup. We are now ready to code!&nbsp;<\/p>\n\n\n\n<p>But before we code, we need to set up the circuit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Creating a Tinkercad Account:<\/strong><\/h2>\n\n\n\n<p><strong>If you already have a Tinkercad account, please login and scroll down to <\/strong><strong><em>Tinkercad Circuit Simulator<\/em><\/strong><strong>. Otherwise, follow along at this point.<\/strong><\/p>\n\n\n\n<p>Isn\u2019t Tinkercad that 3D modeling site? Well, yes it is. But it provides not just 3D! This is fairly recent development added on to the site, which is a really good way to learn electronics in a pinch.&nbsp;<\/p>\n\n\n\n<p>On the upper right corner of the main site, click<strong> JOIN NOW.<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_01-1024x517.jpg\" alt=\"\" class=\"wp-image-1662\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_01-1024x517.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_01-300x152.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_01-768x388.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_01-1536x776.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_01-1200x606.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_01.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Next, select <strong>Create a Personal Account<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_02-1024x517.jpg\" alt=\"\" class=\"wp-image-1663\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_02-1024x517.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_02-300x152.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_02-768x388.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_02-1536x776.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_02-1200x606.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_02.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Select <strong>Sign Up with Email<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_03-1024x517.jpg\" alt=\"\" class=\"wp-image-1664\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_03-1024x517.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_03-300x152.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_03-768x388.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_03-1536x776.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_03-1200x606.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_03.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Select your country, and your birthdate, then hit <strong>NEXT<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_04-1024x517.jpg\" alt=\"\" class=\"wp-image-1665\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_04-1024x517.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_04-300x152.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_04-768x388.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_04-1536x776.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_04-1200x606.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_04.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Put in the email you wish to use and a password. It needs to be a minimum of 8 characters, at least 1 letter and 1 number, and at least 3 unique characters<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_05-1024x517.jpg\" alt=\"\" class=\"wp-image-1666\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_05-1024x517.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_05-300x152.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_05-768x388.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_05-1536x776.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_05-1200x606.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_05.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Click the box to agree to Autodesk\u2019s Terms of Service, then select<strong> CREATE ACCOUNT<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_06-1024x517.jpg\" alt=\"\" class=\"wp-image-1667\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_06-1024x517.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_06-300x152.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_06-768x388.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_06-1536x776.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_06-1200x606.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/02\/tinkercad_signup_06.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>They will take you through a 3D tutorial, but skip it for now. You can revisit it later at any time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Tinkercad Circuit Simulator:<\/strong><\/h2>\n\n\n\n<p>Your Dashboard will default to your 3D designs. On the left side of your dashboard, underneath <strong>3D Designs<\/strong>, you\u2019ll see an entry called <strong>Circuits<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_01-1024x500.jpg\" alt=\"\" class=\"wp-image-1740\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_01-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_01-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_01-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_01-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_01-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_01.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>&nbsp;Select that, that will take you to your Circuits dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_02-1024x500.jpg\" alt=\"\" class=\"wp-image-1741\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_02-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_02-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_02-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_02-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_02-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_02.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Click <strong>Create New Design<\/strong>, the big green button.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_03-1024x500.jpg\" alt=\"\" class=\"wp-image-1742\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_03-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_03-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_03-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_03-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_03-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_03.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>This is our workspace, the actual user interface is even more pared down compared to the 3D modeling one.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_04-1024x500.jpg\" alt=\"\" class=\"wp-image-1743\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_04-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_04-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_04-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_04-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_04-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_04.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>&nbsp;At the top, you will see a randomly generated name. You can rename your project by clicking on it and changing the name.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"200\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_05.jpg\" alt=\"\" class=\"wp-image-1744\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_05.jpg 650w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_05-300x92.jpg 300w\" sizes=\"auto, (max-width: 650px) 85vw, 650px\" \/><\/figure><\/div>\n\n\n\n<p>&nbsp;On the left side you have your <strong>Rotate<\/strong> tool (<strong>Shift + R<\/strong>), your <strong>Delete <\/strong>button (<strong>Delete<\/strong>), your <strong>Undo (Ctrl\/Cmd + Z ) <\/strong>and <strong>Redo (Ctrl\/Cmd + Y)<\/strong>, Annotations (for making notes), and View\/Hide to view or hide your notes. Just below that is a <strong>Zoom to Fit<\/strong> (<strong>Z<\/strong>) button, but you can use the <strong>Ctrl\/Cmd<\/strong> and <strong>+<\/strong> or <strong>&#8211; <\/strong>keys to zoom in or out.<\/p>\n\n\n\n<p>Don\u2019t worry about remembering shortcuts, they will be listed at the bottom of this page!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"594\" height=\"200\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_06.jpg\" alt=\"\" class=\"wp-image-1745\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_06.jpg 594w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_06-300x101.jpg 300w\" sizes=\"auto, (max-width: 594px) 85vw, 594px\" \/><\/figure><\/div>\n\n\n\n<p>On the top right we have our <strong>Circuit View<\/strong> button (it looks like a little bug&#8211; but in reality it\u2019s a microchip), next to that is the <strong>Components List<\/strong>. When you add components it will make a neat list of what you have.&nbsp;<\/p>\n\n\n\n<p>Below it is the <strong>Code <\/strong>button, where we will put the code from the IDE on later, the <strong>Start Simulation<\/strong> button, which will allow us to simulate everything once we have everything together. <strong>Export<\/strong> will export your board for Eagle, which is software used to make circuit boards. <strong>Share<\/strong> allows you to download a snapshot of the circuit or invite other users to collaborate on it.<\/p>\n\n\n\n<p>Below that are your components. These are what makes your circuit.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"841\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_07.jpg\" alt=\"\" class=\"wp-image-1747\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_07.jpg 275w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_07-98x300.jpg 98w\" sizes=\"auto, (max-width: 275px) 85vw, 275px\" \/><\/figure><\/div>\n\n\n\n<p>You can search for a particular part in the <strong>Search Bar<\/strong>, or&nbsp; in the dropdown, there are more options, including pre-made Arduino circuits. Great to explore later once you\u2019ve built your own.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"841\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_08.jpg\" alt=\"\" class=\"wp-image-1748\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_08.jpg 275w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_08-98x300.jpg 98w\" sizes=\"auto, (max-width: 275px) 85vw, 275px\" \/><\/figure><\/div>\n\n\n\n<p>Selecting the but to the right of the dropbox gives you a simple definition of the components.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"841\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_09.jpg\" alt=\"\" class=\"wp-image-1749\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_09.jpg 275w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_09-98x300.jpg 98w\" sizes=\"auto, (max-width: 275px) 85vw, 275px\" \/><\/figure><\/div>\n\n\n\n<p>Now it is time to build your first circuit!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Building Your Circuit:<\/strong><\/h2>\n\n\n\n<p>First, we want the <strong>Small Breadboard<\/strong>. Find and drag it onto your workspace.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_10-1024x500.jpg\" alt=\"\" class=\"wp-image-1750\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_10-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_10-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_10-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_10-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_10-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_10.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Next find the <strong>Arduino Uno R3<\/strong>.It should be under the breadboard if you scroll down.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_11-1024x500.jpg\" alt=\"\" class=\"wp-image-1751\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_11-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_11-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_11-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_11-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_11-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_11.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Now to wire it up. This virtual sim acts as if the Arduino is plugged into the computer, so we will not need to worry about a power source. Your power (marked with <strong>+<\/strong>) should be <strong>Red<\/strong>, and your<strong> <\/strong>ground (marked with <strong>&#8211;<\/strong>) should be <strong>Black<\/strong>. That way we know where it is coming and going from. <\/p>\n\n\n\n<p>(Some shortcuts: 1-0 changes the wire colors. <strong>1<\/strong> is black, and <strong>2<\/strong> is red. Holding down <strong>Shift<\/strong> keeps them straight.)<\/p>\n\n\n\n<p>The power we want to use is <strong>5V<\/strong> on the Arduino, and either <strong>GND<\/strong> will work as a ground. Adding the extra wire on the breadboard allows the power to spread across the whole board.&nbsp; <\/p>\n\n\n\n<p>(You don&#8217;t need to stagger them like the example, but doing so helps if you need to troubleshoot.)<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_12-1024x500.jpg\" alt=\"\" class=\"wp-image-1752\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_12-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_12-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_12-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_12-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_12-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_12.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>That\u2019s a great start! But now we\u2019re going to stop for now and hop back to the IDE.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Coding in the IDE:<\/strong><\/h2>\n\n\n\n<p>We\u2019re going to run a test sketch, called <strong>Blink<\/strong>. This will make the LED built into the Arduino blink. In the physical space, this is how we test if the Arduinos are working properly.&nbsp;<\/p>\n\n\n\n<p>Open up the Arduino IDE. Go to <strong>File &gt; Examples &gt; 01. Basics &gt; Blink<\/strong>. It will open in a new window.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"536\" height=\"890\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_13_edit.jpg\" alt=\"\" class=\"wp-image-1757\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_13_edit.jpg 536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_13_edit-181x300.jpg 181w\" sizes=\"auto, (max-width: 536px) 85vw, 536px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"704\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_14_edit.jpg\" alt=\"\" class=\"wp-image-1758\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_14_edit.jpg 484w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_14_edit-206x300.jpg 206w\" sizes=\"auto, (max-width: 484px) 85vw, 484px\" \/><\/figure><\/div>\n\n\n\n<p>Or if you\u2019d rather copy and paste here is the code below, with explanations of the code. Anything marked with \/\/ tells the Arduino and IDE to not read it as code. These are for comments, which help explain the code.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>void setup() {\n  \/\/ This is setting up actions that will happen when the board is powered.\n\n  pinMode(LED_BUILTIN, OUTPUT);\n\/\/ this is telling the Arduino that we are designating certain pins as outputs (where information goes out) or inputs (information goes in). LED_BUILTIN is a shortcut in the code for the LED built into the Arduino. OUTPUT means that the LED is an output; so information will be going out to it-- in this case the command to blink. \n\n}\n\n\/\/ Each function ends with a bracket.\n\nvoid loop() {\n\/\/ Here is establishing action(s) will continue to repeat on a loop so long as the Arduino is powered.\n  \ndigitalWrite(LED_BUILTIN, HIGH);  \n\/\/ digitalWrite means it is sending information out to a digital pin so when the LED is on or HIGH, it will turn on\n  \ndelay(1000);  \n \/\/ wait for a second; Arduinos read time in milliseconds\n\ndigitalWrite(LED_BUILTIN, LOW);    \n\/\/ Send out the message to turn the LED off or LOW.\n \n delay(1000);  \n\/\/ wait for another second\n\n} \n\/\/close the function with a bracket. As it is a loop and has no orders to stop, it will continue to do this until you turn it off or it loses power \n<\/code><\/pre>\n<\/div><\/div>\n\n\n\n<p>Now it\u2019s good practice to debug the code, even if you\u2019ve never changed anything on this sketch. To do this, go to <strong>Sketch &gt; Verify\/Compile<\/strong>. You can also just clock the little checkmark on the upper left of the user interface, or <strong>Ctrl\/Cmd +R<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"327\" height=\"227\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_15_edit.jpg\" alt=\"\" class=\"wp-image-1760\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_15_edit.jpg 327w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_15_edit-300x208.jpg 300w\" sizes=\"auto, (max-width: 327px) 85vw, 327px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"76\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_16_edit-1024x76.jpg\" alt=\"\" class=\"wp-image-1761\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_16_edit-1024x76.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_16_edit-300x22.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_16_edit-768x57.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_16_edit-1536x114.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_16_edit-1200x89.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_16_edit.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>If you don\u2019t have any orange text, you\u2019re in the clear! If you do, then you\u2019ll have to debug it. This shouldn\u2019t happen if you have just opened the sketch fresh from installation.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Running the Simulation:<\/strong><\/h2>\n\n\n\n<p>This is really easy. Go back to your circuit and select <strong>Code<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_17-1024x500.jpg\" alt=\"\" class=\"wp-image-1762\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_17-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_17-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_17-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_17-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_17-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_17.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>As you can see, it\u2019s set to a set of blocks. This is another coding language called Scratch, but we don\u2019t need it! Under the dropdown menu, select <strong>Text<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_18-1024x500.jpg\" alt=\"\" class=\"wp-image-1763\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_18-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_18-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_18-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_18-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_18-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_18.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Select <strong>Continue<\/strong> on the warning&#8211; it\u2019s just saying that the block code won\u2019t be saved.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_19-1024x500.jpg\" alt=\"\" class=\"wp-image-1764\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_19-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_19-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_19-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_19-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_19-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_19.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>And here we are!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_20-1024x500.jpg\" alt=\"\" class=\"wp-image-1765\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_20-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_20-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_20-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_20-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_20-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCsim_20.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>The neat thing about this is it will predict code based on the circuit. This might be great for this, but as we go on, we want to trust what\u2019s in the IDE. For the sake of practice you can go to the IDE and copy the code and paste it into the Circuit Sim.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_21-1024x500.jpg\" alt=\"\" class=\"wp-image-1766\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_21-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_21-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_21-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_21-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_21-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_21.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Since our code has been verified, go ahead and select <strong>Start Simulation<\/strong>. The little yellow LED on the Arduino should blink on and off if done right. (It\u2019s very tiny so I don\u2019t blame you if you don\u2019t see it at first!)<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"517\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_22.gif\" alt=\"\" class=\"wp-image-1767\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"517\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_23.gif\" alt=\"\" class=\"wp-image-1768\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>LED Blink:<\/strong><\/h2>\n\n\n\n<p>Now, we\u2019re going to make an LED blink on the breadboard. Drag an <strong>LED <\/strong>from the Components List to the board. Feel free to use the dropdown menu to change the color. As you can see, there are two legs on the LED. One is the <strong>Anode<\/strong> (the bent leg) and the <strong>Cathode<\/strong> (the straight one with a flattish side). In real life, the anode is a longer leg than the cathode.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"721\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_24.jpg\" alt=\"\" class=\"wp-image-1769\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_24.jpg 720w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_24-300x300.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_24-150x150.jpg 150w\" sizes=\"auto, (max-width: 720px) 85vw, 720px\" \/><\/figure><\/div>\n\n\n\n<p>The anode is linked to the power side of the circuit and the cathode goes to the ground side. If you flip them they might get hot but not light up. It\u2019s very important to know which is which when making a circuit.&nbsp;<\/p>\n\n\n\n<p>Put the LED on your breadboard. Make sure each leg is in a different \u201crow\u201d of the board.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_25.jpg\" alt=\"\" class=\"wp-image-1778\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_25.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_25-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_25-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Next pull out a <strong>Resistor<\/strong>. Now resistors have different values, providing more or less resistance. These are measured in Ohms (<strong>\u03a9<\/strong>). To change it here, go into the dropbox and find the singular <strong>\u03a9 <\/strong>symbol. Then in the box next to is put in <strong>220<\/strong>. You will see the bands on the resistor changes.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"411\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_26.jpg\" alt=\"\" class=\"wp-image-1779\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_26.jpg 330w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_26-241x300.jpg 241w\" sizes=\"auto, (max-width: 330px) 85vw, 330px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_27-1024x495.jpg\" alt=\"\" class=\"wp-image-1773\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_27-1024x495.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_27-300x145.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_27-768x372.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_27.jpg 1145w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>This is how you can tell what resistor is which resistance. If you want to learn more, you can read more <strong><a href=\"https:\/\/arduinotogo.com\/2017\/03\/10\/appendix-a-reading-resistor-codes\/\">HERE<\/a><\/strong>.<\/p>\n\n\n\n<p>Now resistors don\u2019t have a set \u201cpole\u201d, like the LED so you can put either end in either direction. You do have to place it on the same row on the breadboard as the anode (bent) leg. The other leg can go onto another row.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_28.jpg\" alt=\"\" class=\"wp-image-1780\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_28.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_28-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_28-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>On the same row as the resistor leg away from the LED, click the hole below and guide it to <strong>Pin 13<\/strong> on the Arduino. Make it blue with either the dropbox of hitting <strong>7<\/strong>.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_29.jpg\" alt=\"\" class=\"wp-image-1781\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_29.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_29-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_29-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_30.jpg\" alt=\"\" class=\"wp-image-1782\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_30.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_30-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_30-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Click the hole below the cathode (straight leg)and make a black wire to the ground row on the breadboard (marked with a <strong>&#8211;<\/strong>).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_31.jpg\" alt=\"\" class=\"wp-image-1784\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_31.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_31-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_31-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Then sun the simulator again. If you\u2019ve wired it correctly, the LED on the breadboard and the Arduino should both be blinking.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"828\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_32.gif\" alt=\"\" class=\"wp-image-1785\" \/><\/figure><\/div>\n\n\n\n<p>&nbsp;Pin 13 is always equated with the internal LED, so when you use that pin to light things up, chances are the LED will also turn on.<\/p>\n\n\n\n<p>Now that we have the basics down, let\u2019s go a little bit further.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>LED and Button:<\/strong><\/h2>\n\n\n\n<p>Drag a <strong>Pushbutton<\/strong> from the components window. Place it anywhere on the breadboard so long as it\u2019s straddling the trench.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_33.jpg\" alt=\"\" class=\"wp-image-1786\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_33.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_33-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_33-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Drag out the second resistor, change the dropdown to <strong>k<\/strong><strong>\u03a9<\/strong> and put <strong>10<\/strong> in the box. This should give you a 10k ohm resistor. Put one end into the ground row of the breadboard and the other in the same row as the bottom right leg of the pushbutton.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_34.jpg\" alt=\"\" class=\"wp-image-1787\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_34.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_34-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_34-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Underneath the bottom right leg of the button, make another blue wire and place it into <strong>Pin 2<\/strong> on the Arduino.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_35.jpg\" alt=\"\" class=\"wp-image-1788\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_35.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_35-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_35-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Underneath the bottom left leg of the button, make a red wire connecting to the power row on the breadboard.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_36.jpg\" alt=\"\" class=\"wp-image-1789\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_36.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_36-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_36-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Now back to the code! In the Arduino IDE go to <strong>File &gt; Examples &gt; 02. Digital &gt; Button<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"570\" height=\"870\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_37_EDIT.jpg\" alt=\"\" class=\"wp-image-1790\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_37_EDIT.jpg 570w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_37_EDIT-197x300.jpg 197w\" sizes=\"auto, (max-width: 570px) 85vw, 570px\" \/><\/figure><\/div>\n\n\n\n<p>As you can see, the code has changed and we have things outside of the void setup().&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>\/\/ const ints or constant integers, means they will never change no matter what. These are set outside the functions as universal variables that can be used anywhere in the code \n\nconst int buttonPin = 2;     \n\/\/ buttonPin is the shorthand for our button on Pin 2.\n\nconst int ledPin =  13;     \n\/\/ ledPin is the shorthand for our LED on Pin 13.\n\n\/\/ ints or integers, are variable, meaning they can change throughout the code.\n\nint buttonState = 0;         \n\/\/ buttonState is the current status of button. It defaults to 0, which means the button is off. \n\nvoid setup() {\n \/\/ This is setting up actions that will happen when the board is powered.\n  \npinMode(ledPin, OUTPUT);  \n\/\/ This is saying \u201chey, ledPin is an output, so send information out from there\u201d\n\n  pinMode(buttonPin, INPUT); \n\/\/ This is saying \u201chey, buttPin is an input, so get information from here\u201d\n\n}\n\/\/ End function\n\nvoid loop() {\n\/\/ Here is establishing action(s) will continue to repeat on a loop so long as the Arduino is powered.\n \nbuttonState = digitalRead(buttonPin);\n\n\/\/ Asking what is the current state of the button? And reading the information from the buttonPin.\n\nif (buttonState == HIGH) {\n\/\/ if the button is pushed\n\ndigitalWrite(ledPin, HIGH);\n\/\/ Send out the message to turn on the LED\n\n} else {\n\/\/ if the button is released or not pushed (0)\n\ndigitalWrite(ledPin, LOW);\n\/\/ Send out the signal and turn off the LED\n\n}\n}\n\/\/ End of code. This will continue so long as it\u2019s powered.\n<\/code><\/pre>\n\n\n\n<p><\/p>\n<\/div><\/div>\n\n\n\n<p>Verify your code id you\u2019re using the IDE, and copy and paste it into the code box on the Circuit Sim.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_38-1024x500.jpg\" alt=\"\" class=\"wp-image-1791\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_38-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_38-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_38-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_38-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_38-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_38.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Run simulation. When you click the button with your mouse, both LEDs should turn on.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"789\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_39.gif\" alt=\"\" class=\"wp-image-1792\" \/><\/figure><\/div>\n\n\n\n<p>Now we\u2019ve got two circuits under our belt. But there\u2019s one more to go!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>LED and Potentiometer:<\/strong><\/h2>\n\n\n\n<p>Back to the circuit! Remove everything but the LED and the 220 ohm resistor. Move your blue wire from Pin 13 to <strong>Pin 9<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_40.jpg\" alt=\"\" class=\"wp-image-1793\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_40.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_40-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_40-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Drag a <strong>Potentiometer<\/strong> from the components list. Make sure the dropdown box is set to <strong>k<\/strong><strong>\u03a9 <\/strong>and the box set to <strong>10<\/strong>&#8212; making it 10 k\u03a9.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_41.jpg\" alt=\"\" class=\"wp-image-1794\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_41.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_41-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_41-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Under the furthest right pin, make a red wire connecting to the power row on the breadboard.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_42.jpg\" alt=\"\" class=\"wp-image-1795\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_42.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_42-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_42-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Make a black wire from the furthest left to the ground row of the breadboard.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_43.jpg\" alt=\"\" class=\"wp-image-1796\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_43.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_43-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_43-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>Make a yellow wire (<strong>4<\/strong>) from the center pin and lead it to the pin <strong>A0<\/strong>.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"807\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_44.jpg\" alt=\"\" class=\"wp-image-1797\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_44.jpg 908w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_44-300x267.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_44-768x683.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>These are<strong> Analog Pins<\/strong>, which can take a wider range of signals compared to the <strong>Digital Pins<\/strong> we\u2019ve been using so far. Digital pins only take a digital signal, which is binary; so HIGH\/LOW or On\/Off. Which is what we want, as the potentiometer is just a fancy name for a dial which can be turned on increments as opposed to the on and off of a button.<\/p>\n\n\n\n<p>Once more again, back to IDE. Go to <strong>File &gt; Examples &gt; 03. Analog &gt; AnalogInOutSerial<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"545\" height=\"874\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_45_EDIT.jpg\" alt=\"\" class=\"wp-image-1798\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_45_EDIT.jpg 545w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_45_EDIT-187x300.jpg 187w\" sizes=\"auto, (max-width: 545px) 85vw, 545px\" \/><\/figure><\/div>\n\n\n\n<p>Once again you can also copy the code here as I break it down.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>const int analogInPin = A0;  \n\/\/ This is the shorthand for our Analog input, set to Pin A0.\n\nconst int analogOutPin = 9;\n\/\/ This is the shorthand for our output, which is the LED set to Pin 9.\n\nint sensorValue = 0; \n\/\/ The value read from the potentiometer, set to 0 as a default. \nint outputValue = 0;       \n\/\/ The value being sent out to LED; the larger the number the brighter the LED will be. Set to 0 as a default\n\nvoid setup() {\n  \nSerial.begin(9600);\n\/\/ Start a serial communication in the Arduino at 9600 bits a second\n}\n\nvoid loop() {\n \nsensorValue = analogRead(analogInPin);  \n\/\/ Reads the information from the potentiometer\n\noutputValue = map(sensorValue, 0, 1023, 0, 255);  \n\/\/ Take the information read from the potentiometer and map it to value that is equal the brightness of the LED.\n\nanalogWrite(analogOutPin, outputValue);  \n\/\/ print the results  of the readings to the Serial Monitor\n\nSerial.print(\"sensor = \");   \n\/\/ prints \u201csensor =\u201d in the Serial Monitor\n\nSerial.print(sensorValue);  \n\/\/prints the sensor value in the Serial Monitor\n\nSerial.print(\"\\t output = \");  \n\/\/prints \u201coutput=\u201d in a second row in the Serial Monitor\n\nSerial.println(outputValue);   \n\/\/prints the output value in the Serial Monitor\n\n  delay(2);  \/\/Have a 2 millisecond pause between each reading\n\n}\n\/\/Code end\n<\/code><\/pre>\n<\/div><\/div>\n\n\n\n<p>Verify the code in the IDE and move back to circuit sim.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_46-1024x500.jpg\" alt=\"\" class=\"wp-image-1799\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_46-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_46-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_46-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_46-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_46-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_46.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p>If you notice on the bottom there\u2019s something called the <strong>Serial Monitor<\/strong>. As you saw in the code, it prints out values so you can see them. This is good for gathering data or troubleshooting your sensors in the physical space. Open that up and run the simulation. If you\u2019ve set it up right you should be getting a rapid set of strings as you turn the potentiometer.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_47-1024x500.jpg\" alt=\"\" class=\"wp-image-1800\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_47-1024x500.jpg 1024w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_47-300x146.jpg 300w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_47-768x375.jpg 768w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_47-1536x750.jpg 1536w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_47-1200x586.jpg 1200w, https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_47.jpg 1920w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>You may also notice the LED going bright and dim as you turn the knob.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"829\" src=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-content\/uploads\/sites\/144\/2021\/03\/TCSim_48.gif\" alt=\"\" class=\"wp-image-1801\" \/><\/figure>\n\n\n\n<p>Congratulations! You\u2019ve touched some basics of physical computing&#8211; virtually. We encourage you to explore further with different circuits and different components.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Keyboard Shortcuts:<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Z <\/strong>&nbsp;Recenter project<\/li><li><strong>S&nbsp; <\/strong>Start\/Stop Simulation<\/li><li><strong>E<\/strong> or <strong>Num 5&nbsp; <\/strong>Open\/closes Code Editor<\/li><li><strong>C <\/strong>or <strong>Num 3<\/strong> &nbsp; Open\/closes Components<\/li><li><strong>Shift&nbsp; <\/strong>Hold and drag with the mouse to select and move multiple objects; by default everything will move.&nbsp;<\/li><li><strong>Ctrl\/Cmd + C <\/strong>&nbsp;&nbsp;Copy<\/li><li><strong>Ctrl\/Cmd + V<\/strong> &nbsp; Paste<\/li><li><strong>Ctrl\/Cmd + Z <\/strong>&nbsp;&nbsp;Undo<\/li><li><strong>Ctrl\/Cmd + Y<\/strong> &nbsp; Redo<\/li><li><strong>Ctrl\/Cmd + +&nbsp; <\/strong>Zoom In<\/li><li><strong>Ctrl\/Cmd + &#8211; <\/strong>&nbsp;Zoom Out<\/li><li><strong>Backspace<\/strong> or <strong>Delete<\/strong> &nbsp; Delete object<\/li><li><strong>R <\/strong>or<strong> F3 <\/strong>&nbsp;Rotate Object(s) Clockwise<\/li><li><strong>Shift + R<\/strong>&nbsp; or <strong>Shift + F3 <\/strong>&nbsp;Rotate Object(s) Counter Clockwise<\/li><li><strong>1 &#8211; 0&nbsp; <\/strong>Change the selected wire color during drawing<\/li><li><strong>Esc<\/strong>&nbsp; Deselect Object(s)<\/li><li><strong>Left <\/strong>\/ <strong>Right<\/strong> \/ <strong>Up<\/strong> \/ <strong>Down Arrows<\/strong> Moves selected object(s) by a large increment<\/li><li><strong>Shift<\/strong> + <strong>Left <\/strong>\/ <strong>Right<\/strong> \/ <strong>Up<\/strong> \/ <strong>Down Arrows <\/strong>Moves selected object(s) by a small increment<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Further Exploration:<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong><a href=\"https:\/\/docs.google.com\/presentation\/d\/1-DsKdHCB9VDz1kIZmpbB3CcpE09NDjgpefB96LQOMJw\/edit?usp=sharing\">(Virtual) Physical Computing Slideshow<\/a><\/strong><\/li><li><a href=\"https:\/\/www.arduino.cc\/en\/Guide\/HomePage\"><strong><em>Getting Started with Arduino<\/em><\/strong><\/a><\/li><li><a href=\"http:\/\/arduinotogo.com\/category\/intro-chapter\/\"><strong><em>Introduction to Arduino on Arduino to go<\/em><\/strong><\/a><\/li><li><a href=\"https:\/\/itp.nyu.edu\/physcomp\/\"><strong><em>Physical Computing page at ITP NYU<\/em><\/strong><\/a><\/li><li><a href=\"https:\/\/www.ted.com\/talks\/massimo_banzi_how_arduino_is_open_sourcing_imagination\"><strong><em>\u201cMassimo Banzi: How Arduino is open-Sourcing imagination\u201d<\/em><\/strong><\/a><strong><em>\u00a0<\/em><\/strong><\/li><li><a href=\"https:\/\/learn.adafruit.com\/\"><strong>Physical Computing Projects on Adafruit<\/strong><\/a><\/li><li><a href=\"https:\/\/www.youtube.com\/playlist?list=PLBcrWxTa5CS0u-rQNkGtLMg1yA7h56r6_\"><strong>Sparkfun\u2019s Adventures in Science YouTube Playlist<\/strong><\/a><\/li><li><a href=\"https:\/\/vimeo.com\/fddrsn\"><strong>Jeff Feddersen\u2019s Videos on Physical Computing &amp; Electricity<\/strong><\/a><\/li><li><a href=\"https:\/\/www.allaboutcircuits.com\/\"><strong>All About Circuits<\/strong><\/a><\/li><li><a href=\"https:\/\/www.allaboutcircuits.com\/tools\/resistor-color-code-calculator\/\"><strong>Resistor Code Calculator<\/strong><\/a><\/li><li><a href=\"http:\/\/www.ohmslawcalculator.com\/ohms-law-calculator\"><strong>Ohm\u2019s Law Calculator<\/strong><\/a><\/li><li><a href=\"https:\/\/www.rapidtables.com\/electric\/electrical_symbols.html\"><strong>Electrical Symbols Guide (For Datasheets and Schematics)<\/strong><\/a><\/li><li><a href=\"https:\/\/learn.sparkfun.com\/tutorials\/how-to-read-a-schematic\/all\"><strong>Reading a Schematic<\/strong><\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If you have been to or have read our Physical Computing Workshop and all of this looks familiar&#8211; it is! The difference between that workshop and this one is that this is designed to be done entirely virtually through Tinkercad\u2019s Circuit Simulator. This is great if you cannot obtain an Arduino kit for any reason, &hellip; <a href=\"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/physical-computing-virtual\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Physical Computing (Virtual)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":184,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"portfolio_post_id":0,"portfolio_citation":"","portfolio_annotation":"","openlab_post_visibility":"","footnotes":""},"class_list":["post-1731","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-json\/wp\/v2\/pages\/1731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-json\/wp\/v2\/users\/184"}],"replies":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-json\/wp\/v2\/comments?post=1731"}],"version-history":[{"count":15,"href":"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-json\/wp\/v2\/pages\/1731\/revisions"}],"predecessor-version":[{"id":1888,"href":"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-json\/wp\/v2\/pages\/1731\/revisions\/1888"}],"wp:attachment":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/makerspace\/wp-json\/wp\/v2\/media?parent=1731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}