Publications: 106 | Followers: 1

Arduino and Automotive Embedded Systems

Publish on Category: Birds 0

B.Ramamurthy
Arduino and Automotive Embedded Systems
June 6, 2014
CSE651
1
References
http://www.arduino.cc/M.McRoberts. Beginning Arduino.Apress, 2010.http://duino4projects.com/projects/car-projects/http://www.practicalarduino.com/projects/vehicle-telemetry-platformMany www.youtube.com Arduino tutorial videoshttp://en.wikipedia.org/wiki/Atmel_AVRhttps://code.google.com/p/opengauge/wiki/OBDuinohttp://ecomodder.com/forum/showthread.php/obduino-mega-10300.htmlhttp://playground.arduino.cc/Interfacing/Processinghttp://arduino.cc/en/Tutorial/HomePage
June 6, 2014
CSE651
2
What is anArdunio?
“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 tinyembedded systemthat 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 secondsExample2: Replace the switch with PIR (PassiveInfraRed) 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…
June 6, 2014
CSE651
3
Why Arduino?
Is a convenient-sized unit for prototyping embedded system applicationsArdunio’sprocessor chip Atmel,Atmegaare commonly used in automotive applicationsArduino+ Android + CAN (Controller Area Network) constitute theOpenXCplatform promoted by Ford and other automotive companiesMulti-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, that’s all)
June 6, 2014
CSE651
4
Arduino Board
Arduino board has an Atmel AVR(AlfVegardRISC) processorIn the latest Arduino Uno version has Atmega8U2 a serial-usbconverter, so can connect to game controller or a mouse too.What else?Arduino UNO R3board,Original Manufacturer in Italy,ATmega328P Includes new pin configuration (SCL, SDA,IOREF)Lets look at the board and understand its processor and IO capabilities.
June 6, 2014
CSE651
5
Memory
There are three pools of memory in the microcontroller used onavr-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.TheATmega328 chip found on the Uno has the following amounts of memory:Flash 32k bytes (of which .5k is used for thebootloader)SRAM2k bytesEEPROM1k byte
June 6, 2014
CSE651
6
Programming Arduino
You will a Arduino IDEYou will write code in CThe step by step program can be developed in the IDE and downloaded the board through serial connectorArduino IDE is a “Processing” application (We will discuss the Processing Java library tomorrow)The programs are called sketchesThere are so many ways you can program an Arduino: from Processing-based IDE on your computer, burn it into it, transfer from another Arduino…
June 6, 2014
CSE651
7
Shields
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 boardsShields can plug-in on top of each other (connecting the I/O pins) thus providing extended functionality.(You don’t have to use the shields, you can make you own external circuitry on a breadboard or PCB.)
June 6, 2014
CSE651
8
Types of Arduino
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),Roboduinoetc.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.
June 6, 2014
CSE651
9
Getting Started with Arduino
Download the latest IDE, unzip and double click on the unzipped folder to open itYou will see Arduino files and folders insideNext 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, don’t get upset..Click on the Windows start button controlpanelSystem Device manager Arduino will appear with yellow exclamation mark right click and update software
June 6, 2014
CSE651
10
Updating the drivers (contd. From last slide)
Choose “Browse my computer for driver software”Click Browse buttonNavigate to the Arduino folder, Drivers folder and click OKWindows 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 CloseNow 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 athttp://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.
June 6, 2014
CSE651
11
Lets understand Arduino
June 6, 2014
CSE651
12
http://arduino.ccThe tabs to look at are: Products, Learning, Reference, BlogsYou can submit your original projects forthe world to see/use.

0

Embed

Share

Upload

Make amazing presentation for free
Arduino and Automotive Embedded Systems