SlideShare a Scribd company logo
1 of 27
hundreds
One Cube


           O
           F
           POSSIBILITI
Making of


          VIDEO

FOR MORE VIDEOS: VISIT WWW.INSTRUCTABLES.COM
PARTS USED
        RESISTORS
(limit current flow in the circuit)

             LEDs
     (Light Emitting Diode)




            TRANSISTORS
             (serves as a switch)
0V                                   5V


                          220                                  220

                      +                                       +
                                LED                                  ( LED light up)
                                OFF
                      -                                       -
                 C                                        C
      22 K                                     22 K
             B             OFF                        B        Transistor
 0V                                     5V
                                                                   ON
                 E                                        E
                           transistor




When the transistor is OFF,                  When the transistor is ON,
LED turns OFF                                LED turns ON
LED 1         LED 2      LED 3      LED 4     LED 5     LED 6    LED 7     LED 8     LED 9

                       5V          5V         5V

                             220        220        220       220       220      220       220       220      220


                      +
                 ON           ON           ON
                       -
Level 1               C
          22 K
                 B                                    Common Cathode ( negative terminal)
 5V                          Transistor
                      E
                                 ON
Light stays
               off


      5V
            +              +   +




LOW

                     OFF
Light turns
                on

       5V
             +             +   +




HIGH

                      ON
   Apply 5V (logic high) at terminal LED1
   Apply 3.3V (logic high) at terminal Level 1 (LVL 1)
   Connect a jumper wire between two GND terminal




                                   5V




                                 3.3V
The Arduino board is a small micro-controller
board, which is a small circuit that contains a
whole computer on a small chip (Atmega 328),
the heart of the board.
Built in LED
connected to
pin13




                         Atmega 328
The Arduino board consists of the following I/O ports:
    14 digital IO pins (pins 0–13/ logic ‘High’- 5V, ‘Low’– 0V)
    6 analogue In pins (pins 0–5)
    6 analogue Out pins (pins 3, 5, 6, 9, 10, and 11)
   Arduino software is free, Open source
    programming plateform.

   Source code for Arduino is called a sketch.
   Directory: D:/ arduino-1.0/ double click arduino
            Upload



Verify
(compile)




                     Sketch Editor Window
Verify
         Upload to I/O board




                               Core
                               program


    Your sketch goes here
   Arduino expects two functions to exist
    —one called setup() and one called loop().

   setup() {
        pinMode (13, Output)      - assign pin 13 as Output
    }

   loop() contains the core of your program.
        digitalWrite (13, High)   - turn on the built in LED connected to pin13
        delay (1000)              - wait for a secoond
        digitalWrite (13, LOW)    - turn off the LED
        delay (1000)              - wait for a second.
Upload
Verify




         Done compiling                  Done uploading




                          To display error message
const int LED1 = 1; // connect LED 1 to pin 1
const int L1= 10;   // connect Level 1 to pin 10

void setup()
{ pinMode (LED1, OUTPUT); // declare LED1 as an OUTPUT
  pinMode (L1, OUTPUT);   // declare Level 1 as an OUTPUT
}

void loop()
{
  digitalWrite (L1, HIGH);    // turn on Level 1 transistor
  digitalWrite (LED1, HIGH); // turn on LED1
  delay (200);                // delay for 200ms
  digitalWrite (LED1, LOW);   // turn off LED1
  delay(100);                // delay for 100ms
}
const int LED1 = 1;    // connect LED 1 to pin 1
const int LED2 = 2;    // connect LED 2 to pin 2
const int LED3 = 3;   // connect LED 1 to pin 3
const int L1= 10;     // connect Level 1 to pin 10

void setup()
{ pinMode (LED1, OUTPUT);       // declare LED1 as an OUTPUT
  pinMode (LED2, OUTPUT);       // declare LED2 as an OUTPUT
  pinMode (LED3, OUTPUT);       // declare LED3 as an OUTPUT
  pinMode (L1, OUTPUT);        // declare Level 1 as an OUTPUT
}

