SlideShare a Scribd company logo
Getting started with Arduino
Hands-on Workshop
Sudar Muthu
http://hardwarefun.com
@hardwarefun
What is an Arduino?
Photo credit: Arduino team
Types of Arduino
• Leonardo, Uno (and older ones)
• Yun (Includes a Linux Kernel)
• Due (32-bit)
• Mega (more input pins)
• Arduino BT (includes Bluetooth)
• LilyPad (wearable)
• Arduino Pro
• ADK (supports Android ADK)
• Clones (around 300+)
Arduino Shields
http://shieldlist.org/
Breadboard Basics
http://hardwarefun.com 5
• The first two and the last two rows are
connected
• In all the other rows, columns are connected
• Connect the first and last row to power
• Connect the second and second last row to
ground
http://hardwarefun.com 6
How to use a breadboard
Powering Up Arduino
http://hardwarefun.com 7
• Using USB cable
• Using DC power jacket
• Giving voltage directly into Vin pin
• Giving regulated voltage directly into 5V pin
http://hardwarefun.com 8
Different ways to power up Arduino
Setting Up Arduino
http://hardwarefun.com 9
Testing The Setup With A
“Hello World” Program
http://hardwarefun.com 10
http://hardwarefun.com 11
Blinking LED
• Insert a LED in pin 13
• Open File->Examples->Basics->Blink
• Select Tools->Boards->Arduino Uno
• Select File->Upload (or press ctrl+u)
• You should get the message “Done upload”
• Your Led should blink
• Congrats you can program Arduino now 
http://hardwarefun.com 12
Making a LED blink
Anatomy Of An Arduino Sketch
http://hardwarefun.com 13
Things you can try
• Vary the frequency at which the LED is
blinking
• Add more LED’s
• Uno has one UART hardware port, using which
we can exchange information with computer
• Very useful for debugging
• Works at a specified baud rate
• Use Serial Monitor to read values (Tools ->
Serial Monitor)
• SoftwareSerial is also available
http://hardwarefun.com 15
Printing values through Serial
Reading values from Serial
serial.read()
serial.print()
serial.println()
https://github.com/sudar/arduino-
sketches/blob/master/SerialPrint/SerialPrint.ino
Digital Input And Output
http://hardwarefun.com 17
Digital Input
http://hardwarefun.com 18
Code
Open File->Examples->Basics->DigitalReadSerial
The LED blink that we did at “setting up
Arduino” is Digital output
http://hardwarefun.com 20
Digital Output
Analog Input
http://hardwarefun.com 21
• Connect the LDR on pin A0 and Gnd
• LDR’s resistance varies based on the amount
of light present
• Read the current value using analogRead()
• Print the value in Serial Monitor
http://hardwarefun.com 22
Reading Analog values from sensors
Code
Open File->Examples->Basics->AnalogReadSerial
Analog Output
http://hardwarefun.com 24
• What is PWM?
• Analog like behavior using digital output
• Works by switching the LED on and off
regularly
• Changing the brightness of a Led
http://hardwarefun.com 25
Analog Output
Code
Open File->Examples->Analog->Fading
Combining Input and Output
http://hardwarefun.com 27
Control an LED based on light
void setup()
{
pinMode(13, OUTPUT);
}
void loop()
{
int val = analogRead(A0);
if (val > 50) {
digitalWrite(13, HIGH);
} else {
digitalWrite(13, LOW);
}
}
Things to try
• Control LED based on button press
• Alternate two LED’s based on button press
• Persist the status of button
Moving Forward
• Connect to display devices like 7-segment
display or LCD
• Connect to motion sensors
• Connect to other components like shift
register etc
• Connect to a RTC chip
Things which I have tried
• Connecting to mobile Android phones using
– Bluetooth
– Wired and wireless
– Audio Jacket
– NFC
– ADK
• Connected all sorts of display devices including VGA devices like projectors
• Connected external USB devices like keyboard, mouse and even USB Missile
launchers - http://hardwarefun.com/tutorials/controlling-usb-missile-launchers-
using-arduino
• Connected ez430 chronos watch
• Connected IR devices like TV Remotes etc
• Connected bluetooth devices like WiiRemote
• Created small autonomous bots that can be controlled by either a WiiRemote or
Android phones - http://hardwarefun.com/projects/asimi
• Detect motion using PIR, IR and ultrasound motion sensors
• More projects at http://hardwarefun.com

More Related Content

PPTX
Arduino Robotics workshop Day1
ODP
Robotics and Arduino (Arduino UNO)
PPTX
Capabilities of Arduino (including Due)
PPTX
Different Arduino Boards
PPTX
Arduino Robotics workshop day2
PPTX
Robotics with arduino
PPT
Arduino Introduction by coopermaa
PPTX
Arduino uno
Arduino Robotics workshop Day1
Robotics and Arduino (Arduino UNO)
Capabilities of Arduino (including Due)
Different Arduino Boards
Arduino Robotics workshop day2
Robotics with arduino
Arduino Introduction by coopermaa
Arduino uno

