Professional Documents
Culture Documents
Design the circuit on Tinkercad / Arduino Uno Board to interface Led with Arduino Uno
and to design different patterns (i.e. blinking 1 LED)
Software requirements
• Arduino 2.2.1 IDE
3. Circuit Diagram (TinkerCad):
4. Coding:
int ledPin=8; //definition digital 8 pins as pin to control the LED
void setup()
{
pinMode(ledPin,OUTPUT); //Set the digital 8 port mode, OUTPUT: Output mode
}
void loop()
{
digitalWrite(ledPin,HIGH); //HIGH is set to about 5V PIN8
delay(1000); //Set the delay time, 1000 = 1S
digitalWrite(ledPin,LOW); //LOW is set to about 5V PIN8
delay(1000); //Set the delay time, 1000 = 1S
}
5. Precautions:
1. Power Supply: Ensure the Arduino Uno is powered within the specified voltage range (5V). Avoid
over-voltage, as it may damage the board.
2. Component Compatibility: Verify that all connected components (sensors, actuators, etc.) are
compatible with Arduino Uno's pins and voltage levels to prevent damage.
3. Static Electricity: Handle the board and components in an anti-static environment to prevent
electrostatic discharge, which can harm sensitive electronic components.
4. Code Safety: Review and debug your code thoroughly to prevent unintended consequences or
overloading the board. Implement safeguards in your code to handle unexpected situations.
Date:
Teacher Signature