SlideShare ist ein Scribd-Unternehmen logo
1 von 38
Jim Christopher
Getting Started with Arduino
CodeStock is proudly partnered with:
Send instant feedback on this session via Twitter:
Send a direct message with the room number to @CodeStock
d codestock 413c This session is great!
For more information on sending feedback using Twitter while at
CodeStock, please see the “CodeStock README” in your CodeStock guide.
RecruitWise and Staff with Excellence - www.recruitwise.jobs
http://twitter.com/oreillymedia
http://oreilly.com/
(PERSONAL SPONSOR)
jim@codeowls.com
http://twitter.com/beefarino
http://www.beefycode.com
Jim Christopher
Code Owls LLC
Charlotte, NC
http://twitter.com/charduino
http://www.charduino.org
Charlotte Arduinophiles
Physical Computing
Physical Computing
Physical Computing
Physical Computing
Physical Computing
How Arduino Fits In
How Arduino Fits In
How Arduino Fits In
Resource Comparison
MHz
Flash (KB)
RAM (KB)
16
32
2
72
512
96
Assets
ATMEGA328 USBizi144
Resource Comparison
Cost ($)
Normal Power (mA)
Low Power (microA)
4
0.2
0.75
30
100
200
Consumables
ATMEGA328 USBizi144
Resource Comparison
Little PCsGPIO vs
HARDWARE SURVEY
Blink the Light Fantastic
Blink the Light Fantastic
Breadboard
Arduino
Blink the Light Fantastic
Resistor
Button
LED
Blink the Light Fantastic
Blink the Light Fantastic
Blink the Light Fantastic
PROJECT ASSEMBLY & CODE
Blink the Light Fantastic
Programming Process
Code
Compile
Upload
Builduino
CI
Server
Source
Repository
Builduino
CI
Server
Source
Repository
Builduino
CI
Server
Resources
‱ http://www.arduino.cc
‱ http://www.makershed.com
‱ http://www.sparkfun.com
‱ Buy a kit
Want a free O’Reilly ebook?
‱ Follow @beefarino
‱ Follow @oreillymedia
‱ Tweet something you learned today
‱ #codestock
‱ #arduino
Getting Started with
Arduino
Jim Christopher
Code Owls LLC
jim@codeowls.com
http://twitter.com/beefarino
http://www.beefycode.com

Weitere Àhnliche Inhalte

Ähnlich wie Getting Started With Arduino

2016 Ohio Craft Brewer's Conference - Brewery Automation - John Blystone
2016 Ohio Craft Brewer's Conference - Brewery Automation - John Blystone2016 Ohio Craft Brewer's Conference - Brewery Automation - John Blystone
2016 Ohio Craft Brewer's Conference - Brewery Automation - John Blystone
John Blystone
 
Searchlight Systems
Searchlight SystemsSearchlight Systems
Searchlight Systems
duquet
 

Ähnlich wie Getting Started With Arduino (20)

EVENT - Coding4Fun DotnetMalaga
EVENT - Coding4Fun DotnetMalagaEVENT - Coding4Fun DotnetMalaga
EVENT - Coding4Fun DotnetMalaga
 
Feasibility of Security in Micro-Controllers
Feasibility of Security in Micro-ControllersFeasibility of Security in Micro-Controllers
Feasibility of Security in Micro-Controllers
 
Arduino and Physical Computing
Arduino and Physical ComputingArduino and Physical Computing
Arduino and Physical Computing
 
Exploring and Using the Python Ecosystem
Exploring and Using the Python EcosystemExploring and Using the Python Ecosystem
Exploring and Using the Python Ecosystem
 
Why "Hello World" is a Massive Operation - From Python code to Stack Virtual ...
Why "Hello World" is a Massive Operation - From Python code to Stack Virtual ...Why "Hello World" is a Massive Operation - From Python code to Stack Virtual ...
Why "Hello World" is a Massive Operation - From Python code to Stack Virtual ...
 
NSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and ArduinoNSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and Arduino
 
Config and Deployments as Code with Octopus Deploy
Config and Deployments as Code with Octopus DeployConfig and Deployments as Code with Octopus Deploy
Config and Deployments as Code with Octopus Deploy
 
