SlideShare a Scribd company logo
1 of 27
Download to read offline
CHAPTER 01
LED BLINK
BY THINGERBITS ELECTRONICS
WWW.THINGERBITS.COM
Control LED by
Manual Button
Project
1.1
First, try using the
push button to
make the LED blink
manually.
Component list
➔ Arduino UNO x1
➔ Breadboard x1
➔ USB cable x1
➔ LED x1
➔ Jumper M/M x2
➔ Resistor 220Ω x1
➔ Push button x1
Circuit
Knowledge
Power supply
Voltage (V)
The unit of voltage(U) is volt(V).
● 1kV=1000V
● 1V=1000mV
● 1mV=1000μV
Current (I)
The unit of current(I) is ampere(A).
● 1A=1000mA
● 1mA=1000μA.
Resistor
The unit of resistance(R) is ohm(Ω).
● 1mΩ=1000kΩ
● 1kΩ=1000Ω.
Component
Knowledge
Jumper
Jumper M/M
Jumper F/F
Jumper F/M
Breadboard
Some small holes are
connected inside
breadboard. The following
figure shows the inner links
among those holes.
Push button
Push button has 4 pins. Two
pins on the left is connected,
andthe right is similar as the left,
which is shown in the below:
LED
LED is a kind of diode. LED will shine only if the
long pin of LED is connected to the positive
electrode and the short pin is connected to
negative electrode.
This is also the features of the common diode.
Diode works only if the voltage of its positive
electrode is higher than its negative electrode.
Circuit
Control LED by
Arduino
Project
1.2
Components are
basically the same
with those in last
section
Component list
➔ Arduino UNO x1
➔ Breadboard x1
➔ USB cable x1
➔ LED x1
➔ Jumper M/M x2
➔ Resistor 220Ω x1
➔ Push button x1
Circuit
Knowledge
Analog signal & Digital signal
Low level & high level
In circuit, the form of binary (0
and 1) is present as low level
and high level.
Code
Knowledge
Comments
Data type
1) When programming, we often use digital, characters and other data. C language
has several basic data types as follows:
a) int: A number that does not have a fractional part, an integer, such as 0, 12, -1;
b) float: A number that has a fractional part, such as 0.1, -1.2;
c) char: It means character, such as 'a', '@', '0';
2) For more date types, please visit the website:
https://www.arduino.cc-Learning-Reference-Data Types.
Constant
Constant is a kind of data that can not be changed, such as int type 0, 1, float
type 0.1, -0.1, char type 'a', 'B'.
Variables
A variable is a kind of data that can be changed. It consists of a name, a value, and
a type. Variables need to be defined before use, such as:
Function
Function is a collection of statements with a sequence of order, which perform a
defined task.
Circuit
Sketch
Summary
Chapter 1 - LED Blink
❖ Project 1.1 - Control LED by Manual Button.
❖ Circuit Knowledge
➢ Power supply
➢ Voltage
➢ Current (I)
➢ Resistor
❖ Component knowledge
➢ Jumper
➢ Breadboard
➢ Push button
➢ LED
❖ Circuit
❖ Project 1.2 - Control LED by Arduino
❖ Circuit knowledge
➢ Analog signal & Digital signal
➢ Low level & high level
❖ Code knowledge
➢ Comments
➢ Data type
➢ Constant
➢ Variable
➢ Function
❖ Circuit
❖ Sketch
What’s Next?
Chapter 2 - Two LEDs Blink
❖ Project 2.1 - Two LEDs Blink
❖ Circuit Knowledge
➢ Parameters of function
➢ Boolean data type
➢ Logical operator
➢ Relation operator
➢ Conditional statement
❖ Circuit
❖ Sketch

More Related Content

Similar to Aruino Lesson 1 - Led Blink

10 adv _revision_notes_term_3
10 adv _revision_notes_term_310 adv _revision_notes_term_3
10 adv _revision_notes_term_3CDI Aljeer
 
