Arduino and Automotive Embedded Systems

Arduino and Automotive Embedded Systems

Arduino and Automotive Embedded Systems 1 B.RAMAMURTHY CSE651 June 6, 2014 References 2 http://www.arduino.cc/ M. McRoberts. Beginning Arduino. Apress, 2010. http://duino4projects.com/projects/car-projects/ http://www.practicalarduino.com/projects/vehicle-tele metry-platform Many www.youtube.com Arduino tutorial videos http://en.wikipedia.org/wiki/Atmel_AVR https://code.google.com/p/opengauge/wiki/OBDuino

http:// ecomodder.com/forum/showthread.php/obduino-mega -10300.html http://playground.arduino.cc/Interfacing/Processing http://arduino.cc/en/Tutorial/HomePage CSE651 June 6, 2014 What is an Ardunio? 3 A single-board microcontroller and a software suite for programming it. Arduino Uno: The hardware consists of a simple, open design for the controller with an Atmel AVR processor and on-board I/O support. The software consists of a standard programming language and the boot loader that runs on the board.

Arduino is a tiny embedded system that you can program to process between the device and the external components you connect to it. Example1: connect a led to the output, switch to input, when a switch is pressed, the light is turned on, processor counts and turns it off after 30 seconds Example2: Replace the switch with PIR (Passive InfraRed ) sensor that will trigger the light. .. A car dome light? An intruder alarm? Simply put: An Arduino can be connected to LEDs, dot matrix displays, buttons, switches, motors, temperature sensors, distance sensors, GPS receivers, Ethernet modules, or just about any device CSE651 June 6, 2014 Why Arduino? 4 Is a convenient-sized unit for prototyping embedded

system applications Ardunios processor chip Atmel, Atmega are commonly used in automotive applications Arduino+ Android + CAN (Controller Area Network) constitute the OpenXC platform promoted by Ford and other automotive companies Multi-national involvement in chip design and manufacturing and in board design (Sweden: Chip, Italy: Board, USA: IDE, use: all over, across application domains) Completely open source: both hardware and software (you can build your own Arduino board but cannot call it Arduino, thats all) CSE651 June 6, 2014 Arduino Board 5 Arduino board has an Atmel AVR(Alf Vegard

RISC) processor In the latest Arduino Uno version has Atmega8U2 a serial-usb converter, so can connect to game controller or a mouse too. What else? Arduino UNO R3 board, Original Manufacturer in Italy, ATmega328P Includes new pin configuration (SCL, SDA, IOREF) Lets look at the board and understand its processor and IO capabilities. CSE651 June 6, 2014 Memory 6 There are three pools of memory in the microcontroller used on avr-based Arduino boards :

Flash memory (program space), is where the Arduino sketch is stored. SRAM (static random access memory) is where the sketch creates and manipulates variables when it runs. EEPROM is memory space that programmers can use to store long-term information. The ATmega328 chip found on the Uno has the following amounts of memory: Flash 32k bytes (of which .5k is used for the bootloader) SRAM 2k bytes

EEPROM 1k byte CSE651 June 6, 2014 Programming Arduino 7 You will a Arduino IDE You will write code in C The step by step program can be developed in the IDE and downloaded the board through serial connector Arduino IDE is a Processing application (We will discuss the Processing Java library tomorrow) The programs are called sketches There are so many ways you can program an Arduino: from Processing-based IDE on your computer, burn it into it, transfer from another Arduino

CSE651 June 6, 2014 Shields 8 The Arduino can also be extended with the use of shields Shields are circuit boards containing other devices (e.g. GPS receivers, LCD displays, Ethernet modules etc.) These can simply plugged onto the top of the Arduino basic boards Shields can plug-in on top of each other (connecting the I/O pins) thus providing extended functionality. (You dont have to use the shields, you can make you own external circuitry on a breadboard or PCB.) CSE651

June 6, 2014 Types of Arduino 9 There are many types of Arduino: Uno , Due, Mini, Nano, Mega, etc. There are many third party Arduino-compatible boards with different names: OBduino (on-board diagnostics), Roboduino etc. Most popular and versatile is Uno ( we have also used Due, for better timing response) You prototype on the Uno, when you are satisfied with the application operation, just pop the 28-pin processor into an automobile host board or other hosts like Robots etc. CSE651 June 6, 2014

