SlideShare a Scribd company logo
1 of 2
TUGAS KULIAH MIKROKONTROLER
MUHAMAD IDRIS
14306141051
Running Teks Pada Sevent Segment
Alat dan Bahan
1. Arduino Uno
2. Ic- 74HC595
3. Resistor
4. 7-Segment
List Program pada Arduino IDE
PROGRAM RUNNING PADA 7-SEGMENT
intled;
voidsetup() {
for(led=2;led<=4; led++){
pinMode(led,OUTPUT);
}
}
byte pola[29]={
0b01100000, //I
0b01111010, //D
0b10001100, //R
0b01100000, //I
0b10110110, //S
0b00010000, //_
0b10001110, //F
0b01100000, //I
0b10110110, //S
0b00010000, //_
0b10011110, //E
0b00010000, //_
0b01100000, //1
0b01100110, //4
0b11110010, //3
0b11111100, //0
0b10111110, //6
0b01100000, //1
0b01100110, //4
0b01100000, //1
0b11111100, //0
0b10110110, //5
0b01100000, //1
0b00010000, //_
0b01111100, //U
0b11101100, //N
0b01110111, //Y
0b00010000, //_
0b00010000};
intstatus=0;
voidloop() {
for(ints=0;s<28; s++){
digitalWrite(3,0);
shiftOut(2,4,LSBFIRST,pola[s]);
digitalWrite(3,1);
delay(500);
}
}

More Related Content

Similar to Arduino with 7 segment

2003 presentation24
2003 presentation242003 presentation24
2003 presentation24Sarth Lodhi
 
Intel galileo gen 2
Intel galileo gen 2Intel galileo gen 2
Intel galileo gen 2srknec
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduinoelwalia
 
Lab #5_Revised  (Due 121315)This is a revision on the previous.docx
Lab #5_Revised  (Due 121315)This is a revision on the previous.docxLab #5_Revised  (Due 121315)This is a revision on the previous.docx
Lab #5_Revised  (Due 121315)This is a revision on the previous.docxVinaOconner450
 
Combine the keypad and LCD codes in compliance to the following requ.pdf
Combine the keypad and LCD codes in compliance to the following requ.pdfCombine the keypad and LCD codes in compliance to the following requ.pdf
Combine the keypad and LCD codes in compliance to the following requ.pdfforwardcom41
 
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGICANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGICSupanna Shirguppe
 
báo cáo thực hành kỹ thuật vi xử lý PTIT
báo cáo thực hành kỹ thuật vi xử lý PTITbáo cáo thực hành kỹ thuật vi xử lý PTIT
báo cáo thực hành kỹ thuật vi xử lý PTITnataliej4
 
CONFIGURING TIMERS FOR AUTOMATIC SWITCHING “ON AND OFF” OF IRRIGATION SYSTEMS...
CONFIGURING TIMERS FOR AUTOMATIC SWITCHING “ON AND OFF” OF IRRIGATION SYSTEMS...CONFIGURING TIMERS FOR AUTOMATIC SWITCHING “ON AND OFF” OF IRRIGATION SYSTEMS...
CONFIGURING TIMERS FOR AUTOMATIC SWITCHING “ON AND OFF” OF IRRIGATION SYSTEMS...ARUL S
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labAnnamaria Lisotti
 
Arduino_UNO _tutorial_For_Beginners.pptx
Arduino_UNO _tutorial_For_Beginners.pptxArduino_UNO _tutorial_For_Beginners.pptx
Arduino_UNO _tutorial_For_Beginners.pptxANIKDUTTA25
 
I made some more expansion board for M5Stack
I made some more expansion  board for M5StackI made some more expansion  board for M5Stack
I made some more expansion board for M5StackMasawo Yamazaki
 
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作Yuki Manno
 

Similar to Arduino with 7 segment (20)

mod-4.pptx
mod-4.pptxmod-4.pptx
mod-4.pptx
 