Metasepi team meeting #20: Start! ATS programming on MCU
Metasepi team meeting #20: Start! ATS programming on MCUMetasepi team meeting #20: Start! ATS programming on MCU
Metasepi team meeting #20: Start! ATS programming on MCU
 
Country domination - Causing chaos and wrecking havoc
Country domination - Causing chaos and wrecking havocCountry domination - Causing chaos and wrecking havoc
Country domination - Causing chaos and wrecking havoc
 
Introduction to RIoT Hardware Kits & ESP32 Programming [Road to RIoT 2017]
Introduction to RIoT Hardware Kits & ESP32 Programming [Road to RIoT 2017]Introduction to RIoT Hardware Kits & ESP32 Programming [Road to RIoT 2017]
Introduction to RIoT Hardware Kits & ESP32 Programming [Road to RIoT 2017]
 
Open Source Robotics as Booster to Creativity
Open Source Robotics as  Booster to CreativityOpen Source Robotics as  Booster to Creativity
Open Source Robotics as Booster to Creativity
 
2016 Ohio Craft Brewer's Conference - Brewery Automation - John Blystone
2016 Ohio Craft Brewer's Conference - Brewery Automation - John Blystone2016 Ohio Craft Brewer's Conference - Brewery Automation - John Blystone
2016 Ohio Craft Brewer's Conference - Brewery Automation - John Blystone
 
Internet of Things (IoT) Presentation
Internet of Things (IoT) PresentationInternet of Things (IoT) Presentation
Internet of Things (IoT) Presentation
 
Pharo Optimising JIT Internals
Pharo Optimising JIT InternalsPharo Optimising JIT Internals
Pharo Optimising JIT Internals
 
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A GlanceAVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
 
Sigfox Workshop with Akeru & TheThings.io
Sigfox Workshop with Akeru & TheThings.ioSigfox Workshop with Akeru & TheThings.io
Sigfox Workshop with Akeru & TheThings.io
 
Hacker's and painters Hardware Hacking 101 - 10th Oct 2014
Hacker's and painters Hardware Hacking 101 - 10th Oct 2014Hacker's and painters Hardware Hacking 101 - 10th Oct 2014
Hacker's and painters Hardware Hacking 101 - 10th Oct 2014
 
AT&T IoT Hackathon - Seattle
AT&T IoT Hackathon - SeattleAT&T IoT Hackathon - Seattle
AT&T IoT Hackathon - Seattle
 
Searchlight Systems
Searchlight SystemsSearchlight Systems
Searchlight Systems
 
Achieving Technical Excellence in Your Software Teams - from Devternity
Achieving Technical Excellence in Your Software Teams - from Devternity Achieving Technical Excellence in Your Software Teams - from Devternity
Achieving Technical Excellence in Your Software Teams - from Devternity
 

KĂŒrzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

