WATCH THIS TUTORIAL. CLICK HERE
Click here to watch the video tutorial.
Scroll down to the bottom of this page for sample code.
- Begin by logging into www.tinkercad.com. You will need to create a tinkercad.com account if necessary.
- Look on the left side menu and click on Circuits. Then create a new circuit by clicking onto green button labeled “Create new Circuit”.
- Drag a breadboard (if it’s not already there) and an Arduino Uno onto your work surface.
- Click on Code Editor on the top menu bar.
- Click on the blue button labeled “Block”. A window will pop up asking if you want to close the blocks editor. Click OK.
- Delete all the code. All of it.
- Now enter the program below into the code editor. You don’t need to type the line numbers on the left side.
- Click Upload and Run. What happens? Note: use the scroll wheel on your mouse to zoom in and out.
- Click the “Stop Simulation” button on the top menu bar.
- Now experiment:
- change the line below to read int red=12; – what happens?
- change it back to 13 and what happens?
- change the delay value in parentheses to something other than 1000. What happens? What does 1000 represent?
- Done? Go to Part 2.