SlideShare a Scribd company logo
Arduino Board
Programming
Overview
What is Arduino
• Open source electronics platform
– Easy to use hardware & software
• Equipped with sets of analog & digital I/Os
• Can be interfaced to extension boards ( shields)
• Features USB based communication interface
• Provided with Integrated Development
Environment
• Aimed to provide low-cost and easy way for
students & professionals
• GNU General Public License
Arduino Board
Hardware Block Diagram
ATMEL AVR
MCU
SPI
I2C
UART
Digital
I/O
Analog
Inputs
USB
Interface
POWER
+5 Volts
+3.3 Volts
Clock
Reset
Arduino Uno Pinout
Arduino IDE
• Allows to write program and upload them into
the board
• Online Web Editor
• Arduino Desktop IDE
Sketches
• Program written using Arduino Software
• Written in text editor & save with extension of
.ino
• Arduino uses this name for a program
• Code which will be uploaded and run on the
board
IDE Basic Options
• New
– Creates a new sketch
• Open
– Allows to load the sketch from the system
• Save
– Saves the sketch
• Verify
– Checks the code for errors compiling it
• Upload
– Compiles the code and uploads to configured board
• Serial Monitor
– Opens a serial monitor
• Quit
– Closes all IDE windows
Variables
• a place to store the data
• Has name, value and type
– Example declaration
– int pin = 2;
• Specified only once and can be used many
times
• Variable assignment
– pin = 3;
Functions
• Setup
– Called when a sketch starts
– Used to initialize variables, pin modes, start using
libraries
– Will run only once, after each power up / reset of the
board
• Loop
– Called after creating setup function
– Function loops consecutively
– Allows the program to change & respond
– Actively controls the arduino
Digital I/O
• Generic Pin on an IC / Board
• Configured as Input or Output
• Can be enabled / disabled
• Logic Level
– High
– Low
• Input values are readable
• Output values are writable / readable
• Input configured pins also can be used as Interrupt
• No predefined purpose
Digital Pin Functions
• pinMode
– Configures pin as Output or Input
– pinMode(pin, mode)
• pin : pin number
• mode: INPUT, OUTPUT, INPUT_PULLUP
• digitalWrite
– Writes a High or Low value to a digital pin
– digitalWrite(pin, value)
• pin : pin number
• value : HIGH or LOW
Digital Pin Functions…
• digitalRead
– Reads the current value of specified pin
– int digitalRead(pin)
• pin : pin number
• Returns the current value
UART / Serial Port
• Univeral Asynchronuos Receiver / Transmitter
• Supports NRZ encoding format
• 7 or 8 bit data
• 1 or 2 Stop bits
• Hardware Flow Control
– RTS – Request to Send
– CTS – Clear to Send
• Programmable Parity ( even, odd and none )
• RS485, RS232 compatible
UART Interface
NXP
IMX6
UART
Serial
Device
TXD
RXD
RTS
CTS
Serial function
• begin
• end
• print
• println
• readBytes
• readString
• write
• setTimeout
• available
• availableForWrite
Inter Integrated Circuit Inteface
• Multi master, multi slave serial interface bus
• Uses only two bi-directional open drain lines
– SDA : Serial Data Line
– SCL : Serial Clock Line
• Since lines are open drain, these pins needs to
be pulled high.
– Normally pull up resistor will be 4.7 K / 10K
I2C Model
I2C
Master
uC
I2C
Slave
I2C
Slave
I2C
Slave
VCC
SCL
SDA
R R
I2C / Wire Functions
• begin
• receive
• send
• onRequest
• RequestFrom
Serial Peripheral Interface
• Synchronous Serial Communication Interface
• Used for Short distance. Basically with in the
board
• Full duplex mode with master slave architecture
• Also called as four-wire bus
• Pins
– MISO : Master Input Slave Output
– MOSI : Master Output Slave Input
– SCK : Serial Clock
– SS : Slave Select
SPI Model
SPI
Master
SPI
Slave 1
MOSI
MISO
SCK
SS1
SPI
Slave 2
SS2
Contact Us
• Address :
– No 16, First Floor, Ganesh 1st cross street
– Madipakkam Koot Road, Chennai
• Web : www.neeveetech.com
• Email :
– info@neeveetech.com
– sales@neeveetech.com
Thank You

More Related Content

PPTX
Brain gate
PDF
credit card fraud detection
PPTX
brain gate system
DOCX
Synopsis for alcohol detection with vehicle controlling (1)
PPTX
Artificial Intelligence in Small Embedded System
PPTX
Bluetooth Based Smart Sensor Network
ODP
Introduction to Arduino
PPTX
Braingate technology
Brain gate
credit card fraud detection
brain gate system
Synopsis for alcohol detection with vehicle controlling (1)
Artificial Intelligence in Small Embedded System
Bluetooth Based Smart Sensor Network
Introduction to Arduino
Braingate technology

