Embed presentation
Downloaded 13,094 times

![Contents: Introduction [20 min]:1. What is Micro-Controller?2. What is Arduino?3. Types of Arduino.4. Arduino UNO board.5. Sensors:- Digital, Analog sensors.- Light sensors [IR sensor, Photo-Resistor]. Coding structure and examples [30 min]:1. Data types and operators.2. What is “Function”?3. Control statements [if, if… else, switch case.].4. Loop statements[while, for, do… while.].5. Common functions. Workshop[20 min] DC motor control:](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-2-2048.jpg&f=jpg&w=240)

![Famous microcontrollermanufacturers are MicroChip,Atmel, Intel, Analog devices, andmore.[list]It is a micro-computer. As anycomputer it has internal CPU, RAM,IOs interface.It is used for control purposes, andfor data analysis.Micro-Controller:](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-4-2048.jpg&f=jpg&w=240)



![Digitalandanalog. Digital or Analog?All physical quantities are analog.Analog means that the quantity can take any value between itsminimum value and maximum value.Digital means that the quantity can take specific levels of valueswith specific offset between each other.Ex: 1- Digital:English alpha consists of 26 letter, there is no letter between Aand B.- Square waves are Digital.Ex.: 2- Analog:Temperature, can take any value[-1,12.8,25.002,… etc.].- Sine waves are analog.](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-8-2048.jpg&f=jpg&w=240)

![Sensors Light sensors:- Photo-Resistor [photo-cell].- Photo-Diode.- Photo-Transistor.](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-10-2048.jpg&f=jpg&w=240)


![Integer: used with integer variables with value between2147483647 and -2147483647.Ex: int x=1200;Character: used with single character, represent value from -127 to 128.Ex. char c=‘r’;Long: Long variables are extended size variables for numberstorage, and store 32 bits (4 bytes), from -2,147,483,648 to2,147,483,647.Ex. long u=199203;Floating-point numbers can be as large as 3.4028235E+38and as low as -3.4028235E+38. They are stored as 32 bits (4bytes) of information.Ex. float num=1.291; [The same as double type]Data Types and operatorsYou may need to know about these typed: Array, Boolean, byte, etc. here.](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-13-2048.jpg&f=jpg&w=240)
![Statement represents a command, it ends with ;Ex:int x;x=13;Operators are symbols that used to indicate a specificfunction:- Math operators: [+,-,*,/,%,^]- Logic operators: [==, !=, &&, ||]- Comparison operators: [==, >, <, !=, <=, >=]Syntax:; Semicolon, {} curly braces, //single linecomment, /*Multi-line comments*/Statement and operators:](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-14-2048.jpg&f=jpg&w=240)












This document provides an introduction to line follower competitions using Arduino microcontrollers. It discusses what a microcontroller is and types of Arduino boards. The coding structure is explained, covering data types, functions, control statements and loop statements. A workshop section describes how to control a DC motor using Arduino to rotate clockwise for 2 seconds and counter-clockwise for 5 seconds in an infinite loop.

![Contents: Introduction [20 min]:1. What is Micro-Controller?2. What is Arduino?3. Types of Arduino.4. Arduino UNO board.5. Sensors:- Digital, Analog sensors.- Light sensors [IR sensor, Photo-Resistor]. Coding structure and examples [30 min]:1. Data types and operators.2. What is “Function”?3. Control statements [if, if… else, switch case.].4. Loop statements[while, for, do… while.].5. Common functions. Workshop[20 min] DC motor control:](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-2-2048.jpg&f=jpg&w=240)

![Famous microcontrollermanufacturers are MicroChip,Atmel, Intel, Analog devices, andmore.[list]It is a micro-computer. As anycomputer it has internal CPU, RAM,IOs interface.It is used for control purposes, andfor data analysis.Micro-Controller:](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-4-2048.jpg&f=jpg&w=240)



![Digitalandanalog. Digital or Analog?All physical quantities are analog.Analog means that the quantity can take any value between itsminimum value and maximum value.Digital means that the quantity can take specific levels of valueswith specific offset between each other.Ex: 1- Digital:English alpha consists of 26 letter, there is no letter between Aand B.- Square waves are Digital.Ex.: 2- Analog:Temperature, can take any value[-1,12.8,25.002,… etc.].- Sine waves are analog.](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-8-2048.jpg&f=jpg&w=240)

![Sensors Light sensors:- Photo-Resistor [photo-cell].- Photo-Diode.- Photo-Transistor.](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-10-2048.jpg&f=jpg&w=240)


![Integer: used with integer variables with value between2147483647 and -2147483647.Ex: int x=1200;Character: used with single character, represent value from -127 to 128.Ex. char c=‘r’;Long: Long variables are extended size variables for numberstorage, and store 32 bits (4 bytes), from -2,147,483,648 to2,147,483,647.Ex. long u=199203;Floating-point numbers can be as large as 3.4028235E+38and as low as -3.4028235E+38. They are stored as 32 bits (4bytes) of information.Ex. float num=1.291; [The same as double type]Data Types and operatorsYou may need to know about these typed: Array, Boolean, byte, etc. here.](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-13-2048.jpg&f=jpg&w=240)
![Statement represents a command, it ends with ;Ex:int x;x=13;Operators are symbols that used to indicate a specificfunction:- Math operators: [+,-,*,/,%,^]- Logic operators: [==, !=, &&, ||]- Comparison operators: [==, >, <, !=, <=, >=]Syntax:; Semicolon, {} curly braces, //single linecomment, /*Multi-line comments*/Statement and operators:](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fintroductiontoarduino-130219180141-phpapp01%2f75%2fIntroduction-to-arduino-14-2048.jpg&f=jpg&w=240)