KĂŒrzlich hochgeladen (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

Getting Started With Arduino

Hinweis der Redaktion

  1. Thanks for coming to this session, this is Leveraging Azure Cloud Services from Fluent Cobol.NET SETUP: PING on pin 7 Launch missle command
  2. Personal sponsor: Oreilly, the animal books, have provided a few giveaway items for you guys today.
  3. Me
  4. The theme here is community and networking
 Charduinophiles Getting organized robot competitions General nogoodnicking Any interest, let me know
  5. I’m assuming this is untread territory for you. Embedded systems in general, Arduino specifically. Is that accurate? How many of you have heard of Arduino? Use it? Any embedded systems developers? So what’s the big idea behind physical computing? Anyone seen or have one of these (missle launcher)? Lots of people have one, even Ted in accounting. It comes with this control panel that lets you aim and fire. Boring. And Dangerous. In the world of cube warfare, we don’t want to be tethered to our keyboard and mouse, we need our PC to react to stimulus on its own. So we add a sensor 
 I need a volunteer, someone to take one for the group
  6. We make physical changes to our environment all the time based on external stimuli that our brains can process. When the sun comes up, we flip the light switch to off

  7. When the sun goes down, we flip the switch to on.
  8. The idea behind physical computing is to change the way we’re interacting with our environment. Instead of a switch we have to choose to flip, let’s use a photo sensor to detect light.
  9. Then it can manipulate the lightbulb based on the light available in the room.
  10. Then let’s add an infrared sensor, so when our body heat leaves the room...
  11. The light won’t stay on. That’s the big idea: to change the way people interact with their environment using sensors and small computers.
  12. Arduino means two things: it’s a hardware platform and an IDE. The IDE is used to program the hardware to read and manipulate electrical signals.
  13. What makes Arduino cool is its simplicity. The hardware is designed to make hooking up and reading simple electrical sensors very simple. There is no extra fluff between your project and the sensor (e.g., device drivers), the connections you need to make are placed conveniently on the hardware board.
  14. Using those same pins, it’s also easy to invoke transducers, like lights and speakers. There is very little coding and hardware manipulation involved to get things working in comparison to what it takes if you were using Windows or a “raw” embedded system.
  15. This is the board
 The arduino hardware and language are targeted to designers and artists, not EE’s or software geeks. The goal of the project was to eliminate the need for a scruffy engineer as part of the prototyping process. Arduino makes hardware FUN. Any device driver developers out there? Ever had to write a driver for hardware that was closed? The platform and IDE are both open; you’re probably familiar with open source software. The hardware platform is open too

  16. This is the electrical schematic for board – there is no statement of ownership on here, no copyright. You can download this and build one yourself if you know what you’re doing, and you owe no one a dime.
  17. This has led to a proliferation of various Arduino-compatible boards, each designed to fit a particular niche. Of particular interest is this one that looks like a flower – Betsy, you here? What’s this one for? it’s designed to be sewn into clothing. HOW MANY OF YOU ARE .NET DEVELOPERS? Heard of .NET micro?
  18. Quick comparison of the Arduino platform to the .NET micro, which may be the closest point of reference for most of you. Arduino uses the ATMEGA 328 processor, it’s 8bit A typical .NET micro device will use something akin to the USBizi144, 32 bit. This chart shows that the USBizi can perform more operations per second, comes with 16 times the programmable Flash space, and 48 times the RAM. It’s a far beefier processor. But with great power comes great power consumption

  19. First, note the cost difference. The big issue is power use – the Arduino ATMEGA uses 500 times less power under normal operation conditions, and 266 times less power in low-power mode. The point of all of this is that Arduino and .NET micro target different projects
  20. Arduino is aimed at simple GPIO and signaling, .NET micro is aimed at “little pc” devices.
  21. Let’s take a few minutes to look at the hardware involved

  22. First project is a simple one ->
  23. We have the arduino and our breadboard, some wires connecting everything up ->
  24. On the breadboard we have a single LED, a button, and a resistor.
  25. We’ll code up the arduino so that when we push the button, the led lights up.
  26. First circuit: power is coming out of pin8 Through the board, Into the LED making it light up, Then back through the board, Down the ground rail And into the ground pin of the arduino.
  27. Second circuit is a little more involved. Power flows from the 5v power rail on the arduino Into the breadboard, Through the button, And then needs to make a choice: It can go either through the breadboard and into the arduino pin 3 so we can read the state, or go to ground. Which path will it follow? Whichever path has the least resistance
  28. Does anyone want to help put this together?
  29. 
 for reference REMEMBER THE NEXT SLIDE FOR THE CODE PROCESS
  30. The programming process – and this is true for every embedded thingy I’ve worked on – is to write and compile code on the PC, then upload it to the device. On arduino this happens over the USB cable (which I forgot – LOLz) Once the code is on the device, it runs until there are no more electrons flowing through the processor.
  31. The final project I want to build here is a build status indicator. Standard CI workflow: Commit code CI server builds code Developer receives notification - email, twitter, RSS, dashboard
  32. Replace the CI notification using an arduino
  33. We’re using LEDs for simplicity, but you can replace that part of the circuit with something more creative. But this’ll get the point across. Let’s build it
 VS code change and commit Run build on TC server
  34. If you enjoyed this talk
. Go forth and break stuff