SlideShare uma empresa Scribd logo
1 de 54
CIRCUITS
They are a combination of electronic
components like resistors, capacitors,
transistors etc.
The ohm guy is
called the
Resistor.
Transistors are an
amazing device that
can act as a switch.
They make each and every thing around us.
All the electronic things we see are made
from a circuit board.
A simple circuit to
light up a bulb.
(I know that’s a
Boring example)
This circuit can
sense any move-
ment around it.
That’s so very
amazing.
A computer
motherboard
A motherboard is the major circuit board
inside a computer that controls the entire
computer. As you saw there were a large
number of black boxes on it. So, what are
these? The answer is an amazing technology
that transformed the world we live in.
Integrated circuit are a combination of
different circuits elements mounted on a
single chip of silicon. These blocks can
reduce the size of a large circuit to less than
a fingertip while increasing the efficiency.
A microcontroller is a combination of
processor, memory and input- output
peripherals. It is a basically a small computer
reduced to the size of a black
box.
Programming a microcontroller means
setting a set of instructions on the
microcontroller to perform a task.The task
may be addition of two numbers or lighting
up an LED or running a motor.
A software called a compiler is used to
convert human level code to electronic
instructions. Then these instructions are
feeded to the memory of the microcontroller
and these instructions are executed when
required.
Arduino
The programmable
circuit board
A programmable multi-
purpose circuit board used
to make projects. It is a
learning platform for
beginners in
microcontroller
programming.
1: The microcontroller - Atmega328p
2: The clock - 16 MHz
3: Input -Output pins
4: USB programming
port
The microcontroller is the brain of the
board. All the commands are given as input
to the microcontroller and it works as a
C.P.U to process them and gives the output.
But it’s not a simple C.P.U or processor.
The microcontroller gives output in the form
of current or voltage that can be used to
drive other components of a circuit for
example- an LED or a motor.
There is a clock attached to the
microcontroller that controls the amount of
work done by the microcontroller in a
second. This clock controls the number of
things the controller can do in a second.
It is similar to the
crystal that controls
your analog watch.
The clock on the Arduino board here is of 16
Mhz. So, it can process 16 million instructions
in a second.
The Arduino board is an advanced board so
It can directly be programmed through a
Computer software. There is a USB port
available on the board for connecting it to
the computer.
The USB port connects the board to the
computer. The Arduino software is used to
write the program and then upload it to the
board. The program then executes itself on
the board.
Digital Input pins- There are 13 digital
input/output pins on the board marked as
0-13. These pins can give output of 0V or +5V.
They can also take input but only as 0V or
+5V.
Digital means we will work with discrete
values of voltages. Normally we use 0V as
LOW signal and +5V as HIGH signal. Only
these two values are used in digital
electronics because they resemble binary
numbers.
1 - +5V , 0 - 0V.
The analog pins are named as A0-A5. These
pins can be used to get an analog input.
Analog means the voltage can be any value
between and may not be just 0V or +5V.
There is a button on the corner of the borad .
It is a reset button. Whenever we press this
button , all the instructions feeded inside the
board run from the very beginning.
3.3V- This pin gives an output of 3.3 V.
5V - This pin gives an output of 5V.
GND- This pin gives an output of 0V.
Vin- This pin is used to power the borad.
The board can be powered with a battery or
Any other source having a voltage between
7-12 V.
Different ways are-
1.Vin pin
2.Black coloured jack
Normally when connected to a computer,
the board is powered by the USB port of the
computer.
The USB port on your computer provides a
constant voltage of +5V. This power is used
by external cooling fans for laptops or
computer or even to power any USB device.
1: Cheap circuit board
2: Easy to use
3: Multiple sensors and devices supported
4: Open source project
5: Online support
1.Make small playful projects.
2.Make small robots.
3.Implement some solution of a real life
problem
4.Make projects related to IOT - Internet Of
Things Video
The Arduino IDE - the software on which we
code.
What is this code?
C /C++ - the language on which we code
1: GND= 0V
2:The language used to write the code here
is case sensitive. So, please write the code as
shown to you. Don’t even miss a “;” or a “()”
or”{ }”.
Glow the on-board LED:
There is an on-board LED near the mark L.
We can switch on/off this LED via a code.
1: Connect the wire to the arduino board.
2: Connect the USB to the USB port.
3: Open the Arduino software.
1: Go to File->Examples->Basics->Blink.
There are two parts in our code that are
enclosed in { }.
These are called functions. Each function has
a set of instructions.
Void Setup() - This function is used to set up the
initial conditions on the board. In this code we use a
command called “pinMode” .This command tells the
board the about the mode in which we want to use
the pin. The mode is specified as shown - OUTPUT.
This means the pin 13 on the board is going to give
output of 0V or 5V as it is a digital pin.
Void Loop() - This function runs on
repeatedly once the program starts. After
the setup gives the instructions about pin-
modes, the instructions written inside the
loop are ran continuously for infinite time
until you switch OFF power.
The LED is a device that works when the
longer end is connected to high voltage and
shorter leg to low voltage. The on- board LED
has it’s longer leg connected to digital pin 13
and shorter leg to GND=0V.
So, when we give output as 5V on pin 13, the
LED glows while when we give 0V the LED is
OFF.
This command is used to give output to a
pin. The command “digitalWrite(13,HIGH);”
means give an output of +5V on the pin 13.
Here 5V=HIGH and 0V=LOW.
Once you make the Arduino pin HIGH or LOW
the output voltage does not change until
you change it by a command. So, the output
on pin 13 will be HIGH until we change it to
LOW or HIGH again.
The delay command is used to stop the
reading of instructions for a given amount of
time. The command “delay(1000)” means
the code stops for 1000 millisecond or 1
second and then moves on.
1:Write the given code.
2: Go to Tools->Board ( Arduino/Genuino
UNO)
3: Go to Tools->Port-> (whichever port is
shown).
4: Click on the to upload the code to
board.
1: Change the blink time - delay() function.
2: The given time is in Milliseconds
3: Upload to board
1: Plug in the Longer leg of the LED in Digital
pin 2 and shorter leg in digital pin 3.
2: Copy the program as shown.
3: Upload to board.
1: Connect longer legs of LEDs to digital pins
2, 4 and 6 and shorter legs to 3,5 and 7.
2: Copy the code as shown.
3: Upload.
Robotics Session day 1