void loop()
{
  digitalWrite (L1, HIGH);    // turn on Level 1 transistor
  digitalWrite (LED1, HIGH); // turn on LED1
  delay (200);                // delay for 200ms
  digitalWrite (LED1, LOW); // turn off LED1
  delay(100);                // delay for 100ms
  -----------
   ----------
                          To be continued
}
   The for statement lets us do things over and over again, for a
    specified number of repetitions.

   The integer i is used to set the number of times that the loop will
    execute, running all the code inside the code block.




   In the for loop, as long as i is less than 10, it will continue looping,
    and each time the for loop is passed, i is incremented by 1.
Example:
int i ; // declare i as an integer
for(i = 0; i<5; i++) {          Execute Print
print(i);                       function when i
                                is 0 to 4
}

Or
for (int i=0; i<5; i++) {
Print(i);
}
void loop()
{                                       Specify 3 loops that
  for (int i = 0; i < 3; i ++)          core program will
  {                                     execute
        digitalWrite ( L1, HIGH );
        digitalWrite ( LED1, HIGH );
        delay (200);
        digitalWrite ( LED1, LOW) ;    Core program:
        delay (100);
        digitalWrite (LED2, HIGH );    LED 1, 2, 3 will turn
        delay (200);                   ON & OFF in
        digitalWrite ( LED2, LOW );    sequence
        delay (100);
        digitalWrite ( LED3, HIGH );
        delay (200);
        digitalWrite ( LED3, LOW );
        delay (100);
   }
                                        Turn off all LEDs for
  digitalWrite ( L1, LOW);
                                        1 sec
  delay (1000 ) ;
}
   An array contains one or more variables in a list.
   The array shown below is an array that holds three integer
    values: 1,2,3
Number of
                                variables

                int LevelPin [3] = { 10, 11, 12 };
Type of array
                    Name of                 List of variables
content
                    the array




                  i.e      LevelPin [0] = 10
                           LevelPin [1] = 11
                           LevelPin [2] = 12
Another great use of the for loop is to go through an array
and look at each item in the array:

for ( int level=0; level <3; level++)
     { pinMode (LevelPin[level], OUTPUT ); }

Each time the loop executes, level will be incremented using
the next integer in the Array[ ]
            pinMode (LevelPin[0], OUTPUT );

            pinMode (LevelPin[1], OUTPUT );

            pinMode (LevelPin[2], OUTPUT );
for (level=0; level< 3; level++)
 {
 digitalWrite ( LevelPin[level], HIGH );
 digitalWrite ( LED1, HIGH );
 digitalWrite ( LED2, HIGH );
                  :
                  :

 digitalWrite ( LED9, HIGH );
 delay (100);

 digitalWrite ( LED1, LOW );
 digitalWrite ( LED2, LOW );
                  :
                  :
 digitalWrite ( LED9, LOW );
 digitalWrite ( LevelPin[level], LOW );
 delay(50);
 }
LED Cube Presentation Slides

More Related Content

What's hot

Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontrollerVandna Sambyal
 
Temperature Control Fan Using 8051 Microcontroller
Temperature Control Fan Using 8051 MicrocontrollerTemperature Control Fan Using 8051 Microcontroller
Temperature Control Fan Using 8051 MicrocontrollerMafaz Ahmed
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino unoRahat Sood
 
Ultrasonic security system by arduino
Ultrasonic security system by arduinoUltrasonic security system by arduino
Ultrasonic security system by arduinoFarzanaMoli1
 
Introduction To Embedded Systems
Introduction To Embedded SystemsIntroduction To Embedded Systems
Introduction To Embedded Systemsanishgoel
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduinoavikdhupar
 
Getting started with Keil uVision 2020
Getting started with Keil uVision 2020Getting started with Keil uVision 2020
Getting started with Keil uVision 2020SaravananVijayakumar4
 

What's hot (20)

Arduino lcd display
Arduino lcd displayArduino lcd display
Arduino lcd display
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
 
ARDUINO CORSO BASE
ARDUINO CORSO BASEARDUINO CORSO BASE
ARDUINO CORSO BASE
 
Final Year Project
Final Year ProjectFinal Year Project
Final Year Project
 
Temperature Control Fan Using 8051 Microcontroller
Temperature Control Fan Using 8051 MicrocontrollerTemperature Control Fan Using 8051 Microcontroller
Temperature Control Fan Using 8051 Microcontroller
 