What's hot (20)

PPTX
Development of wearable object detection system & blind stick for visuall...
PPTX
Brain chips ppt
PDF
Overview of digital design with Verilog HDL
DOCX
Hardware-Software Codesign
PPTX
SMART BLIND STICK
PPTX
Character Recognition using Machine Learning
PPSX
System on chip buses
PPS
Neural Networks
PPTX
Vehicle tracking system using iot and gps
PPTX
The Wireless M-Bus technology
PPTX
RFID BASED ATTENDANCE SYSTEM.pptx
PPT
Serial Peripheral Interface(SPI)
PPTX
Fpga based motor controller
PDF
Brain computer interfaces
PPTX
Deep Learning
DOCX
FPGA in outer space seminar report
PPT
Brain gate
PDF
IOT based Patient Health Monitoring System using Raspberry pi 3
PPTX
Women safety device with gps tracking and alerts
Development of wearable object detection system & blind stick for visuall...
Brain chips ppt
Overview of digital design with Verilog HDL
Hardware-Software Codesign
SMART BLIND STICK
Character Recognition using Machine Learning
System on chip buses
Neural Networks
Vehicle tracking system using iot and gps
The Wireless M-Bus technology
RFID BASED ATTENDANCE SYSTEM.pptx
Serial Peripheral Interface(SPI)
Fpga based motor controller
Brain computer interfaces
Deep Learning
FPGA in outer space seminar report
Brain gate
IOT based Patient Health Monitoring System using Raspberry pi 3
Women safety device with gps tracking and alerts
Ad

Similar to Arduino Programming - Brief Introduction (20)

PPTX
PPTX
Arduino_Beginner.pptx
PPTX
Arduino_Beginner.pptx
PPTX
teststststststLecture_3_2022_Arduino.pptx
PPTX
Introduction to the Arduino
PPTX
Introduction to Arduino Webinar
PPTX
What is Arduino
PPTX
Arduino Foundations
PPTX
Internet of Things prescribed by University
PPTX
arduino and its introduction deep dive ppt.pptx
PPTX
Arduino course
PDF
introductiontoarduino-111120102058-phpapp02.pdf
PDF
arduinocourse-180308074529 (1).pdf
PPT
I2C And SPI Part-23
PPT
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
PPTX
Arduino and c programming
PPTX
Arduino-101-Workshop (Introduction to Arduino and motor driver)
PPTX
Embedded system design using arduino
PPT
PPI-MECHATRONICS
PPT
ARDUINO AND ITS PIN CONFIGURATION
Arduino_Beginner.pptx
Arduino_Beginner.pptx
teststststststLecture_3_2022_Arduino.pptx
Introduction to the Arduino
Introduction to Arduino Webinar
What is Arduino
Arduino Foundations
Internet of Things prescribed by University
arduino and its introduction deep dive ppt.pptx
Arduino course
introductiontoarduino-111120102058-phpapp02.pdf
arduinocourse-180308074529 (1).pdf
I2C And SPI Part-23
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
Arduino and c programming
Arduino-101-Workshop (Introduction to Arduino and motor driver)
Embedded system design using arduino
PPI-MECHATRONICS
ARDUINO AND ITS PIN CONFIGURATION
Ad

More from NEEVEE Technologies (20)

PPTX
C Language Programming - Program Outline / Schedule
PPTX
Python programming for Beginners - II
PPTX
Python programming for Beginners - I
PPTX
Engineering College - Internship proposal
PPTX
NVDK-ESP32 WiFi Station / Access Point
PPTX
NVDK-ESP32 Quick Start Guide
PPTX
General Purpose Input Output - Brief Introduction
PPTX
Yocto BSP Layer for UDOO NEO Board
PPTX
Building Embedded Linux UDOONEO
PPTX
Open Computer Vision Based Image Processing
PPTX
Introduction to Machine learning
PPTX
Introduction Linux Device Drivers
PPTX
Introduction about Apache MYNEWT RTOS
PPTX
Introduction to Bluetooth Low Energy
PPTX
NXP i.MX6 Multi Media Processor & Peripherals
PPTX
Introduction to Bluetooth low energy
PPTX
MarsBoard - NXP IMX6 Processor
PPTX
NXP IMX6 Processor - Embedded Linux
PPTX
Introduction to Hardware Design Using KiCAD
PPTX
Internet of things - zigbee network function
C Language Programming - Program Outline / Schedule
Python programming for Beginners - II
Python programming for Beginners - I
Engineering College - Internship proposal
NVDK-ESP32 WiFi Station / Access Point
NVDK-ESP32 Quick Start Guide
General Purpose Input Output - Brief Introduction
Yocto BSP Layer for UDOO NEO Board
Building Embedded Linux UDOONEO
Open Computer Vision Based Image Processing
Introduction to Machine learning
Introduction Linux Device Drivers
Introduction about Apache MYNEWT RTOS
Introduction to Bluetooth Low Energy
NXP i.MX6 Multi Media Processor & Peripherals
Introduction to Bluetooth low energy
MarsBoard - NXP IMX6 Processor
NXP IMX6 Processor - Embedded Linux
Introduction to Hardware Design Using KiCAD
Internet of things - zigbee network function