How to-teach-an-online-circuits-class-with-tinkercad US ICT project
How to-teach-an-online-circuits-class-with-tinkercad US ICT projectHow to-teach-an-online-circuits-class-with-tinkercad US ICT project
How to-teach-an-online-circuits-class-with-tinkercad US ICT projectIonita Iuliana
 
Embedded Application on Microcontroller in Assembly and Embedded C
Embedded Application on Microcontroller in Assembly and Embedded CEmbedded Application on Microcontroller in Assembly and Embedded C
Embedded Application on Microcontroller in Assembly and Embedded CAvinash Reddy Penugonda
 
POWERPOINT PRESENTATION ABOUT THE PARTS OF ARDUINO UNO
POWERPOINT PRESENTATION ABOUT THE PARTS OF ARDUINO UNOPOWERPOINT PRESENTATION ABOUT THE PARTS OF ARDUINO UNO
POWERPOINT PRESENTATION ABOUT THE PARTS OF ARDUINO UNOMarcheryAlingal
 
10 11_gen_revision_notes_term_3
10  11_gen_revision_notes_term_310  11_gen_revision_notes_term_3
10 11_gen_revision_notes_term_3CDI Aljeer
 
introductiontoarduino-130219180141-phpapp01 (1).pptx
introductiontoarduino-130219180141-phpapp01 (1).pptxintroductiontoarduino-130219180141-phpapp01 (1).pptx
introductiontoarduino-130219180141-phpapp01 (1).pptxAanshuSingh3
 
Micro capx tutorial
Micro capx tutorialMicro capx tutorial
Micro capx tutorialMoez Ansary
 
Robotics and Embedded Systems
Robotics and Embedded SystemsRobotics and Embedded Systems
Robotics and Embedded SystemsAnkan Naskar
 
Arduino comic v0004
Arduino comic v0004Arduino comic v0004
Arduino comic v0004DO!MAKERS
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasB.k. Das
 
Embedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower BotEmbedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower BotEr. Raju Bhardwaj
 
How to hack electronics
How to hack electronics How to hack electronics
How to hack electronics Planning-ness
 

Similar to Aruino Lesson 1 - Led Blink (20)

10 adv _revision_notes_term_3
10 adv _revision_notes_term_310 adv _revision_notes_term_3
10 adv _revision_notes_term_3
 
How to-teach-an-online-circuits-class-with-tinkercad US ICT project
How to-teach-an-online-circuits-class-with-tinkercad US ICT projectHow to-teach-an-online-circuits-class-with-tinkercad US ICT project
How to-teach-an-online-circuits-class-with-tinkercad US ICT project
 
Embedded Application on Microcontroller in Assembly and Embedded C
Embedded Application on Microcontroller in Assembly and Embedded CEmbedded Application on Microcontroller in Assembly and Embedded C
Embedded Application on Microcontroller in Assembly and Embedded C
 
Presentation S4A
Presentation S4A Presentation S4A
Presentation S4A
 
Presentation
PresentationPresentation
Presentation
 
embedded system
embedded system  embedded system
embedded system
 
POWERPOINT PRESENTATION ABOUT THE PARTS OF ARDUINO UNO
POWERPOINT PRESENTATION ABOUT THE PARTS OF ARDUINO UNOPOWERPOINT PRESENTATION ABOUT THE PARTS OF ARDUINO UNO
POWERPOINT PRESENTATION ABOUT THE PARTS OF ARDUINO UNO
 
10 11_gen_revision_notes_term_3
10  11_gen_revision_notes_term_310  11_gen_revision_notes_term_3
10 11_gen_revision_notes_term_3
 
introductiontoarduino-130219180141-phpapp01 (1).pptx
introductiontoarduino-130219180141-phpapp01 (1).pptxintroductiontoarduino-130219180141-phpapp01 (1).pptx
introductiontoarduino-130219180141-phpapp01 (1).pptx
 
Indroduction arduino
Indroduction arduinoIndroduction arduino
Indroduction arduino
 