Mais conteúdo relacionado

Mais procurados

Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
eddy royappa
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Ahmed Sakr
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
Wingston
 
Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015
Hafid Moujane
 

Mais procurados (20)

Arduino Model's
Arduino Model'sArduino Model's
Arduino Model's
 
Arduino workshop sensors
Arduino workshop sensorsArduino workshop sensors
Arduino workshop sensors
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
ATTiny Light Sculpture Project - Part I (Setup)
ATTiny Light Sculpture Project - Part I (Setup)ATTiny Light Sculpture Project - Part I (Setup)
ATTiny Light Sculpture Project - Part I (Setup)
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
 
Arduino windows remote control
Arduino windows remote controlArduino windows remote control
Arduino windows remote control
 
Lab2ppt
Lab2pptLab2ppt
Lab2ppt
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
 
What are the different types of arduino boards
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boards
 
Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015
 
Rebooting Computing chalkwell
Rebooting Computing chalkwellRebooting Computing chalkwell
Rebooting Computing chalkwell
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Arduino Hackday: Rebooting Computing
Arduino Hackday: Rebooting ComputingArduino Hackday: Rebooting Computing
Arduino Hackday: Rebooting Computing
 
Arduino
ArduinoArduino
Arduino
 
Embedded systems الانظمة المدمجة
Embedded systems  الانظمة المدمجة Embedded systems  الانظمة المدمجة
Embedded systems الانظمة المدمجة
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentCodesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
 

Destaque

Destaque (11)

porto
portoporto
porto
 
Siltumapgādes sistēmas renovācija/ rekonstrukcija daudzdzīvokļu mājā.
Siltumapgādes sistēmas renovācija/ rekonstrukcija daudzdzīvokļu mājā.Siltumapgādes sistēmas renovācija/ rekonstrukcija daudzdzīvokļu mājā.
Siltumapgādes sistēmas renovācija/ rekonstrukcija daudzdzīvokļu mājā.
 
Pieredze energoefektivitātes projekta īstenošanā
Pieredze energoefektivitātes projekta īstenošanāPieredze energoefektivitātes projekta īstenošanā
Pieredze energoefektivitātes projekta īstenošanā
 
Māris Kļaviņš "Latvijas klimats un tā mainības raksturs"
Māris Kļaviņš "Latvijas klimats un tā mainības raksturs"Māris Kļaviņš "Latvijas klimats un tā mainības raksturs"
Māris Kļaviņš "Latvijas klimats un tā mainības raksturs"
 
Redbull
RedbullRedbull
Redbull
 
