Rudra PratapSuman
CELEBRATING
What is an Arduino ?
• Open Source electronic prototyping platform based on
flexible easy to use hardware and software.
Arduino Family
The Accessories
A Summary of Arduino power
Who is more popular Atmega or
Arduino?
Bare minimum code
void setup() {
// put your setup code here, to run once:
}
void loop(){
// put your main code here, to run repeatedly:
}
Bare minimum code
• setup : It is called only when the Arduino is powered on or
reset. It is used to initialize variables and pin modes
• loop :The loop functions runs continuously till the device
is powered off.The main logic of the code goes here.
Similar to while (1) for micro-controller programming.
PinMode
• A pin on arduino can be set as input or output by using
pinMode function.
• pinMode(13, OUTPUT); // sets pin 13 as output pin
• pinMode(13, INPUT); // sets pin 13 as input pin
Reading/writing digital values
• digitalWrite(13, LOW); // Makes the output voltage on pin
13 , 0V
• digitalWrite(13, HIGH); // Makes the output voltage on pin
13 , 5V
• int buttonState = digitalRead(2); // reads the value of pin
2 in buttonState
What are Libraries?
• Libraries are a collection of code that makes it easy for
you to connect to a sensor, display, module, etc. For
example, the built-in LiquidCrystal library makes it easy
to talk to character LCD displays. There are hundreds of
additional libraries available on the Internet for
download.
How to use them?
How to use them?
How to use them?
Arduino day
Think Make Share
Single Board Devices
Single Board Devices
• Early microcomputers typically consisted of a half dozen
(or more) circuit boards--plugged into a backplane--that
implemented the central processor unit (CPU), memory,
disk controllers and serial/parallel port functions.These
backplane-based microcomputers were used for data
acquisition, process control and R&D projects, but were
generally too bulky to be used as embedded systems
within devices.
Beagle board
Family
BeagleBone
Black
BeagleBone
BeagleBoard-
xM
BeagleBoard
Processor
AM3358
ARM Cortex-A8
AM3358
ARM Cortex-A8
DM3730
ARM Cortex-A8
OMAP3530
ARM Cortex-A8
Maximum
Processor Speed
1GHz 720MHz 1GHz 720MHz
Video
microHDMI,
cape add-ons
cape add-ons
DVI-D (via HDMI
connectors),S-
Video
DVI-D (via HDMI
connectors),S-
Video
Audio
microHDMI,
cape add-ons
cape add-ons
3.5mm stereo
jack
3.5mm stereo
jack
Supported
Interfaces
4x UART, 8x
PWM, LCD,
GPMC, MMC1,
2x SPI, 2x I2C,
A/D Converter,
2xCAN Bus, 4
Timers
4x UART, 8x
PWM, LCD,
GPMC, MMC1,
2x SPI, 2x I2C,
A/D Converter,
2xCAN Bus, 4
Timers, FTDI
USB to Serial,
JTAG viaUSB
McBSP, DSS,
I2C, UART, LCD,
McSPI, PWM,
JTAG, Camera
Interface
McBSP, DSS,
I2C, UART,
McSPI, PWM,
JTAG
Software Compatibilty
• Ångström Linux
• Android
• Ubuntu
• Cloud9 IDE on Node.js w/ BoneScript library
• plus much more
Pandaboard
Pandaboard
Mbed
Any Doubts?

arduino.pdf

  • 1.
  • 2.
    What is anArduino ? • Open Source electronic prototyping platform based on flexible easy to use hardware and software.
  • 3.
  • 4.
  • 5.
    A Summary ofArduino power
  • 6.
    Who is morepopular Atmega or Arduino?
  • 8.
    Bare minimum code voidsetup() { // put your setup code here, to run once: } void loop(){ // put your main code here, to run repeatedly: }
  • 9.
    Bare minimum code •setup : It is called only when the Arduino is powered on or reset. It is used to initialize variables and pin modes • loop :The loop functions runs continuously till the device is powered off.The main logic of the code goes here. Similar to while (1) for micro-controller programming.
  • 10.
    PinMode • A pinon arduino can be set as input or output by using pinMode function. • pinMode(13, OUTPUT); // sets pin 13 as output pin • pinMode(13, INPUT); // sets pin 13 as input pin
  • 11.
    Reading/writing digital values •digitalWrite(13, LOW); // Makes the output voltage on pin 13 , 0V • digitalWrite(13, HIGH); // Makes the output voltage on pin 13 , 5V • int buttonState = digitalRead(2); // reads the value of pin 2 in buttonState
  • 12.
    What are Libraries? •Libraries are a collection of code that makes it easy for you to connect to a sensor, display, module, etc. For example, the built-in LiquidCrystal library makes it easy to talk to character LCD displays. There are hundreds of additional libraries available on the Internet for download.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
    Single Board Devices •Early microcomputers typically consisted of a half dozen (or more) circuit boards--plugged into a backplane--that implemented the central processor unit (CPU), memory, disk controllers and serial/parallel port functions.These backplane-based microcomputers were used for data acquisition, process control and R&D projects, but were generally too bulky to be used as embedded systems within devices.
  • 20.
    Beagle board Family BeagleBone Black BeagleBone BeagleBoard- xM BeagleBoard Processor AM3358 ARM Cortex-A8 AM3358 ARMCortex-A8 DM3730 ARM Cortex-A8 OMAP3530 ARM Cortex-A8 Maximum Processor Speed 1GHz 720MHz 1GHz 720MHz Video microHDMI, cape add-ons cape add-ons DVI-D (via HDMI connectors),S- Video DVI-D (via HDMI connectors),S- Video Audio microHDMI, cape add-ons cape add-ons 3.5mm stereo jack 3.5mm stereo jack Supported Interfaces 4x UART, 8x PWM, LCD, GPMC, MMC1, 2x SPI, 2x I2C, A/D Converter, 2xCAN Bus, 4 Timers 4x UART, 8x PWM, LCD, GPMC, MMC1, 2x SPI, 2x I2C, A/D Converter, 2xCAN Bus, 4 Timers, FTDI USB to Serial, JTAG viaUSB McBSP, DSS, I2C, UART, LCD, McSPI, PWM, JTAG, Camera Interface McBSP, DSS, I2C, UART, McSPI, PWM, JTAG
  • 21.
    Software Compatibilty • ÅngströmLinux • Android • Ubuntu • Cloud9 IDE on Node.js w/ BoneScript library • plus much more
  • 22.
  • 23.
  • 25.
  • 26.