Indroduction the arduino
Indroduction the arduinoIndroduction the arduino
Indroduction the arduino
 
Micro capx tutorial
Micro capx tutorialMicro capx tutorial
Micro capx tutorial
 
Robotics and Embedded Systems
Robotics and Embedded SystemsRobotics and Embedded Systems
Robotics and Embedded Systems
 
Arduino Comic-Jody Culkin-2011
Arduino Comic-Jody Culkin-2011Arduino Comic-Jody Culkin-2011
Arduino Comic-Jody Culkin-2011
 
Arduino comic v0004
Arduino comic v0004Arduino comic v0004
Arduino comic v0004
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar Das
 
Dio
DioDio
Dio
 
Embedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower BotEmbedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower Bot
 
our 1st project
our 1st projectour 1st project
our 1st project
 
How to hack electronics
How to hack electronics How to hack electronics
How to hack electronics
 

Recently uploaded

NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...
NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...
NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...Amil baba
 
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样ayoqf
 
如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证mestb
 
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样vwymvu
 
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证mestb
 
NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...
NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...
NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...Amil Baba Dawood bangali
 
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证mestb
 
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))Obat Cytotec
 
Matrix Methods.pptxhhhhhhhhhhhhhhhhhhhhh
Matrix Methods.pptxhhhhhhhhhhhhhhhhhhhhhMatrix Methods.pptxhhhhhhhhhhhhhhhhhhhhh
Matrix Methods.pptxhhhhhhhhhhhhhhhhhhhhhjoshuaclack73
 
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证mestb
 
Vibration of Continuous Systems.pjjjjjjjjptx
Vibration of Continuous Systems.pjjjjjjjjptxVibration of Continuous Systems.pjjjjjjjjptx
Vibration of Continuous Systems.pjjjjjjjjptxjoshuaclack73
 
Cyber-Security-power point presentation.
Cyber-Security-power point presentation.Cyber-Security-power point presentation.
Cyber-Security-power point presentation.ECoyShastriBhawan
 
Buy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
Buy best abortion pills Doha [+966572737505 | Planned cytotec QatarBuy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
Buy best abortion pills Doha [+966572737505 | Planned cytotec Qatarsamsungultra782445
 
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证mestb
 

Recently uploaded (17)

NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...
NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...
NO1 Best Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Addre...
 
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
 
如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(USYD毕业证书)悉尼大学毕业证成绩单本科硕士学位证留信学历认证
 
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
 
Abortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotec
Abortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotecAbortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotec
Abortion pills in Riyadh Saudi Arabia!+966572737505 ) Where to get cytotec
 
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UVic毕业证书)维多利亚大学毕业证成绩单本科硕士学位证留信学历认证
 
NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...
NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...
NO1 Pakistan Best vashikaran specialist in UK USA UAE London Dubai Canada Ame...
 
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
 
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
 
Matrix Methods.pptxhhhhhhhhhhhhhhhhhhhhh
Matrix Methods.pptxhhhhhhhhhhhhhhhhhhhhhMatrix Methods.pptxhhhhhhhhhhhhhhhhhhhhh
Matrix Methods.pptxhhhhhhhhhhhhhhhhhhhhh
 
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(OP毕业证书)奥塔哥理工学院毕业证成绩单本科硕士学位证留信学历认证
 
Abortion Pills in Jeddah |+966572737505 | Get Cytotec
Abortion Pills in Jeddah |+966572737505 | Get CytotecAbortion Pills in Jeddah |+966572737505 | Get Cytotec
Abortion Pills in Jeddah |+966572737505 | Get Cytotec
 
Abortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotec
Abortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotecAbortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotec
Abortion pills in Jeddah Saudi Arabia! +966572737505 Where to buy cytotec
 
Vibration of Continuous Systems.pjjjjjjjjptx
Vibration of Continuous Systems.pjjjjjjjjptxVibration of Continuous Systems.pjjjjjjjjptx
Vibration of Continuous Systems.pjjjjjjjjptx
 