2003 presentation24
2003 presentation242003 presentation24
2003 presentation24
 
Intel galileo gen 2
Intel galileo gen 2Intel galileo gen 2
Intel galileo gen 2
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Lab #5_Revised  (Due 121315)This is a revision on the previous.docx
Lab #5_Revised  (Due 121315)This is a revision on the previous.docxLab #5_Revised  (Due 121315)This is a revision on the previous.docx
Lab #5_Revised  (Due 121315)This is a revision on the previous.docx
 
Combine the keypad and LCD codes in compliance to the following requ.pdf
Combine the keypad and LCD codes in compliance to the following requ.pdfCombine the keypad and LCD codes in compliance to the following requ.pdf
Combine the keypad and LCD codes in compliance to the following requ.pdf
 
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGICANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
 
publish manual
publish manualpublish manual
publish manual
 
báo cáo thực hành kỹ thuật vi xử lý PTIT
báo cáo thực hành kỹ thuật vi xử lý PTITbáo cáo thực hành kỹ thuật vi xử lý PTIT
báo cáo thực hành kỹ thuật vi xử lý PTIT
 
CONFIGURING TIMERS FOR AUTOMATIC SWITCHING “ON AND OFF” OF IRRIGATION SYSTEMS...
CONFIGURING TIMERS FOR AUTOMATIC SWITCHING “ON AND OFF” OF IRRIGATION SYSTEMS...CONFIGURING TIMERS FOR AUTOMATIC SWITCHING “ON AND OFF” OF IRRIGATION SYSTEMS...
CONFIGURING TIMERS FOR AUTOMATIC SWITCHING “ON AND OFF” OF IRRIGATION SYSTEMS...
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics lab
 
Arduino_UNO _tutorial_For_Beginners.pptx
Arduino_UNO _tutorial_For_Beginners.pptxArduino_UNO _tutorial_For_Beginners.pptx
Arduino_UNO _tutorial_For_Beginners.pptx
 
I made some more expansion board for M5Stack
I made some more expansion  board for M5StackI made some more expansion  board for M5Stack
I made some more expansion board for M5Stack
 
Arduino based applications part 1
Arduino based applications part 1Arduino based applications part 1
Arduino based applications part 1
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Amos command
Amos commandAmos command
Amos command
 
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
 
Arduino programming
Arduino programmingArduino programming
Arduino programming
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital Converter
 

Recently uploaded

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilVinayVitekari
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 

Recently uploaded (20)

FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 

Arduino with 7 segment

  • 1. TUGAS KULIAH MIKROKONTROLER MUHAMAD IDRIS 14306141051 Running Teks Pada Sevent Segment Alat dan Bahan 1. Arduino Uno 2. Ic- 74HC595 3. Resistor 4. 7-Segment List Program pada Arduino IDE PROGRAM RUNNING PADA 7-SEGMENT intled; voidsetup() { for(led=2;led<=4; led++){ pinMode(led,OUTPUT); } } byte pola[29]={ 0b01100000, //I 0b01111010, //D 0b10001100, //R 0b01100000, //I 0b10110110, //S 0b00010000, //_ 0b10001110, //F 0b01100000, //I 0b10110110, //S 0b00010000, //_ 0b10011110, //E 0b00010000, //_ 0b01100000, //1 0b01100110, //4 0b11110010, //3 0b11111100, //0 0b10111110, //6 0b01100000, //1 0b01100110, //4 0b01100000, //1 0b11111100, //0 0b10110110, //5 0b01100000, //1 0b00010000, //_ 0b01111100, //U 0b11101100, //N
  • 2. 0b01110111, //Y 0b00010000, //_ 0b00010000}; intstatus=0; voidloop() { for(ints=0;s<28; s++){ digitalWrite(3,0); shiftOut(2,4,LSBFIRST,pola[s]); digitalWrite(3,1); delay(500); } }