Iot Simulator
Iot Simulator
• Tinkercad Simulator
– Create an Account
– Create a New Circuit
– Build a New Circuit
– Program with Arduino
– Simulate the Built Circuit
• If given a Class Code from teacher, select Student with Class Code.
Code
• 3D Design:
Design: Tinkercad is similar to a CAD software where you can design 3D models
for 3d printing. The CAD software is based on constructive solid geometry (CSG),
which allows users to create complex models by combining simpler objects
together.
• Circuits:
Circuits: This option helps create a virtual circuit, program it, and test it in real time.
• Codeblocks:
Codeblocks: This new feature helps you create a block programming tree, where
the 3D models are formed step by step following the tree instructions.
• This space is where we will place all the components. The components can be
moved around, edited, and wired together.
• This section holds all the components. Scroll down to access component types.
• Use this tab to rotate, delete, undo or redo. It also helps users to create and
name labels for components.
• This option helps you program Arduino, use serial monitor, start real time
simulation, export code, and share your projects.
void setup() {
// set up all the LEDs as OUTPUT
pinMode(led_red, OUTPUT);
pinMode(led_yellow, OUTPUT);
pinMode(led_green, OUTPUT);
}
void loop() {
// turn the green LED on and the other LEDs off
digitalWrite(led_red, LOW);
digitalWrite(led_yellow, LOW);
digitalWrite(led_green, HIGH);
delay(2000); // wait 2 seconds