Intro to Arduino.ppt
Intro to Arduino.pptIntro to Arduino.ppt
Intro to Arduino.ppt
 
Dsss phy
Dsss phyDsss phy
Dsss phy
 
Avr and arm
Avr and armAvr and arm
Avr and arm
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
Arduino presentation
Arduino presentationArduino presentation
Arduino presentation
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
 
Arduino course
Arduino courseArduino course
Arduino course
 
Ultrasonic security system by arduino
Ultrasonic security system by arduinoUltrasonic security system by arduino
Ultrasonic security system by arduino
 
Introduction To Embedded Systems
Introduction To Embedded SystemsIntroduction To Embedded Systems
Introduction To Embedded Systems
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Arduino presentation
Arduino presentationArduino presentation
Arduino presentation
 
Lcd
LcdLcd
Lcd
 
Getting started with Keil uVision 2020
Getting started with Keil uVision 2020Getting started with Keil uVision 2020
Getting started with Keil uVision 2020
 
VEDIC MULTIPLIER FOR "FPGA"
VEDIC MULTIPLIER FOR "FPGA"VEDIC MULTIPLIER FOR "FPGA"
VEDIC MULTIPLIER FOR "FPGA"
 
Arduino Thermometer
Arduino ThermometerArduino Thermometer
Arduino Thermometer
 

Viewers also liked

8TH FINAL REPORT PRINT
8TH FINAL REPORT PRINT8TH FINAL REPORT PRINT
8TH FINAL REPORT PRINTAnand Shah
 
3d cube building cube by cube powerpoint presentation templates
3d cube building cube by cube powerpoint presentation templates3d cube building cube by cube powerpoint presentation templates
3d cube building cube by cube powerpoint presentation templatesSlideTeam.net
 
LED UV Cube presentation
LED UV Cube presentationLED UV Cube presentation
LED UV Cube presentationiwanmanew
 
Translational R&D and Innovation Fund (TIF) - MoE
Translational R&D and Innovation Fund (TIF) - MoETranslational R&D and Innovation Fund (TIF) - MoE
Translational R&D and Innovation Fund (TIF) - MoEjoserojasnus
 
How to solve 3x3x3 cube
How to solve 3x3x3 cubeHow to solve 3x3x3 cube
How to solve 3x3x3 cubegkh8004
 
8x8x8 rgb led cube
8x8x8 rgb led cube8x8x8 rgb led cube
8x8x8 rgb led cubesmching
 
Đồ án thi công mạch LED Cube 5x5x5
Đồ án thi công mạch LED Cube 5x5x5Đồ án thi công mạch LED Cube 5x5x5
Đồ án thi công mạch LED Cube 5x5x5Mr Giap
 
Avs nanotechnology and genetic engineering for plant pathology seminar 2015 a...
Avs nanotechnology and genetic engineering for plant pathology seminar 2015 a...Avs nanotechnology and genetic engineering for plant pathology seminar 2015 a...
Avs nanotechnology and genetic engineering for plant pathology seminar 2015 a...AMOL SHITOLE
 
93639430 additional-mathematics-project-work-2013
93639430 additional-mathematics-project-work-201393639430 additional-mathematics-project-work-2013
93639430 additional-mathematics-project-work-2013Rashmi R Rashmi R
 
Nano technology in ervironmental engineering
Nano technology in ervironmental engineeringNano technology in ervironmental engineering
Nano technology in ervironmental engineeringVishnu Raj
 
Nanotechnology in water pollution treatment
Nanotechnology in water pollution treatmentNanotechnology in water pollution treatment
Nanotechnology in water pollution treatmentUniversity of Technology
 
Presentation on project report
Presentation on project reportPresentation on project report
Presentation on project reportramesh_x
 
State of the Word 2011
State of the Word 2011State of the Word 2011
State of the Word 2011photomatt
 

Viewers also liked (18)

Led cube
Led cube Led cube
Led cube
 
8TH FINAL REPORT PRINT
8TH FINAL REPORT PRINT8TH FINAL REPORT PRINT
8TH FINAL REPORT PRINT
 
3d cube building cube by cube powerpoint presentation templates
3d cube building cube by cube powerpoint presentation templates3d cube building cube by cube powerpoint presentation templates
3d cube building cube by cube powerpoint presentation templates
 