What's hot (20)

PPS
Arduino Uno Pin Description
PPTX
Basics of arduino uno
PPTX
Arduino Day 1 Presentation
PPTX
What are the different types of arduino boards
PPTX
Introduction to Arduino
PDF
Introduction to Arduino
PPT
IoT with Arduino
PPTX
Arduino
PPTX
Introduction to Arduino Hardware and Programming
PDF
Presentation S4A
PPTX
Introduction to Arduino & Robotics
PDF
Introduction to Arduino Programming
PPTX
Arduino slides
PDF
Introduction to Arduino and Circuits
PPT
Getting Started With Arduino How To Build A Twitter Monitoring Alertuino
PPTX
Introduction to Arduino
PPTX
Arduino as an embedded industrial controller
PDF
Arduino uno
PPS
What is Arduino ?
PDF
Introducing... Arduino
Arduino Uno Pin Description
Basics of arduino uno
Arduino Day 1 Presentation
What are the different types of arduino boards
Introduction to Arduino
Introduction to Arduino
IoT with Arduino
Arduino
Introduction to Arduino Hardware and Programming
Presentation S4A
Introduction to Arduino & Robotics
Introduction to Arduino Programming
Arduino slides
Introduction to Arduino and Circuits
Getting Started With Arduino How To Build A Twitter Monitoring Alertuino
Introduction to Arduino
Arduino as an embedded industrial controller
Arduino uno
What is Arduino ?
Introducing... Arduino
Ad

Similar to Getting started with arduino workshop (20)

PDF
Lab2ppt
PPTX
Arduino Introduction PPT for school students
PPTX
Arduino basics & programming skill development
PPT
Arduino is an open-source electronics platform that has an easy-to-use physic...
PPT
Arduino wk2
PPT
Fundamentals of programming Arduino-Wk2.ppt
PPTX
Using arduino and raspberry pi for internet of things
PDF
02 Sensors and Actuators Understand .pdf
PPTX
Arduino Slides With Neopixels
PDF
Arduino_IOT Arduino_IOT Arduino_IOTArdui
PPTX
IoT applications With Arduino coding and real life examples
PPT
arudino introction and types of boards main aruduni uno
PPTX
Arduino Programming Familiarization
PPTX
Introduction to Arduino Webinar
PPTX
teststststststLecture_3_2022_Arduino.pptx
PDF
The document proceeds to explain the main components of an Arduino Uno board ...
PDF
Arduino microcontroller ins and outs with pin diagram
PPTX
ARDUINO.pptx
PPTX
Arduino Workshop Slides
PPTX
Arduino.pptx
Lab2ppt
Arduino Introduction PPT for school students
Arduino basics & programming skill development
Arduino is an open-source electronics platform that has an easy-to-use physic...
Arduino wk2
Fundamentals of programming Arduino-Wk2.ppt
Using arduino and raspberry pi for internet of things
02 Sensors and Actuators Understand .pdf
Arduino Slides With Neopixels
Arduino_IOT Arduino_IOT Arduino_IOTArdui
IoT applications With Arduino coding and real life examples
arudino introction and types of boards main aruduni uno
Arduino Programming Familiarization
Introduction to Arduino Webinar
teststststststLecture_3_2022_Arduino.pptx
The document proceeds to explain the main components of an Arduino Uno board ...
Arduino microcontroller ins and outs with pin diagram
ARDUINO.pptx
Arduino Workshop Slides
Arduino.pptx
Ad

More from Sudar Muthu (20)

PPTX
A quick preview of WP CLI - Chennai WordPress Meetup
PDF
WordPress Developer tools
PDF
WordPress Developer Tools to increase productivity
PDF
Unit testing for WordPress
PDF
Unit testing in php
PPTX
How arduino helped me in life
PPTX
Having fun with hardware
PPTX
Python in raspberry pi
PPTX
Hack 101 at IIT Kanpur
PPTX
PureCSS open hack 2013
PPTX
Pig workshop
PPTX
Hands on Hadoop and pig
PPTX
Lets make robots
PPTX
Controlling robots using javascript
PPTX
Picture perfect hacks with flickr API
PPTX
Hacking 101
PPTX
Capabilities of Arduino
PPTX
Introduction to node.js GDD
PPTX
Using Javascript in today's world
PPTX
Hack u yql-iit-delhi
A quick preview of WP CLI - Chennai WordPress Meetup
WordPress Developer tools
WordPress Developer Tools to increase productivity
Unit testing for WordPress
Unit testing in php
How arduino helped me in life
Having fun with hardware
Python in raspberry pi
Hack 101 at IIT Kanpur
PureCSS open hack 2013
Pig workshop
Hands on Hadoop and pig
Lets make robots
Controlling robots using javascript
Picture perfect hacks with flickr API
Hacking 101
Capabilities of Arduino
Introduction to node.js GDD
Using Javascript in today's world
Hack u yql-iit-delhi

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Cloud computing and distributed systems.
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Advanced IT Governance
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Transforming Manufacturing operations through Intelligent Integrations
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Newfamily of error-correcting codes based on genetic algorithms
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PPTX
CroxyProxy Instagram Access id login.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Big Data Technologies - Introduction.pptx
NewMind AI Monthly Chronicles - July 2025
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Cloud computing and distributed systems.
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Advanced IT Governance
CIFDAQ's Market Insight: SEC Turns Pro Crypto
“AI and Expert System Decision Support & Business Intelligence Systems”
MYSQL Presentation for SQL database connectivity
Transforming Manufacturing operations through Intelligent Integrations
20250228 LYD VKU AI Blended-Learning.pptx
Newfamily of error-correcting codes based on genetic algorithms
NewMind AI Weekly Chronicles - August'25 Week I
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
CroxyProxy Instagram Access id login.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation

