Arduino: Ders 2
Arduino: Ders 2
Arduino: Ders 2
DERS 2
• Go to www.arduino.cc
• Under Downloads tab, go for Software.
• Download an appropriate Arduino IDE for your platform.
• Install the downloaded file.
• Open Blink from examples and try loading it to your Arduino.
TINKERCAD CIRCUITS
• https://www.tinkercad.com/circuits
• It requires an AutoDesk account which can be created by getting registered
to the website.
• You can simulate the circuit by drawing it and loading the code to the Arduino.
BLINK EXAMPLE
CODE
• Blocks:
• setup
• loop
• Functions
• Name
• Inputs as Parameters or Arguments
• Output
• pinMode sets the specified pin to be an input our output (in this case we pass
OUTPUT as the second parameter
pinMode(led,OUTPUT);
• digitalWrite Setting a specified pin OUTPUT status.
digitalWrite(led, HIGH);
• delay pauses the program for a number of milliseconds (thousandths of a second)
which is passed as its parameter:
delay(1000);
SIMULATION
• TinkerCAD