LED UV Cube presentation
LED UV Cube presentationLED UV Cube presentation
LED UV Cube presentation
 
Translational R&D and Innovation Fund (TIF) - MoE
Translational R&D and Innovation Fund (TIF) - MoETranslational R&D and Innovation Fund (TIF) - MoE
Translational R&D and Innovation Fund (TIF) - MoE
 
self driven ca
self driven caself driven ca
self driven ca
 
How to solve 3x3x3 cube
How to solve 3x3x3 cubeHow to solve 3x3x3 cube
How to solve 3x3x3 cube
 
8x8x8 rgb led cube
8x8x8 rgb led cube8x8x8 rgb led cube
8x8x8 rgb led cube
 
The Final 10%
The Final 10%The Final 10%
The Final 10%
 
Đồ án thi công mạch LED Cube 5x5x5
Đồ án thi công mạch LED Cube 5x5x5Đồ án thi công mạch LED Cube 5x5x5
Đồ án thi công mạch LED Cube 5x5x5
 
Avs nanotechnology and genetic engineering for plant pathology seminar 2015 a...
Avs nanotechnology and genetic engineering for plant pathology seminar 2015 a...Avs nanotechnology and genetic engineering for plant pathology seminar 2015 a...
Avs nanotechnology and genetic engineering for plant pathology seminar 2015 a...
 
Nanotechnology
NanotechnologyNanotechnology
Nanotechnology
 
Shreya ppt
Shreya pptShreya ppt
Shreya ppt
 
93639430 additional-mathematics-project-work-2013
93639430 additional-mathematics-project-work-201393639430 additional-mathematics-project-work-2013
93639430 additional-mathematics-project-work-2013
 
Nano technology in ervironmental engineering
Nano technology in ervironmental engineeringNano technology in ervironmental engineering
Nano technology in ervironmental engineering
 
Nanotechnology in water pollution treatment
Nanotechnology in water pollution treatmentNanotechnology in water pollution treatment
Nanotechnology in water pollution treatment
 
Presentation on project report
Presentation on project reportPresentation on project report
Presentation on project report
 
State of the Word 2011
State of the Word 2011State of the Word 2011
State of the Word 2011
 

Similar to LED Cube Presentation Slides

How to hack electronics
How to hack electronics How to hack electronics
How to hack electronics Planning-ness
 
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.pptShivamChaturvedi67
 
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.pptEngrMaheshMaheshwari1
 
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT (1).ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT (1).ppt_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT (1).ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT (1).pptMdSazibMollik
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptxHebaEng
 
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
 
Integrated circuit
Integrated circuitIntegrated circuit
Integrated circuitcooljunk
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshopatuline
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalTony Olsson.
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalTony Olsson.
 
Electronz_Chapter_2.pptx
Electronz_Chapter_2.pptxElectronz_Chapter_2.pptx
Electronz_Chapter_2.pptxMokete5
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshopKedarv
 

Similar to LED Cube Presentation Slides (20)

How to hack electronics
How to hack electronics How to hack electronics
How to hack electronics
 
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt
 
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT.ppt
 
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT (1).ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT (1).ppt_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT (1).ppt
_8_EE462L_Fall2011_DC_DC_BuckBoost_PPT (1).ppt
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
 
Sepic converter
Sepic  converterSepic  converter
Sepic converter
 
Programming arduino makeymakey
Programming arduino makeymakeyProgramming arduino makeymakey
Programming arduino makeymakey
 
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
 
Dio
DioDio
Dio
 
Arduino based applications part 1
Arduino based applications part 1Arduino based applications part 1
Arduino based applications part 1
 
Integrated circuit
Integrated circuitIntegrated circuit
Integrated circuit
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
 
Arduino Basics
Arduino BasicsArduino Basics
Arduino Basics
 
Intro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptxIntro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptx
 
Day1
Day1Day1
Day1
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
 
Electronz_Chapter_2.pptx
Electronz_Chapter_2.pptxElectronz_Chapter_2.pptx
Electronz_Chapter_2.pptx
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshop
 
Prese000
Prese000Prese000
Prese000
 

Recently uploaded

GURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON ESCORTS SERVICE PROVIDE
GURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON  ESCORTS SERVICE PROVIDEGURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON  ESCORTS SERVICE PROVIDE
GURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON ESCORTS SERVICE PROVIDEkajalroy875762
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxCynthia Clay
 
Goa Call Girls Just Call 👉📞9731111159 Top Class Call Girl Service Available
Goa Call Girls Just Call 👉📞9731111159 Top Class Call Girl Service AvailableGoa Call Girls Just Call 👉📞9731111159 Top Class Call Girl Service Available
Goa Call Girls Just Call 👉📞9731111159 Top Class Call Girl Service AvailableCall Girls Mumbai
 
2024 May - Clearbit Integration with Hubspot - Greenville HUG.pptx
2024 May - Clearbit Integration with Hubspot  - Greenville HUG.pptx2024 May - Clearbit Integration with Hubspot  - Greenville HUG.pptx
2024 May - Clearbit Integration with Hubspot - Greenville HUG.pptxBoundify
 
Falcon Invoice Discounting: Aviate Your Cash Flow Challenges
Falcon Invoice Discounting: Aviate Your Cash Flow ChallengesFalcon Invoice Discounting: Aviate Your Cash Flow Challenges
Falcon Invoice Discounting: Aviate Your Cash Flow Challengeshemanthkumar470700
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel
 
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptxQSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptxDitasDelaCruz
 
Managerial Accounting 5th Edition by Stacey Whitecotton test bank.docx
Managerial Accounting 5th Edition by Stacey Whitecotton test bank.docxManagerial Accounting 5th Edition by Stacey Whitecotton test bank.docx
Managerial Accounting 5th Edition by Stacey Whitecotton test bank.docxssuserf63bd7
 
Pre Engineered Building Manufacturers Hyderabad.pptx
Pre Engineered  Building Manufacturers Hyderabad.pptxPre Engineered  Building Manufacturers Hyderabad.pptx
Pre Engineered Building Manufacturers Hyderabad.pptxRoofing Contractor
 
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdfThe Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdfbelieveminhh
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting
 
Thompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptx
Thompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptxThompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptx
Thompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptxtmthompson1
 
Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...
Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...
Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...ssuserf63bd7
 
A DAY IN THE LIFE OF A SALESPERSON .pptx
A DAY IN THE LIFE OF A SALESPERSON .pptxA DAY IN THE LIFE OF A SALESPERSON .pptx
A DAY IN THE LIFE OF A SALESPERSON .pptxseemajojo02
 
Pimpri Chinchwad Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Servi...
Pimpri Chinchwad Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Servi...Pimpri Chinchwad Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Servi...
Pimpri Chinchwad Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Servi...pr788182
 
Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312LR1709MUSIC
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 MonthsIndeedSEO
 
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...yulianti213969
 
Asansol Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Available
Asansol Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service AvailableAsansol Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Available
Asansol Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Availablepr788182
 

Recently uploaded (20)

GURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON ESCORTS SERVICE PROVIDE
GURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON  ESCORTS SERVICE PROVIDEGURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON  ESCORTS SERVICE PROVIDE
GURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON ESCORTS SERVICE PROVIDE
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
 
Goa Call Girls Just Call 👉📞9731111159 Top Class Call Girl Service Available
Goa Call Girls Just Call 👉📞9731111159 Top Class Call Girl Service AvailableGoa Call Girls Just Call 👉📞9731111159 Top Class Call Girl Service Available
Goa Call Girls Just Call 👉📞9731111159 Top Class Call Girl Service Available
 
2024 May - Clearbit Integration with Hubspot - Greenville HUG.pptx
2024 May - Clearbit Integration with Hubspot  - Greenville HUG.pptx2024 May - Clearbit Integration with Hubspot  - Greenville HUG.pptx
2024 May - Clearbit Integration with Hubspot - Greenville HUG.pptx
 
Falcon Invoice Discounting: Aviate Your Cash Flow Challenges
Falcon Invoice Discounting: Aviate Your Cash Flow ChallengesFalcon Invoice Discounting: Aviate Your Cash Flow Challenges
Falcon Invoice Discounting: Aviate Your Cash Flow Challenges
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024
 
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptxQSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
 
