SlideShare a Scribd company logo
2
Most read
NUR ZARIFAH BINTI ZAKARIA
(16DTK20F1021)
NURUL INSYIRAH BINTI JUSMI JUARDI
(16DTK20F1027)
SHAVITRA A/P SUGUMARAN
(16DTK20F1024)
ILHAN HEZLY BIN HARIMAN
(16DTK20F1023)
LECT NAME : PUAN ZUNAINAH
DEC 20012:FUNDAMENTAL
PROGRAMMING
I.INTRODUCTION
The C programming language is a computer programming
language that was developed to do system programming for
the operating system UNIX and is an imperative
programming language. C was developed in the early 1970’s
by Ken Thompson and Dennis Ritchie at Bell Labs. C is a
compiled language. Array are data structured consisting of
related data items of the same type. For loop in C language is
used to iterate the statements or a part of the program
several times. It is frequently used to traverse the data
structures like the array and linked it. Function contains the
set of programming statements enclosed by{}A function can
called multiple times to provide reusability and modularity to
the C program.Arduino is an open-source electronics
platform based on easy-to-use hardware and software.
Arduino boards are able to read inputs - light on a sensor, a
finger on a button, or a Twitter message - and turn it into an
output - activating a motor, turning on an LED, publishing
something online. Led pattern starts from right to left.
Blinking. Then from left to right starts light up then swipe
back to the left light out. Every resistor controlling every LED.
pinMode(ledPins[i],OUTPUT);
}
}
void loop()
{
RunRight();
RunLeft();
}
void RunRight()
{
for (int i=0; i<11; i++)
{
digitalWrite(ledPins[i],HIGH);
delay(100);
digitalWrite(ledPins[i+1],HIGH);
delay(100);
digitalWrite(ledPins[i],LOW);
delay(5);
}
}
void RunLeft()
{
for(int i=10; i>0; i--)
{
digitalWrite(ledPins[i],HIGH);
delay(100);
digitalWrite(ledPin{
for(int i=0;i<11;i++)
{
pinMode(ledPins[i],OUTPUT);
}
}
ents, it must declare variables that accept the
II.METHADOLOGY
A. Selection
if (int i = 10)
B. Array
int ledPins[ ]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
C. Function
Void blinkRowon ( )
blinkRowon ( );
D. Loop
for (int i= 0; i<11 ; i++)
for (int i= 10; i>0 ; i--)
III. CODE PROGRAM
// C++ code
//
int ledPins[ ]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
void setup()
{
for(int i=0;i<11;i++) {
pinMode(ledPins[i],OUTPUT);
}
}
IV. DISCUSSION
First of all, we need some material to build this
project. We need 10 x LED, 10 x 220 ohm
resistor, 12 x connection wires, breadboard,
Arduino Uno for this Mini Project. Thus, we
need to install the breadboard as a base. After
the installation we need to build a coding. In
process to make a coding you should know to
put LED as your variable first. Furthermore, you
should make sure that it blink after the coding
to avoid errors. Moreover, you should know
how to connect to Arduino. Lastly, give the
project to check with lecturer and submit it.
IV. CONCLUSION
As a conclusion, our team learned how to
construct a mini project for LED Blink Using
Arduino Uno. We used the Loop, Array,
Function and Selection statement to solve
each of the problem successfully. The
process of ‘compile’ was very important to
this work, one small mistake and we are
done. So, we did every step carefully and
followed every instruction that were given
by our lecturer. It also a new way to begin
programming robotics and other projects.
By following the correct instructions, we
have done the project successfully.

More Related Content

PPTX
Bab 3 (institusi islam)
PPTX
Pengaruh barat dalam kebudayaan melayu
PPT
kerja kursus geo 2013,,,,,,,,,,,don't copy
DOC
Penghargaan
PPTX
MPU21032 PERANAN SELAT MELAKA SEBAGAI GELANGGANG KEPELBAGAIAN
DOCX
Kerja kursus titas
PPTX
Bab 2 bantuan kecemasan
PPTX
Jawatankuasa hubungan antara kaum- hubungan etnik
Bab 3 (institusi islam)
Pengaruh barat dalam kebudayaan melayu
kerja kursus geo 2013,,,,,,,,,,,don't copy
Penghargaan
MPU21032 PERANAN SELAT MELAKA SEBAGAI GELANGGANG KEPELBAGAIAN
Kerja kursus titas
Bab 2 bantuan kecemasan
Jawatankuasa hubungan antara kaum- hubungan etnik

What's hot (20)

PDF
TEOREM THEVENIN & TEOREM NORTON
PDF
PPTX
Penentangan Terhadap Malayan Union
PPTX
Pendidikan tamadun awal
DOCX
Contoh rumusan
PPTX
Pengajian AM Demokrasi dan Pilihanraya
PPTX
Faktor-faktor kebangkitan Nasionalisme di china
PPT
Langkah-langkah membanteras komunis
PDF
8.0 keelektromagnetan
PPTX
Budaya & adat resam Kaum India
PPTX
Kesan Ekonomi Kapitalis
PPTX
Dasar pendidikan mesopotamia dan mesir
PPTX
SEJARAH ISLAM : Salahudin ayyubi
DOCX
Latihan Trigonometri 1
DOCX
Modul 3 matriks
PPTX
Sejarah STPM Penggal 3 Reaksi Pembentukan Malaysia
PPTX
Pembentangan MUZK3193 Gamelan Melayu
PPTX
Ketahanan dan pertahanan tamadun
PDF
KAJIAN KES SEJARAH.pdf
PPTX
Perjanjian inggeris belanda 1824
TEOREM THEVENIN & TEOREM NORTON
Penentangan Terhadap Malayan Union
Pendidikan tamadun awal
Contoh rumusan
Pengajian AM Demokrasi dan Pilihanraya
Faktor-faktor kebangkitan Nasionalisme di china
Langkah-langkah membanteras komunis
8.0 keelektromagnetan
Budaya & adat resam Kaum India
Kesan Ekonomi Kapitalis
Dasar pendidikan mesopotamia dan mesir
SEJARAH ISLAM : Salahudin ayyubi
Latihan Trigonometri 1
Modul 3 matriks
Sejarah STPM Penggal 3 Reaksi Pembentukan Malaysia
Pembentangan MUZK3193 Gamelan Melayu
Ketahanan dan pertahanan tamadun
KAJIAN KES SEJARAH.pdf
Perjanjian inggeris belanda 1824
Ad

Similar to REPORT MINI PROJECT.docx (20)

PPTX
Introduction to C Programming
DOCX
Report on c and c++
PPTX
Build 2016 - B880 - Top 6 Reasons to Move Your C++ Code to Visual Studio 2015
DOCX
Lab Manual Arduino UNO Microcontrollar.docx
PDF
arduino
PDF
C Programming Tutorial - www.infomtec.com
PPT
Introduction
PDF
1 c introduction
PPTX
arduinoedit.pptx
ODP
Introduction to Raspberry Pi and GPIO
PDF
Introduction to Programming using C/C++
PPT
C introduction by piyushkumar
PPTX
Btech i pic u-1 introduction to c language
DOCX
Programming in c
PPTX
Diploma ii cfpc u-1 introduction to c language
PPTX
introduction to c language
PDF
Better Code: Concurrency
PPTX
Bsc cs i pic u-1 introduction to c language
PDF
IoT Development from Software Developer Perspective
PDF
Ardx eg-spar-web-rev10
Introduction to C Programming
Report on c and c++
Build 2016 - B880 - Top 6 Reasons to Move Your C++ Code to Visual Studio 2015
Lab Manual Arduino UNO Microcontrollar.docx
arduino
C Programming Tutorial - www.infomtec.com
Introduction
1 c introduction
arduinoedit.pptx
Introduction to Raspberry Pi and GPIO
Introduction to Programming using C/C++
C introduction by piyushkumar
Btech i pic u-1 introduction to c language
Programming in c
Diploma ii cfpc u-1 introduction to c language
introduction to c language
Better Code: Concurrency
Bsc cs i pic u-1 introduction to c language
IoT Development from Software Developer Perspective
Ardx eg-spar-web-rev10
Ad

Recently uploaded (20)

PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
1_English_Language_Set_2.pdf probationary
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
Empowerment Technology for Senior High School Guide
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
HVAC Specification 2024 according to central public works department
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
Hazard Identification & Risk Assessment .pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
1_English_Language_Set_2.pdf probationary
What if we spent less time fighting change, and more time building what’s rig...
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Empowerment Technology for Senior High School Guide
A powerpoint presentation on the Revised K-10 Science Shaping Paper
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
AI-driven educational solutions for real-life interventions in the Philippine...
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
Weekly quiz Compilation Jan -July 25.pdf
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
HVAC Specification 2024 according to central public works department
My India Quiz Book_20210205121199924.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
History, Philosophy and sociology of education (1).pptx
TNA_Presentation-1-Final(SAVE)) (1).pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Hazard Identification & Risk Assessment .pdf

REPORT MINI PROJECT.docx

  • 1. NUR ZARIFAH BINTI ZAKARIA (16DTK20F1021) NURUL INSYIRAH BINTI JUSMI JUARDI (16DTK20F1027) SHAVITRA A/P SUGUMARAN (16DTK20F1024) ILHAN HEZLY BIN HARIMAN (16DTK20F1023) LECT NAME : PUAN ZUNAINAH DEC 20012:FUNDAMENTAL PROGRAMMING I.INTRODUCTION The C programming language is a computer programming language that was developed to do system programming for the operating system UNIX and is an imperative programming language. C was developed in the early 1970’s by Ken Thompson and Dennis Ritchie at Bell Labs. C is a compiled language. Array are data structured consisting of related data items of the same type. For loop in C language is used to iterate the statements or a part of the program several times. It is frequently used to traverse the data structures like the array and linked it. Function contains the set of programming statements enclosed by{}A function can called multiple times to provide reusability and modularity to the C program.Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing something online. Led pattern starts from right to left. Blinking. Then from left to right starts light up then swipe back to the left light out. Every resistor controlling every LED. pinMode(ledPins[i],OUTPUT); } } void loop() { RunRight(); RunLeft(); } void RunRight() { for (int i=0; i<11; i++) { digitalWrite(ledPins[i],HIGH); delay(100); digitalWrite(ledPins[i+1],HIGH); delay(100); digitalWrite(ledPins[i],LOW); delay(5); } } void RunLeft() { for(int i=10; i>0; i--) { digitalWrite(ledPins[i],HIGH); delay(100); digitalWrite(ledPin{ for(int i=0;i<11;i++) { pinMode(ledPins[i],OUTPUT); } } ents, it must declare variables that accept the II.METHADOLOGY A. Selection if (int i = 10) B. Array int ledPins[ ]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; C. Function Void blinkRowon ( ) blinkRowon ( ); D. Loop for (int i= 0; i<11 ; i++) for (int i= 10; i>0 ; i--) III. CODE PROGRAM // C++ code // int ledPins[ ]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; void setup() { for(int i=0;i<11;i++) { pinMode(ledPins[i],OUTPUT); } }
  • 2. IV. DISCUSSION First of all, we need some material to build this project. We need 10 x LED, 10 x 220 ohm resistor, 12 x connection wires, breadboard, Arduino Uno for this Mini Project. Thus, we need to install the breadboard as a base. After the installation we need to build a coding. In process to make a coding you should know to put LED as your variable first. Furthermore, you should make sure that it blink after the coding to avoid errors. Moreover, you should know how to connect to Arduino. Lastly, give the project to check with lecturer and submit it. IV. CONCLUSION As a conclusion, our team learned how to construct a mini project for LED Blink Using Arduino Uno. We used the Loop, Array, Function and Selection statement to solve each of the problem successfully. The process of ‘compile’ was very important to this work, one small mistake and we are done. So, we did every step carefully and followed every instruction that were given by our lecturer. It also a new way to begin programming robotics and other projects. By following the correct instructions, we have done the project successfully.