Getting started with arduino workshop

  • 1. Getting started with Arduino Hands-on Workshop Sudar Muthu http://hardwarefun.com @hardwarefun
  • 2. What is an Arduino? Photo credit: Arduino team
  • 3. Types of Arduino • Leonardo, Uno (and older ones) • Yun (Includes a Linux Kernel) • Due (32-bit) • Mega (more input pins) • Arduino BT (includes Bluetooth) • LilyPad (wearable) • Arduino Pro • ADK (supports Android ADK) • Clones (around 300+)
  • 6. • The first two and the last two rows are connected • In all the other rows, columns are connected • Connect the first and last row to power • Connect the second and second last row to ground http://hardwarefun.com 6 How to use a breadboard
  • 8. • Using USB cable • Using DC power jacket • Giving voltage directly into Vin pin • Giving regulated voltage directly into 5V pin http://hardwarefun.com 8 Different ways to power up Arduino
  • 10. Testing The Setup With A “Hello World” Program http://hardwarefun.com 10
  • 12. • Insert a LED in pin 13 • Open File->Examples->Basics->Blink • Select Tools->Boards->Arduino Uno • Select File->Upload (or press ctrl+u) • You should get the message “Done upload” • Your Led should blink • Congrats you can program Arduino now  http://hardwarefun.com 12 Making a LED blink
  • 13. Anatomy Of An Arduino Sketch http://hardwarefun.com 13
  • 14. Things you can try • Vary the frequency at which the LED is blinking • Add more LED’s
  • 15. • Uno has one UART hardware port, using which we can exchange information with computer • Very useful for debugging • Works at a specified baud rate • Use Serial Monitor to read values (Tools -> Serial Monitor) • SoftwareSerial is also available http://hardwarefun.com 15 Printing values through Serial
  • 16. Reading values from Serial serial.read() serial.print() serial.println() https://github.com/sudar/arduino- sketches/blob/master/SerialPrint/SerialPrint.ino
  • 17. Digital Input And Output http://hardwarefun.com 17
  • 20. The LED blink that we did at “setting up Arduino” is Digital output http://hardwarefun.com 20 Digital Output
  • 22. • Connect the LDR on pin A0 and Gnd • LDR’s resistance varies based on the amount of light present • Read the current value using analogRead() • Print the value in Serial Monitor http://hardwarefun.com 22 Reading Analog values from sensors
  • 25. • What is PWM? • Analog like behavior using digital output • Works by switching the LED on and off regularly • Changing the brightness of a Led http://hardwarefun.com 25 Analog Output
  • 27. Combining Input and Output http://hardwarefun.com 27
  • 28. Control an LED based on light void setup() { pinMode(13, OUTPUT); } void loop() { int val = analogRead(A0); if (val > 50) { digitalWrite(13, HIGH); } else { digitalWrite(13, LOW); } }
  • 29. Things to try • Control LED based on button press • Alternate two LED’s based on button press • Persist the status of button
  • 30. Moving Forward • Connect to display devices like 7-segment display or LCD • Connect to motion sensors • Connect to other components like shift register etc • Connect to a RTC chip
  • 31. Things which I have tried • Connecting to mobile Android phones using – Bluetooth – Wired and wireless – Audio Jacket – NFC – ADK • Connected all sorts of display devices including VGA devices like projectors • Connected external USB devices like keyboard, mouse and even USB Missile launchers - http://hardwarefun.com/tutorials/controlling-usb-missile-launchers- using-arduino • Connected ez430 chronos watch • Connected IR devices like TV Remotes etc • Connected bluetooth devices like WiiRemote • Created small autonomous bots that can be controlled by either a WiiRemote or Android phones - http://hardwarefun.com/projects/asimi • Detect motion using PIR, IR and ultrasound motion sensors • More projects at http://hardwarefun.com