PRESENTATION IN ENGLISH PDF - Trade Coin Club - Tcc Ingles
PRESENTATION IN ENGLISH PDF - Trade Coin Club - Tcc InglesPRESENTATION IN ENGLISH PDF - Trade Coin Club - Tcc Ingles
PRESENTATION IN ENGLISH PDF - Trade Coin Club - Tcc Ingles
 
Isha kriya-instructions-english
Isha kriya-instructions-englishIsha kriya-instructions-english
Isha kriya-instructions-english
 
Eddy current testing
Eddy current testingEddy current testing
Eddy current testing
 
Assessing Your Agile Marketing Maturity Level
Assessing Your Agile Marketing Maturity LevelAssessing Your Agile Marketing Maturity Level
Assessing Your Agile Marketing Maturity Level
 
Rapid prototyping and easy testing with ember cli mirage
Rapid prototyping and easy testing with ember cli mirageRapid prototyping and easy testing with ember cli mirage
Rapid prototyping and easy testing with ember cli mirage
 
Nodarbinātības valsts aģentūras piedāvātie pakalpojumi darba devējiem
Nodarbinātības valsts aģentūras piedāvātie pakalpojumi darba devējiemNodarbinātības valsts aģentūras piedāvātie pakalpojumi darba devējiem
Nodarbinātības valsts aģentūras piedāvātie pakalpojumi darba devējiem
 

Semelhante a Robotics Session day 1

Chapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptxChapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptx
khgh7
 
Office automation system using arduino
Office automation system using arduinoOffice automation system using arduino
Office automation system using arduino
Ashfaqul Haque John
 

Semelhante a Robotics Session day 1 (20)

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
 
Neno Project.docx
Neno Project.docxNeno Project.docx
Neno Project.docx
 
Introduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptIntroduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).ppt
 
Fun with arduino
Fun with arduinoFun with arduino
Fun with arduino
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
 
Chapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptxChapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptx
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
 
Arduino Uno Pin Description
Arduino Uno Pin DescriptionArduino Uno Pin Description
Arduino Uno Pin Description
 
Arduino Family
Arduino FamilyArduino Family
Arduino Family
 
Office automation system using arduino
Office automation system using arduinoOffice automation system using arduino
Office automation system using arduino
 
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
 
Arduino
ArduinoArduino
Arduino
 
IoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensorsIoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensors
 
raushan
raushanraushan
raushan
 
ARDUINO (1).pdf
ARDUINO (1).pdfARDUINO (1).pdf
ARDUINO (1).pdf
 
Basic arduino sketch example
Basic arduino sketch exampleBasic arduino sketch example
Basic arduino sketch example
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 