Managerial Accounting 5th Edition by Stacey Whitecotton test bank.docx
Managerial Accounting 5th Edition by Stacey Whitecotton test bank.docxManagerial Accounting 5th Edition by Stacey Whitecotton test bank.docx
Managerial Accounting 5th Edition by Stacey Whitecotton test bank.docx
 
Pre Engineered Building Manufacturers Hyderabad.pptx
Pre Engineered  Building Manufacturers Hyderabad.pptxPre Engineered  Building Manufacturers Hyderabad.pptx
Pre Engineered Building Manufacturers Hyderabad.pptx
 
WheelTug Short Pitch Deck 2024 | Byond Insights
WheelTug Short Pitch Deck 2024 | Byond InsightsWheelTug Short Pitch Deck 2024 | Byond Insights
WheelTug Short Pitch Deck 2024 | Byond Insights
 
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdfThe Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investors
 
Thompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptx
Thompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptxThompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptx
Thompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptx
 
Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...
Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...
Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...
 
A DAY IN THE LIFE OF A SALESPERSON .pptx
A DAY IN THE LIFE OF A SALESPERSON .pptxA DAY IN THE LIFE OF A SALESPERSON .pptx
A DAY IN THE LIFE OF A SALESPERSON .pptx
 
Pimpri Chinchwad Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Servi...
Pimpri Chinchwad Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Servi...Pimpri Chinchwad Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Servi...
Pimpri Chinchwad Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Servi...
 
Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
 
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
 
Asansol Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Available
Asansol Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service AvailableAsansol Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Available
Asansol Call Girl Just Call♥️ 8084732287 ♥️Top Class Call Girl Service Available
 

