Introduction to Arduino Preet Sangha 23 May 2016
Shameless Plugs • Who am I? • Why am I here? • Who are you, and why are you here? ;-)
What I’m covering • Jump start • What is it • How to start using it • Even cooler stuff Yes … there will be demos
What is Arduino?
Many Types
It’s Open Source • Both hardware design and software • Based on an earlier project(?) • Don’t call it Arduino though! • Funduino • Diavalino • Freeduino • Seeeduino • Nanocode • Arduino name belongs to Arduino.cc
Basics • The world is analogue (analog) • Computers are mostly digital • Arduino bridges divide • Make complex decisions with simple code
A real world problem!
What about computers? • Yes you can, but • Problems • Physical size • Complexity • Drivers • $$$ • What about smart phones? • Yes mostly the same issues
Microcontrollers • Cheap • Ubiquitous • But have limited resources • Need (some) careful design • Automate almost anything • Imagination v. credit card
Isn’t it complex? • Only if you want • Can start very simply
Ok I’m in… How do I start?
Buy a few things Breadboard Wires ResistorsA board LEDs
Or a starter kit http://www.geeker.co.nz/kits/arduino/ard uino-starter-kit-standard.html Arduino Starter Kit (24 Project)
Or just use a free simulator https://123d.circuits.io
Arduino is a platform • Many different microcontrollers • Some more powerful than others • Different strengths/weaknesses • hardware < == > software libraries • No lock in • The Arduino IDE A common experience
What about the Raspberry Pi • Not Arduino • It’s a microprocessor/computer • Much more versatile but more complex • Can do many things – it’s a computer! • Costs more!
So why use Arduino? • Easily talks to hardware • Educational – heaps of resources/examples • Simple to get going • No operating system in your way • Just your hardware and your code
Coding • C like language* • Windows/Linux/Mac • Heaps of examples • Forgiving
Coding • Easy start • Download • Install • Connect • Go! • Need two functions only • setup() • loop()
Connect 1/2 • Set the board
Connect 2/2 • Set the port
Time to do some demos! 1. Actuate 2. Sense 3. Control 4. Internet of Things
Demo 1 - Lets do the Arduino “Hello World”
Sensing the real world • Interface real world to our electronic world • Analogue or Digital • Examples • Light, Motion, Temperature, Sound etc. • Anything that can be measured can be sensed! • Used to make decisions
Demo 2 – Digital Sensor
Demo 3 – Analogue Control
Resources • www.Arduino.cc • Youtube • Massimo Banzi: How Arduino is open-sourcing imagination • https://programmingelectronics.com/thearduinocourse/ • https://www.youtube.com/user/iforce2d • Purchase • Ali Express • Ebay • Trademe • Bang Good • Hobby King
More cool stuff?
Extras • 1-Day Project: Build Your Own Arduino Uno for $5 • Shields • Add functionality • Communications e.g. GSM, Wifi, Ethernet, Radio, etc. • Camera control • SD cards • Your own custom boards (anything)
Internet of Things • Got me excited • Needs communication • Lots of other chips e.g. the ESP 8266 • Built in Wifi
Demo 4 – IoT
Coding #2 • Arduino is usually programmed in a C/C++ type of language • Not the only option (but smaller communities) • Graphical languages - Ardublock • .NET Micro Framework/C# • Different projects are porting different languages • Two prominent ones for the ESP 8266 • NodeMCU (LUA) • Micro Python (err Python I think)
Don’t need to use the Arduino IDE! http://www.visualmicro.com/ • Microsoft Visual Studio • With intellisense!!!!
Thank you for patience! Any questions!

