From the course: Learning Tinkercad

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Writing code for Arduino

Writing code for Arduino - Tinkercad Tutorial

From the course: Learning Tinkercad

Start my 1-month free trial

Writing code for Arduino

- [Instructor] You can use Tinkercad circuits to design code and test Arduino projects. Let's try it. We'll use one of Tinkercad's starter projects. It's on the dropdown menu, under starters, Arduino. Click and drag blink into the workspace, and then de-select. Then click code in the tool bar. These are code blocks and then make it really easy to write and alter code. On the left are the available blocks and on the right is the code for our project. The categories are color-coded, and in our example, we have gray comment blocks, blue output blocks, and orange control blocks. The gray title block describes the code. It blinks pin 13 of the Arduino. The first output code in blue sets the LED to high, which is on, and then it waits. And then the LED is set to low, which is off, and it waits. This is a blink pattern. Let's start the simulation to see the code in action. Try adjusting the first input and test the code…

Contents