Cyber-Security-power point presentation.
Cyber-Security-power point presentation.Cyber-Security-power point presentation.
Cyber-Security-power point presentation.
 
Buy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
Buy best abortion pills Doha [+966572737505 | Planned cytotec QatarBuy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
Buy best abortion pills Doha [+966572737505 | Planned cytotec Qatar
 
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(AUT毕业证书)奥克兰理工大学毕业证成绩单本科硕士学位证留信学历认证
 

Aruino Lesson 1 - Led Blink

  • 1. CHAPTER 01 LED BLINK BY THINGERBITS ELECTRONICS WWW.THINGERBITS.COM
  • 2. Control LED by Manual Button Project 1.1 First, try using the push button to make the LED blink manually. Component list ➔ Arduino UNO x1 ➔ Breadboard x1 ➔ USB cable x1 ➔ LED x1 ➔ Jumper M/M x2 ➔ Resistor 220Ω x1 ➔ Push button x1
  • 5. Voltage (V) The unit of voltage(U) is volt(V). ● 1kV=1000V ● 1V=1000mV ● 1mV=1000μV
  • 6. Current (I) The unit of current(I) is ampere(A). ● 1A=1000mA ● 1mA=1000μA.
  • 7. Resistor The unit of resistance(R) is ohm(Ω). ● 1mΩ=1000kΩ ● 1kΩ=1000Ω.
  • 10. Breadboard Some small holes are connected inside breadboard. The following figure shows the inner links among those holes.
  • 11. Push button Push button has 4 pins. Two pins on the left is connected, andthe right is similar as the left, which is shown in the below:
  • 12. LED LED is a kind of diode. LED will shine only if the long pin of LED is connected to the positive electrode and the short pin is connected to negative electrode. This is also the features of the common diode. Diode works only if the voltage of its positive electrode is higher than its negative electrode.
  • 14. Control LED by Arduino Project 1.2 Components are basically the same with those in last section Component list ➔ Arduino UNO x1 ➔ Breadboard x1 ➔ USB cable x1 ➔ LED x1 ➔ Jumper M/M x2 ➔ Resistor 220Ω x1 ➔ Push button x1
  • 16. Analog signal & Digital signal
  • 17. Low level & high level In circuit, the form of binary (0 and 1) is present as low level and high level.
  • 20. Data type 1) When programming, we often use digital, characters and other data. C language has several basic data types as follows: a) int: A number that does not have a fractional part, an integer, such as 0, 12, -1; b) float: A number that has a fractional part, such as 0.1, -1.2; c) char: It means character, such as 'a', '@', '0'; 2) For more date types, please visit the website: https://www.arduino.cc-Learning-Reference-Data Types.
  • 21. Constant Constant is a kind of data that can not be changed, such as int type 0, 1, float type 0.1, -0.1, char type 'a', 'B'.
  • 22. Variables A variable is a kind of data that can be changed. It consists of a name, a value, and a type. Variables need to be defined before use, such as:
  • 23. Function Function is a collection of statements with a sequence of order, which perform a defined task.
  • 26. Summary Chapter 1 - LED Blink ❖ Project 1.1 - Control LED by Manual Button. ❖ Circuit Knowledge ➢ Power supply ➢ Voltage ➢ Current (I) ➢ Resistor ❖ Component knowledge ➢ Jumper ➢ Breadboard ➢ Push button ➢ LED ❖ Circuit ❖ Project 1.2 - Control LED by Arduino ❖ Circuit knowledge ➢ Analog signal & Digital signal ➢ Low level & high level ❖ Code knowledge ➢ Comments ➢ Data type ➢ Constant ➢ Variable ➢ Function ❖ Circuit ❖ Sketch
  • 27. What’s Next? Chapter 2 - Two LEDs Blink ❖ Project 2.1 - Two LEDs Blink ❖ Circuit Knowledge ➢ Parameters of function ➢ Boolean data type ➢ Logical operator ➢ Relation operator ➢ Conditional statement ❖ Circuit ❖ Sketch