Recently uploaded (20)

PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
Geodesy 1.pptx...............................................
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
composite construction of structures.pdf
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
UNIT 4 Total Quality Management .pptx
PPT
Project quality management in manufacturing
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Sustainable Sites - Green Building Construction
PPTX
Construction Project Organization Group 2.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Digital Logic Computer Design lecture notes
Geodesy 1.pptx...............................................
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
CYBER-CRIMES AND SECURITY A guide to understanding
Foundation to blockchain - A guide to Blockchain Tech
composite construction of structures.pdf
Lecture Notes Electrical Wiring System Components
CH1 Production IntroductoryConcepts.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
UNIT 4 Total Quality Management .pptx
Project quality management in manufacturing
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Sustainable Sites - Green Building Construction
Construction Project Organization Group 2.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf

Arduino Programming - Brief Introduction

  • 2. What is Arduino • Open source electronics platform – Easy to use hardware & software • Equipped with sets of analog & digital I/Os • Can be interfaced to extension boards ( shields) • Features USB based communication interface • Provided with Integrated Development Environment • Aimed to provide low-cost and easy way for students & professionals • GNU General Public License
  • 4. Hardware Block Diagram ATMEL AVR MCU SPI I2C UART Digital I/O Analog Inputs USB Interface POWER +5 Volts +3.3 Volts Clock Reset
  • 6. Arduino IDE • Allows to write program and upload them into the board • Online Web Editor • Arduino Desktop IDE
  • 7. Sketches • Program written using Arduino Software • Written in text editor & save with extension of .ino • Arduino uses this name for a program • Code which will be uploaded and run on the board
  • 8. IDE Basic Options • New – Creates a new sketch • Open – Allows to load the sketch from the system • Save – Saves the sketch • Verify – Checks the code for errors compiling it • Upload – Compiles the code and uploads to configured board • Serial Monitor – Opens a serial monitor • Quit – Closes all IDE windows
  • 9. Variables • a place to store the data • Has name, value and type – Example declaration – int pin = 2; • Specified only once and can be used many times • Variable assignment – pin = 3;
  • 10. Functions • Setup – Called when a sketch starts – Used to initialize variables, pin modes, start using libraries – Will run only once, after each power up / reset of the board • Loop – Called after creating setup function – Function loops consecutively – Allows the program to change & respond – Actively controls the arduino
  • 11. Digital I/O • Generic Pin on an IC / Board • Configured as Input or Output • Can be enabled / disabled • Logic Level – High – Low • Input values are readable • Output values are writable / readable • Input configured pins also can be used as Interrupt • No predefined purpose
  • 12. Digital Pin Functions • pinMode – Configures pin as Output or Input – pinMode(pin, mode) • pin : pin number • mode: INPUT, OUTPUT, INPUT_PULLUP • digitalWrite – Writes a High or Low value to a digital pin – digitalWrite(pin, value) • pin : pin number • value : HIGH or LOW
  • 13. Digital Pin Functions… • digitalRead – Reads the current value of specified pin – int digitalRead(pin) • pin : pin number • Returns the current value
  • 14. UART / Serial Port • Univeral Asynchronuos Receiver / Transmitter • Supports NRZ encoding format • 7 or 8 bit data • 1 or 2 Stop bits • Hardware Flow Control – RTS – Request to Send – CTS – Clear to Send • Programmable Parity ( even, odd and none ) • RS485, RS232 compatible
  • 16. Serial function • begin • end • print • println • readBytes • readString • write • setTimeout • available • availableForWrite
  • 17. Inter Integrated Circuit Inteface • Multi master, multi slave serial interface bus • Uses only two bi-directional open drain lines – SDA : Serial Data Line – SCL : Serial Clock Line • Since lines are open drain, these pins needs to be pulled high. – Normally pull up resistor will be 4.7 K / 10K
  • 19. I2C / Wire Functions • begin • receive • send • onRequest • RequestFrom
  • 20. Serial Peripheral Interface • Synchronous Serial Communication Interface • Used for Short distance. Basically with in the board • Full duplex mode with master slave architecture • Also called as four-wire bus • Pins – MISO : Master Input Slave Output – MOSI : Master Output Slave Input – SCK : Serial Clock – SS : Slave Select
  • 22. Contact Us • Address : – No 16, First Floor, Ganesh 1st cross street – Madipakkam Koot Road, Chennai • Web : www.neeveetech.com • Email : – info@neeveetech.com – sales@neeveetech.com