Getting Started with Arduino 10 Download the latest IDE, unzip and double click on the unzipped folder to open it You will see Arduino files and folders inside Next plug-in your Arduino using the USB cable and ensure that the green power LED (PWR) turns on. Windows will try to install the drivers for Arduino Uno and fail, dont get upset.. Click on the Windows start button control panelSystem Device manager Arduino will appear with yellow exclamation mark right click and update software CSE651 June 6, 2014 Updating the drivers (contd. From last slide)

11 Choose Browse my computer for driver software Click Browse button Navigate to the Arduino folder, Drivers folder and click OK Windows will start installing the driver when the security pops up a security message, click Install this driver software anyway You should now see a message for successful installation.. Click Close Now to open the IDE double click the Arduino icon. We are all set to get started programming the device. Lets write some simple programs and make sure our Arduino works. Also look at http://arduino.cc/en/tutorial/foundations, you will need the understanding of these concepts for your project. In general spend some time understanding the various aspects of the Arduino read every document. CSE651 June 6, 2014

Lets understand Arduino 12 http://arduino.cc The tabs to look at are: Products, Learning, Reference, Blogs You can submit your original projects for the world to see/use. CSE651 June 6, 2014

Recently Viewed Presentations

  • Introduction to Banking and Finance Guy Hargreaves ACE-102

    Introduction to Banking and Finance Guy Hargreaves ACE-102

    Credit and debit cards. Credit cards offer the holder an unsecured line of credit that can be drawn to pay for goods and services. Debit cards are accounts that must have positive fund balances before they can used to pay...
  • IHCDA LEAD BASED PAINT TECHNICAL ASSISTANCE WEBINAR FEBRUARY

    IHCDA LEAD BASED PAINT TECHNICAL ASSISTANCE WEBINAR FEBRUARY

    Chapter 5 of HUD's Guidelines for the Evaluation & Control of Lead-based Paint Hazard in Housing recommend that risk assessors select a minimum of four rooms for dust sampling (except, of course, when the dwelling unit has less than four...
  • 2017 INVASIVE SPECIES (B&C) KAREN LANCOUR National Rules

    2017 INVASIVE SPECIES (B&C) KAREN LANCOUR National Rules

    This presentation was prepared using draft rules. ... purple loosestrife . Ornamental Plants. Cultural Purposes - starlings, Asian Shore crabs ... to forests, property values, agricultural productivity, public utility operations, native fisheries, tourism, outdoor recreation. Billions of dollars .
  • Blessed to Bless by Dinorah Rivera

    Blessed to Bless by Dinorah Rivera

    (Luke 1:28, NKJV, ITALICS SUPPLIED). Let's notice again the words of the angel. "The Lord is with you; blessed. are you among all women" (Luke 1:28, NKJV, italics supplied). Though astounding to Mary, God Himself had selected her for a...
  • Spirituality for the Long Haul - Seeking Faith

    Spirituality for the Long Haul - Seeking Faith

    A balance of prayer, study, nurtures the spiritual self. Open space and inner place free and openvery important . Grounded in 4 anchors: the Rule, the Gospel, Wisdom of the Community, particular circumstances of a person's life. Prayer is a...
  • Electronic Coordination Tool (ECT) Training Slides ...

    Electronic Coordination Tool (ECT) Training Slides ...

    End User Training Materials Acquisition Strategy Workflow Acquisition Resources and Analysis (ARA) Version 1.1, 07/07/2014 This provide a high-level view of the stages at which the PM uploads versions of the documents being coordinated to ECT, as well as the...
  • SMART LIGHTING Diodes K. A. Connor Mobile Studio

    SMART LIGHTING Diodes K. A. Connor Mobile Studio

    This voltage is like the voltage required to power some electrical device. It is used up turning the device on so the voltages at the two ends of the diode will differ. The voltage required to turn on a diode...
  • [Business Communication]

    [Business Communication]

    The student strategy needed is the provision of academic clinics in the form of tutoring assistance. Face-to-face Tutorial tutoring is an academic clinic strategy that is proven to be suitable for this group of emergency students, arguing also that Face-to-Face...