Robotics Session day 1

  • 2. They are a combination of electronic components like resistors, capacitors, transistors etc.
  • 3. The ohm guy is called the Resistor.
  • 4. Transistors are an amazing device that can act as a switch.
  • 5. They make each and every thing around us. All the electronic things we see are made from a circuit board.
  • 6. A simple circuit to light up a bulb. (I know that’s a Boring example)
  • 7.
  • 8. This circuit can sense any move- ment around it. That’s so very amazing.
  • 10.
  • 11. A motherboard is the major circuit board inside a computer that controls the entire computer. As you saw there were a large number of black boxes on it. So, what are these? The answer is an amazing technology that transformed the world we live in.
  • 12. Integrated circuit are a combination of different circuits elements mounted on a single chip of silicon. These blocks can reduce the size of a large circuit to less than a fingertip while increasing the efficiency.
  • 13. A microcontroller is a combination of processor, memory and input- output peripherals. It is a basically a small computer reduced to the size of a black box.
  • 14.
  • 15. Programming a microcontroller means setting a set of instructions on the microcontroller to perform a task.The task may be addition of two numbers or lighting up an LED or running a motor.
  • 16. A software called a compiler is used to convert human level code to electronic instructions. Then these instructions are feeded to the memory of the microcontroller and these instructions are executed when required.
  • 18. A programmable multi- purpose circuit board used to make projects. It is a learning platform for beginners in microcontroller programming.
  • 19. 1: The microcontroller - Atmega328p 2: The clock - 16 MHz 3: Input -Output pins 4: USB programming port
  • 20. The microcontroller is the brain of the board. All the commands are given as input to the microcontroller and it works as a C.P.U to process them and gives the output. But it’s not a simple C.P.U or processor.
  • 21. The microcontroller gives output in the form of current or voltage that can be used to drive other components of a circuit for example- an LED or a motor.
  • 22. There is a clock attached to the microcontroller that controls the amount of work done by the microcontroller in a second. This clock controls the number of things the controller can do in a second.
  • 23. It is similar to the crystal that controls your analog watch.
  • 24. The clock on the Arduino board here is of 16 Mhz. So, it can process 16 million instructions in a second.
  • 25. The Arduino board is an advanced board so It can directly be programmed through a Computer software. There is a USB port available on the board for connecting it to the computer.
  • 26. The USB port connects the board to the computer. The Arduino software is used to write the program and then upload it to the board. The program then executes itself on the board.
  • 27. Digital Input pins- There are 13 digital input/output pins on the board marked as 0-13. These pins can give output of 0V or +5V. They can also take input but only as 0V or +5V.
  • 28. Digital means we will work with discrete values of voltages. Normally we use 0V as LOW signal and +5V as HIGH signal. Only these two values are used in digital electronics because they resemble binary numbers. 1 - +5V , 0 - 0V.
  • 29. The analog pins are named as A0-A5. These pins can be used to get an analog input. Analog means the voltage can be any value between and may not be just 0V or +5V.
  • 30. There is a button on the corner of the borad . It is a reset button. Whenever we press this button , all the instructions feeded inside the board run from the very beginning.
  • 31. 3.3V- This pin gives an output of 3.3 V. 5V - This pin gives an output of 5V. GND- This pin gives an output of 0V. Vin- This pin is used to power the borad.
  • 32. The board can be powered with a battery or Any other source having a voltage between 7-12 V. Different ways are- 1.Vin pin 2.Black coloured jack
  • 33. Normally when connected to a computer, the board is powered by the USB port of the computer.
  • 34. The USB port on your computer provides a constant voltage of +5V. This power is used by external cooling fans for laptops or computer or even to power any USB device.
  • 35. 1: Cheap circuit board 2: Easy to use 3: Multiple sensors and devices supported 4: Open source project 5: Online support
  • 36. 1.Make small playful projects. 2.Make small robots. 3.Implement some solution of a real life problem 4.Make projects related to IOT - Internet Of Things Video
  • 37. The Arduino IDE - the software on which we code. What is this code? C /C++ - the language on which we code
  • 38. 1: GND= 0V 2:The language used to write the code here is case sensitive. So, please write the code as shown to you. Don’t even miss a “;” or a “()” or”{ }”.
  • 39. Glow the on-board LED: There is an on-board LED near the mark L. We can switch on/off this LED via a code.
  • 40. 1: Connect the wire to the arduino board. 2: Connect the USB to the USB port. 3: Open the Arduino software.
  • 41. 1: Go to File->Examples->Basics->Blink.
  • 42. There are two parts in our code that are enclosed in { }. These are called functions. Each function has a set of instructions.
  • 43. Void Setup() - This function is used to set up the initial conditions on the board. In this code we use a command called “pinMode” .This command tells the board the about the mode in which we want to use the pin. The mode is specified as shown - OUTPUT. This means the pin 13 on the board is going to give output of 0V or 5V as it is a digital pin.
  • 44. Void Loop() - This function runs on repeatedly once the program starts. After the setup gives the instructions about pin- modes, the instructions written inside the loop are ran continuously for infinite time until you switch OFF power.
  • 45. The LED is a device that works when the longer end is connected to high voltage and shorter leg to low voltage. The on- board LED has it’s longer leg connected to digital pin 13 and shorter leg to GND=0V.
  • 46. So, when we give output as 5V on pin 13, the LED glows while when we give 0V the LED is OFF.
  • 47. This command is used to give output to a pin. The command “digitalWrite(13,HIGH);” means give an output of +5V on the pin 13. Here 5V=HIGH and 0V=LOW.
  • 48. Once you make the Arduino pin HIGH or LOW the output voltage does not change until you change it by a command. So, the output on pin 13 will be HIGH until we change it to LOW or HIGH again.
  • 49. The delay command is used to stop the reading of instructions for a given amount of time. The command “delay(1000)” means the code stops for 1000 millisecond or 1 second and then moves on.
  • 50. 1:Write the given code. 2: Go to Tools->Board ( Arduino/Genuino UNO) 3: Go to Tools->Port-> (whichever port is shown). 4: Click on the to upload the code to board.
  • 51. 1: Change the blink time - delay() function. 2: The given time is in Milliseconds 3: Upload to board
  • 52. 1: Plug in the Longer leg of the LED in Digital pin 2 and shorter leg in digital pin 3. 2: Copy the program as shown. 3: Upload to board.
  • 53. 1: Connect longer legs of LEDs to digital pins 2, 4 and 6 and shorter legs to 3,5 and 7. 2: Copy the code as shown. 3: Upload.