Introduction to arduino

  • 1.
  • 2.
    Shameless Plugs • Whoam I? • Why am I here? • Who are you, and why are you here? ;-)
  • 3.
    What I’m covering •Jump start • What is it • How to start using it • Even cooler stuff Yes … there will be demos
  • 4.
  • 5.
  • 6.
    It’s Open Source •Both hardware design and software • Based on an earlier project(?) • Don’t call it Arduino though! • Funduino • Diavalino • Freeduino • Seeeduino • Nanocode • Arduino name belongs to Arduino.cc
  • 7.
    Basics • The worldis analogue (analog) • Computers are mostly digital • Arduino bridges divide • Make complex decisions with simple code
  • 8.
    A real worldproblem!
  • 9.
    What about computers? •Yes you can, but • Problems • Physical size • Complexity • Drivers • $$$ • What about smart phones? • Yes mostly the same issues
  • 10.
    Microcontrollers • Cheap • Ubiquitous •But have limited resources • Need (some) careful design • Automate almost anything • Imagination v. credit card
  • 11.
    Isn’t it complex? •Only if you want • Can start very simply
  • 12.
    Ok I’m in… Howdo I start?
  • 13.
    Buy a fewthings Breadboard Wires ResistorsA board LEDs
  • 14.
    Or a starterkit http://www.geeker.co.nz/kits/arduino/ard uino-starter-kit-standard.html Arduino Starter Kit (24 Project)
  • 15.
    Or just usea free simulator https://123d.circuits.io
  • 16.
    Arduino is aplatform • Many different microcontrollers • Some more powerful than others • Different strengths/weaknesses • hardware < == > software libraries • No lock in • The Arduino IDE A common experience
  • 17.
    What about theRaspberry Pi • Not Arduino • It’s a microprocessor/computer • Much more versatile but more complex • Can do many things – it’s a computer! • Costs more!
  • 18.
    So why useArduino? • Easily talks to hardware • Educational – heaps of resources/examples • Simple to get going • No operating system in your way • Just your hardware and your code
  • 19.
    Coding • C likelanguage* • Windows/Linux/Mac • Heaps of examples • Forgiving
  • 20.
    Coding • Easy start •Download • Install • Connect • Go! • Need two functions only • setup() • loop()
  • 21.
  • 22.
  • 23.
    Time to dosome demos! 1. Actuate 2. Sense 3. Control 4. Internet of Things
  • 24.
    Demo 1 -Lets do the Arduino “Hello World”
  • 25.
    Sensing the realworld • Interface real world to our electronic world • Analogue or Digital • Examples • Light, Motion, Temperature, Sound etc. • Anything that can be measured can be sensed! • Used to make decisions
  • 26.
    Demo 2 –Digital Sensor
  • 27.
    Demo 3 –Analogue Control
  • 28.
    Resources • www.Arduino.cc • Youtube •Massimo Banzi: How Arduino is open-sourcing imagination • https://programmingelectronics.com/thearduinocourse/ • https://www.youtube.com/user/iforce2d • Purchase • Ali Express • Ebay • Trademe • Bang Good • Hobby King
  • 29.
  • 30.
    Extras • 1-Day Project:Build Your Own Arduino Uno for $5 • Shields • Add functionality • Communications e.g. GSM, Wifi, Ethernet, Radio, etc. • Camera control • SD cards • Your own custom boards (anything)
  • 31.
    Internet of Things •Got me excited • Needs communication • Lots of other chips e.g. the ESP 8266 • Built in Wifi
  • 32.
  • 33.
    Coding #2 • Arduinois usually programmed in a C/C++ type of language • Not the only option (but smaller communities) • Graphical languages - Ardublock • .NET Micro Framework/C# • Different projects are porting different languages • Two prominent ones for the ESP 8266 • NodeMCU (LUA) • Micro Python (err Python I think)
  • 34.
    Don’t need touse the Arduino IDE! http://www.visualmicro.com/ • Microsoft Visual Studio • With intellisense!!!!
  • 35.
    Thank you forpatience! Any questions!

Editor's Notes

  • #2 Hey everyone, Welcome to Introduction to Arduino, my name is Preet Sangha. Thank you for trekking out here and for helping make this meetup a 100% successful meetup ;)
  • #3 Preet Sangha Dev for nearly 40 years – yes I started coding back in 1977 on the BBC micro and the TRS 80. Since then I’ve programmed on mainframes through to pipe computers counting gas on robot gas rigs in the North Sea, from PCs to web to workstations and back to fat clients. In all that time I’ve enjoyed making machines do my bidding. Recently I felt like going back to low level programming and now that my kids are teenagers I decided to geek out and investigate Arduino. This meetup is was created to let me indulge in this hobby! I have a few projects in mind and a few on the go. Anyway that’s enough about me, now it’s your turn. Please could we go around the room, and introduce ourselves, and perhaps if you’re up to it, say a few words about what you are would like to do/see/discuss.
  • #5 I thought I’d let the Arduino project themselves summarise what Arduino is.
  • #9 Let’s consider a real world problem
  • #10 So what is the Arduino actually? Arduino basically consists a Microcontroller on a board supported by some other circuitry to enable you to program and use it easily
  • #11 So what is the Arduino actually? Arduino basically consists a Microcontroller on a board supported by some other circuitry to enable you to program and use it easily
  • #27 Should have a pulldown!
  • #28 Should have a pulldown!
  • #33 Should have a pulldown!