LED Cube Presentation Slides

  • 1.
  • 2. hundreds One Cube O F POSSIBILITI
  • 3. Making of VIDEO FOR MORE VIDEOS: VISIT WWW.INSTRUCTABLES.COM
  • 4. PARTS USED RESISTORS (limit current flow in the circuit) LEDs (Light Emitting Diode) TRANSISTORS (serves as a switch)
  • 5. 0V 5V 220 220 + + LED ( LED light up) OFF - - C C 22 K 22 K B OFF B Transistor 0V 5V ON E E transistor When the transistor is OFF, When the transistor is ON, LED turns OFF LED turns ON
  • 6. LED 1 LED 2 LED 3 LED 4 LED 5 LED 6 LED 7 LED 8 LED 9 5V 5V 5V 220 220 220 220 220 220 220 220 220 + ON ON ON - Level 1 C 22 K B Common Cathode ( negative terminal) 5V Transistor E ON
  • 7. Light stays off 5V + + + LOW OFF
  • 8. Light turns on 5V + + + HIGH ON
  • 9. Apply 5V (logic high) at terminal LED1  Apply 3.3V (logic high) at terminal Level 1 (LVL 1)  Connect a jumper wire between two GND terminal 5V 3.3V
  • 10. The Arduino board is a small micro-controller board, which is a small circuit that contains a whole computer on a small chip (Atmega 328), the heart of the board. Built in LED connected to pin13 Atmega 328
  • 11. The Arduino board consists of the following I/O ports:  14 digital IO pins (pins 0–13/ logic ‘High’- 5V, ‘Low’– 0V)  6 analogue In pins (pins 0–5)  6 analogue Out pins (pins 3, 5, 6, 9, 10, and 11)
  • 12. Arduino software is free, Open source programming plateform.  Source code for Arduino is called a sketch.
  • 13. Directory: D:/ arduino-1.0/ double click arduino Upload Verify (compile) Sketch Editor Window
  • 14.
  • 15. Verify Upload to I/O board Core program Your sketch goes here
  • 16. Arduino expects two functions to exist —one called setup() and one called loop().  setup() { pinMode (13, Output) - assign pin 13 as Output }  loop() contains the core of your program. digitalWrite (13, High) - turn on the built in LED connected to pin13 delay (1000) - wait for a secoond digitalWrite (13, LOW) - turn off the LED delay (1000) - wait for a second.
  • 17. Upload Verify Done compiling Done uploading To display error message
  • 18. const int LED1 = 1; // connect LED 1 to pin 1 const int L1= 10; // connect Level 1 to pin 10 void setup() { pinMode (LED1, OUTPUT); // declare LED1 as an OUTPUT pinMode (L1, OUTPUT); // declare Level 1 as an OUTPUT } void loop() { digitalWrite (L1, HIGH); // turn on Level 1 transistor digitalWrite (LED1, HIGH); // turn on LED1 delay (200); // delay for 200ms digitalWrite (LED1, LOW); // turn off LED1 delay(100); // delay for 100ms }
  • 19. const int LED1 = 1; // connect LED 1 to pin 1 const int LED2 = 2; // connect LED 2 to pin 2 const int LED3 = 3; // connect LED 1 to pin 3 const int L1= 10; // connect Level 1 to pin 10 void setup() { pinMode (LED1, OUTPUT); // declare LED1 as an OUTPUT pinMode (LED2, OUTPUT); // declare LED2 as an OUTPUT pinMode (LED3, OUTPUT); // declare LED3 as an OUTPUT pinMode (L1, OUTPUT); // declare Level 1 as an OUTPUT } void loop() { digitalWrite (L1, HIGH); // turn on Level 1 transistor digitalWrite (LED1, HIGH); // turn on LED1 delay (200); // delay for 200ms digitalWrite (LED1, LOW); // turn off LED1 delay(100); // delay for 100ms ----------- ---------- To be continued }
  • 20. The for statement lets us do things over and over again, for a specified number of repetitions.  The integer i is used to set the number of times that the loop will execute, running all the code inside the code block.  In the for loop, as long as i is less than 10, it will continue looping, and each time the for loop is passed, i is incremented by 1.
  • 21. Example: int i ; // declare i as an integer for(i = 0; i<5; i++) { Execute Print print(i); function when i is 0 to 4 } Or for (int i=0; i<5; i++) { Print(i); }
  • 22. void loop() { Specify 3 loops that for (int i = 0; i < 3; i ++) core program will { execute digitalWrite ( L1, HIGH ); digitalWrite ( LED1, HIGH ); delay (200); digitalWrite ( LED1, LOW) ; Core program: delay (100); digitalWrite (LED2, HIGH ); LED 1, 2, 3 will turn delay (200); ON & OFF in digitalWrite ( LED2, LOW ); sequence delay (100); digitalWrite ( LED3, HIGH ); delay (200); digitalWrite ( LED3, LOW ); delay (100); } Turn off all LEDs for digitalWrite ( L1, LOW); 1 sec delay (1000 ) ; }
  • 23. An array contains one or more variables in a list.  The array shown below is an array that holds three integer values: 1,2,3
  • 24. Number of variables int LevelPin [3] = { 10, 11, 12 }; Type of array Name of List of variables content the array i.e LevelPin [0] = 10 LevelPin [1] = 11 LevelPin [2] = 12
  • 25. Another great use of the for loop is to go through an array and look at each item in the array: for ( int level=0; level <3; level++) { pinMode (LevelPin[level], OUTPUT ); } Each time the loop executes, level will be incremented using the next integer in the Array[ ] pinMode (LevelPin[0], OUTPUT ); pinMode (LevelPin[1], OUTPUT ); pinMode (LevelPin[2], OUTPUT );
  • 26. for (level=0; level< 3; level++) { digitalWrite ( LevelPin[level], HIGH ); digitalWrite ( LED1, HIGH ); digitalWrite ( LED2, HIGH ); : : digitalWrite ( LED9, HIGH ); delay (100); digitalWrite ( LED1, LOW ); digitalWrite ( LED2, LOW ); : : digitalWrite ( LED9, LOW ); digitalWrite ( LevelPin[level], LOW ); delay(50); }

Editor's Notes

  1. Next, how do we turn on LED 2 ? And how to turn on LED at level 2 ?
  2. It contains everything needed to support the microcontroller ; simply connect it to a computer via USB cable or external supply ( 7– 12V). Digital input pins sense the presence and absence of voltage on a pin( High – 5V, LOW - 0V). Analog input pins measure a range of voltages on a pin.
  3. Change delay time from 1000 ms to 100 ms, observe the difference.
  4. Next, learn to turn on LED1, 2, 3 in sequence.