SlideShare a Scribd company logo
1 of 14
Download to read offline
Hardware Connections between Arduino and
IMU
Nori Wilkins
Apr. 5, 2013
Hardware Communication between Arduino and IMU: Page 1
Abstract
Sensors are commonly used throughout many world wide applications. Out of many sensors that
are used, the inertial measurement unit (IMU) can be used to capture an object’s position.
Through the use of a microcontroller such as an Arduino, the data the sensor captures can be
collected and used for analysis. This document will provide the hardware connections
specifically for the Arduino Uno and one IMU sensor.
Keywords
Arduino Uno, IMU-MPU9150, Resistor, I2C bus
Hardware Communication between Arduino and IMU: Page 2
Table of Contents
Abstract…………………………………………………………………………………………...2
Keywords…………………………………………………………………………………………2
Introduction……………………………………………………………………………………....3
Hardware Components
Arduino…………………………………………………………………………………...3
IMU……………………………………………………………………………………….4
Resistor……………………………………………………………………………………6
Hardware Communication
I2C Bus……………………………………………………………………………………6
Assembly of Components………………………………………………………………………..7
Conclusion………………………………………………………………………………………12
References……………………………………………………………………………………….13
Hardware Communication between Arduino and IMU: Page 3
Introduction
The ECE 480 Design Team 8 was assigned to capture motion of a runner. With many
recreational runners throughout the world, many have faced challenges of having bad running
form. The product that the team has come up with is a body suit that will capture a runner’s
motion and compare it to a baseline proper running form. The body suit will consist of a central
processing unit on the person that will communicate with the sensors that are attached to the suit.
To communicate with the sensor and the processing unit, the devices can be hard wired. Through
processes stated in this document, the hard-wired process with a background of each component.
The central processing unit consists of the Arduino while the sensor used for capturing motion is
the IMU- MPU 9150.
Hardware Components
Arduino Uno
The Arduino Uno, is a series of microcontroller platforms manufactured by Arduino. It is used
for many applications. It is an open-source product which means that it can be built by hand or
preassembled to customize to one’s own needs. Also there is a lot of support throughout the
internet community, that already made code is available for anyone that is interested. Other
Arduinos consist of the Arduino Leonardo and Due. Different accessories to use wireless
applications are available as well.
Figure 1: Arduino Uno Rev. 3
Hardware Communication between Arduino and IMU: Page 4
Figure 2: Partial Schematic of Arduino Uno
Both Figure 1 and Figure 2 show the components of the Arduino Uno. It operates at 5 Volts
(V). Some components include 14 digital input and output pins, as well as 5 digital pins. There is
an option of 3.3Volt (V) or 5V pin as well as a ground pin. The Arduino can be powered either
by a USB cable that connects to an external personal computer (PC) or a connection to a battery
source. (1).
IMU: MPU-9150
The MPU-9150 is a product made by InvenSense. It is a 9 axis motion capture device. The
components include an accelerometer, gyroscope, and a magnetometer. The device used in this
application note is the MPU9150-breakout board which includes the device as well as easy to
access pins to connect to microcontrollers. This break out board is made by Sparkfun Electronics.
Sparkfun had made a break out board include the I2C communication available which will be
discussed further on. The MPU-9150 is applied in smartphones and tablet manufacturers to
enhance gaming as well as other controls.
Hardware Communication between Arduino and IMU: Page 5
Figure 3: MPU9150 Breakout Board
The accelerometer measures accelerometer, the gyroscope measures the angular velocity, and the
magnetometer acts as compass. The break out board easily shows the axes directions for each
component. The voltage limitations are in the range of 2.375 Volts (V) to 3.465 V (2).
Figure 4: MPU 9150 Schematic (Left) Breakout Board (Right)
Hardware Communication between Arduino and IMU: Page 6
Resistor
A resistor is an electrical component to limit the current flow throughout the circuit. There are 4
color bands on the resistor to show the resistance value. The first three shows the value of the
resistor and the last band shows the tolerance of the resistor.
Figure 5: Resistor Color Code (3).
Hardware Communication
I2C Bus
The I2C Bus is the communication that will be used for the IMU and Arduino communication.
The I2C bus has 2 physical wires; the SCL (clock line) and the SDA (data line). The two lines
are so called “open-drain” drivers; because the outputs of the lines are both low. For these lines
to both work and to be output high, pull0up resistors are needed. It is recommended to have at
least a 1.8 kilo Ohm resistor, but the resistance value specifically does not matter. The resistance
just needs to be high enough for the I2C bus to work.
The I2C bus has 2 components; the master and slave. The master is the device that drives the
clock which is the Arduino in this case, while the slave is the IMU. Generally there is only one
Hardware Communication between Arduino and IMU: Page 7
master but multiple slaves. The data line can only be changed while the clock is output low. 8-bit
packets are transferred every clock pulse. After the data is transferred an “acknowledgement” bit
is also transferred from the slave to ensure the data was transferred (4).
Figure 6: I2C diagram
Assembly of Components
4 connections are needed for the connection between the IMU and Arduino. First it is necessary
to connect the pull-up resistors between the wires that will be connected to the SCL/SDA and the
power supply. In this example, a 2.2 kilo Ohm resistor is used (Figure 7).
Figure 7: Pull-up resistors
Hardware Communication between Arduino and IMU: Page 8
Figure 8: Wires with pull up resistor
Figure 8 shows the wiring needed for the communication. The brown wire is for ground, red is
for power, and SDA/SCL lines are yellow and orange.
It is recommended to use heat shrink which is tubing that can be used to cover and protect
exposed wires. It is also recommended to use connector pins as seen above. This is
recommended so the wires that get connected and disconnected will not be broken or damaged.
Also, the pins will be connected to the connector that has been soldered onto the IMU so it can
be connected to different devices if needed. Also, if the pins are present, the wires do not need to
be directly soldered onto the IMU.
Figure 9 shows the connector pins and Figure 10 has a connector to the IMU for easy
connections.
Hardware Communication between Arduino and IMU: Page 9
Figure 9: Connector pins with heat shrink tubing
Hardware Communication between Arduino and IMU: Page 10
Figure 10: Connector soldered onto the IMU
Now the connections can be made between the IMU and Arduino. Figure 11 shows the part of
the Arduino that is going to be used. Only the top 4 pins will be used in this application note.
Figure 11: Arduino pins
There are 2 options to supply power from the Arduino to the IMU. Due to the voltage limitations
of the IMU, the 3.3 V pin needs to be used. Either ground pins can be used. The A4 pin is the
SDA and A5 pin is the SCL line. Figure 12 shows the schematic of the Arduino and the IMU.
Because of the connector pins that were added to the wires, the connections should be easy to
make.
Hardware Communication between Arduino and IMU: Page 11
Figure 12: Schematic of the Connections. Rp stands for the pull-up resistors
Hardware Communication between Arduino and IMU: Page 12
The finished product should look below (Figure 13).
Figure 13: Finished product
Conclusion
All and all the connections between the Arduino and the IMU are fairly simple. The
through Arduino programming, the connections can be ensured that it is working. If it is working
correctly, the values for each axis should be able to read on a PC. It is recommended to make
sure all connections are covered as previously stated with heat shrink and the wires should be
color coded to make sure no connections get mixed up.
Hardware Communication between Arduino and IMU: Page 13
References
1. "Arduino - ArduinoBoardUno." Arduino - ArduinoBoardUno. Arduino, n.d. Web. 05 Apr.
2013. <http://arduino.cc/en/Main/ArduinoBoardUno>.
2. "9 Degrees of Freedom- MPU-9150." 9 Degrees of Freedom. Sparkfun Electronics, n.d.
Web. 05 Apr. 2013. <https://www.sparkfun.com/products/11486>.
3. "Resistor Color Code Guide." Electronics Reference:. N.p., n.d. Web. 05 Apr. 2013.
<http://www.elexp.com/t_resist.htm>.
4. "Using the I2C Bus." I2C Tutorial. Robot Electronics, n.d. Web. 05 Apr. 2013.
<http://www.robot-electronics.co.uk/acatalog/I2C_Tutorial.html>.

More Related Content

What's hot

Arduino - Ch 2: Sunrise-Sunset Light Switch
Arduino - Ch 2: Sunrise-Sunset Light SwitchArduino - Ch 2: Sunrise-Sunset Light Switch
Arduino - Ch 2: Sunrise-Sunset Light SwitchRatzman III
 
IRJET - Expansion of Logic Gates using Trainer
IRJET - Expansion of Logic Gates using TrainerIRJET - Expansion of Logic Gates using Trainer
IRJET - Expansion of Logic Gates using TrainerIRJET Journal
 
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...Prasant Kumar
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller IJECEIAES
 
The fundemental of electronics ebook
The fundemental of electronics ebookThe fundemental of electronics ebook
The fundemental of electronics ebookLe Thanh Nhan
 
SMART HOME AUTOMATION USING MOBILE APPLICATION
SMART HOME AUTOMATION USING MOBILE APPLICATIONSMART HOME AUTOMATION USING MOBILE APPLICATION
SMART HOME AUTOMATION USING MOBILE APPLICATIONEklavya Sharma
 
protection on lineman while working on transmission line report
 protection on lineman while working on transmission line report protection on lineman while working on transmission line report
protection on lineman while working on transmission line reportRavi Phadtare
 
IRJET- Measuring Current and Power of Different Electrical Engines
IRJET- Measuring Current and Power of Different Electrical EnginesIRJET- Measuring Current and Power of Different Electrical Engines
IRJET- Measuring Current and Power of Different Electrical EnginesIRJET Journal
 
Major Project Synopsis Report on IoT based DC Motor Through a Web-site
Major Project Synopsis Report on IoT based DC Motor Through a Web-siteMajor Project Synopsis Report on IoT based DC Motor Through a Web-site
Major Project Synopsis Report on IoT based DC Motor Through a Web-siteUtkarsh Chaubey
 
Report Remote communication of Robotic module using lifa
Report Remote communication of Robotic module using lifaReport Remote communication of Robotic module using lifa
Report Remote communication of Robotic module using lifaVatsal N Shah
 
Arduino embedded systems and advanced robotics
Arduino embedded systems and advanced roboticsArduino embedded systems and advanced robotics
Arduino embedded systems and advanced roboticsShubham Bhattacharya
 
I2 c communication between nodemcu and aeduino with dht11 (1)
I2 c communication between nodemcu and aeduino with dht11 (1)I2 c communication between nodemcu and aeduino with dht11 (1)
I2 c communication between nodemcu and aeduino with dht11 (1)Kuntala Das
 
IRJET- Smart Gloves to Convert Sign Languages to Vocal Output
IRJET- Smart Gloves to Convert Sign Languages to Vocal OutputIRJET- Smart Gloves to Convert Sign Languages to Vocal Output
IRJET- Smart Gloves to Convert Sign Languages to Vocal OutputIRJET Journal
 

What's hot (20)

Report on arduino
Report on arduinoReport on arduino
Report on arduino
 
Arduino - Ch 2: Sunrise-Sunset Light Switch
Arduino - Ch 2: Sunrise-Sunset Light SwitchArduino - Ch 2: Sunrise-Sunset Light Switch
Arduino - Ch 2: Sunrise-Sunset Light Switch
 
IRJET - Expansion of Logic Gates using Trainer
IRJET - Expansion of Logic Gates using TrainerIRJET - Expansion of Logic Gates using Trainer
IRJET - Expansion of Logic Gates using Trainer
 
V01 i010403
V01 i010403V01 i010403
V01 i010403
 
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
A major project report on Energy Efficient Infrared (IR) Based Home Automatio...
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller
 
The fundemental of electronics ebook
The fundemental of electronics ebookThe fundemental of electronics ebook
The fundemental of electronics ebook
 
SMART HOME AUTOMATION USING MOBILE APPLICATION
SMART HOME AUTOMATION USING MOBILE APPLICATIONSMART HOME AUTOMATION USING MOBILE APPLICATION
SMART HOME AUTOMATION USING MOBILE APPLICATION
 
IoT Platform
IoT PlatformIoT Platform
IoT Platform
 
Home Automation System
Home Automation SystemHome Automation System
Home Automation System
 
protection on lineman while working on transmission line report
 protection on lineman while working on transmission line report protection on lineman while working on transmission line report
protection on lineman while working on transmission line report
 
IRJET- Measuring Current and Power of Different Electrical Engines
IRJET- Measuring Current and Power of Different Electrical EnginesIRJET- Measuring Current and Power of Different Electrical Engines
IRJET- Measuring Current and Power of Different Electrical Engines
 
Major Project Synopsis Report on IoT based DC Motor Through a Web-site
Major Project Synopsis Report on IoT based DC Motor Through a Web-siteMajor Project Synopsis Report on IoT based DC Motor Through a Web-site
Major Project Synopsis Report on IoT based DC Motor Through a Web-site
 
Report Remote communication of Robotic module using lifa
Report Remote communication of Robotic module using lifaReport Remote communication of Robotic module using lifa
Report Remote communication of Robotic module using lifa
 
Arduino embedded systems and advanced robotics
Arduino embedded systems and advanced roboticsArduino embedded systems and advanced robotics
Arduino embedded systems and advanced robotics
 
I2 c communication between nodemcu and aeduino with dht11 (1)
I2 c communication between nodemcu and aeduino with dht11 (1)I2 c communication between nodemcu and aeduino with dht11 (1)
I2 c communication between nodemcu and aeduino with dht11 (1)
 
Manual fsr'14
Manual fsr'14Manual fsr'14
Manual fsr'14
 
Major
MajorMajor
Major
 
IRJET- Smart Gloves to Convert Sign Languages to Vocal Output
IRJET- Smart Gloves to Convert Sign Languages to Vocal OutputIRJET- Smart Gloves to Convert Sign Languages to Vocal Output
IRJET- Smart Gloves to Convert Sign Languages to Vocal Output
 
Lec 5
Lec 5Lec 5
Lec 5
 

Viewers also liked

Black Africans in the Art Collection of Isabella d
Black Africans in the Art Collection of Isabella dBlack Africans in the Art Collection of Isabella d
Black Africans in the Art Collection of Isabella dHannah Kate Simon
 
Всероссийский чемпионат по решению топливно-энергетических кейсов
Всероссийский чемпионат по решению топливно-энергетических кейсовВсероссийский чемпионат по решению топливно-энергетических кейсов
Всероссийский чемпионат по решению топливно-энергетических кейсовAlena Vlasova
 
подбор пропущенных предлогов в предложениях
подбор пропущенных предлогов в предложенияхподбор пропущенных предлогов в предложениях
подбор пропущенных предлогов в предложенияхОльга Кузнецова
 

Viewers also liked (6)

Black Africans in the Art Collection of Isabella d
Black Africans in the Art Collection of Isabella dBlack Africans in the Art Collection of Isabella d
Black Africans in the Art Collection of Isabella d
 
acs.organomet
acs.organometacs.organomet
acs.organomet
 
Всероссийский чемпионат по решению топливно-энергетических кейсов
Всероссийский чемпионат по решению топливно-энергетических кейсовВсероссийский чемпионат по решению топливно-энергетических кейсов
Всероссийский чемпионат по решению топливно-энергетических кейсов
 
подбор пропущенных предлогов в предложениях
подбор пропущенных предлогов в предложенияхподбор пропущенных предлогов в предложениях
подбор пропущенных предлогов в предложениях
 
GSS-2015-Handbook
GSS-2015-HandbookGSS-2015-Handbook
GSS-2015-Handbook
 
Get satrted angular js
Get satrted angular jsGet satrted angular js
Get satrted angular js
 

Similar to Connecting Arduino and IMU via I2C

Robotics and Embedded Systems
Robotics and Embedded SystemsRobotics and Embedded Systems
Robotics and Embedded SystemsAnkan Naskar
 
Proposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingProposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingRebekahSamuel2
 
Fire Fighting Robot
Fire Fighting RobotFire Fighting Robot
Fire Fighting RobotSaadullah74
 
IRJET- Centralised Status alert system for industrial machines
IRJET-  	  Centralised Status alert system for industrial machinesIRJET-  	  Centralised Status alert system for industrial machines
IRJET- Centralised Status alert system for industrial machinesIRJET Journal
 
How to-teach-an-online-circuits-class-with-tinkercad US ICT project
How to-teach-an-online-circuits-class-with-tinkercad US ICT projectHow to-teach-an-online-circuits-class-with-tinkercad US ICT project
How to-teach-an-online-circuits-class-with-tinkercad US ICT projectIonita Iuliana
 
Office automation system using arduino
Office automation system using arduinoOffice automation system using arduino
Office automation system using arduinoAshfaqul Haque John
 
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...IRJET Journal
 
Chapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptxChapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptxkhgh7
 
IRJET- IoT based Fault Finding of an Underground Cable
IRJET-  	  IoT based Fault Finding of an Underground CableIRJET-  	  IoT based Fault Finding of an Underground Cable
IRJET- IoT based Fault Finding of an Underground CableIRJET Journal
 
IRJET- Android based Home Automation System with Power Optimization Modes
IRJET-  	  Android based Home Automation System with Power Optimization ModesIRJET-  	  Android based Home Automation System with Power Optimization Modes
IRJET- Android based Home Automation System with Power Optimization ModesIRJET Journal
 
IRJET- Arduino Nano based All in One Meter
IRJET- Arduino Nano based All in One MeterIRJET- Arduino Nano based All in One Meter
IRJET- Arduino Nano based All in One MeterIRJET Journal
 
Where buy arduino robomart
Where buy arduino robomartWhere buy arduino robomart
Where buy arduino robomartRobomart India
 

Similar to Connecting Arduino and IMU via I2C (20)

Robotics and Embedded Systems
Robotics and Embedded SystemsRobotics and Embedded Systems
Robotics and Embedded Systems
 
Neno Project.docx
Neno Project.docxNeno Project.docx
Neno Project.docx
 
Proposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingProposal Report on Auto Meter Reading
Proposal Report on Auto Meter Reading
 
Fire Fighting Robot
Fire Fighting RobotFire Fighting Robot
Fire Fighting Robot
 
IRJET- Centralised Status alert system for industrial machines
IRJET-  	  Centralised Status alert system for industrial machinesIRJET-  	  Centralised Status alert system for industrial machines
IRJET- Centralised Status alert system for industrial machines
 
water level edit.docx
water level edit.docxwater level edit.docx
water level edit.docx
 
How to-teach-an-online-circuits-class-with-tinkercad US ICT project
How to-teach-an-online-circuits-class-with-tinkercad US ICT projectHow to-teach-an-online-circuits-class-with-tinkercad US ICT project
How to-teach-an-online-circuits-class-with-tinkercad US ICT project
 
Office automation system using arduino
Office automation system using arduinoOffice automation system using arduino
Office automation system using arduino
 
Animatronic hand controller
Animatronic hand controllerAnimatronic hand controller
Animatronic hand controller
 
Arduino
ArduinoArduino
Arduino
 
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
 
Chapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptxChapter 5 Arduino Microcontroller Systems .pptx
Chapter 5 Arduino Microcontroller Systems .pptx
 
IRJET- IoT based Fault Finding of an Underground Cable
IRJET-  	  IoT based Fault Finding of an Underground CableIRJET-  	  IoT based Fault Finding of an Underground Cable
IRJET- IoT based Fault Finding of an Underground Cable
 
IRJET- Android based Home Automation System with Power Optimization Modes
IRJET-  	  Android based Home Automation System with Power Optimization ModesIRJET-  	  Android based Home Automation System with Power Optimization Modes
IRJET- Android based Home Automation System with Power Optimization Modes
 
Smart Blind stick by using arduino uno and sensor
 Smart Blind stick  by using arduino  uno  and sensor Smart Blind stick  by using arduino  uno  and sensor
Smart Blind stick by using arduino uno and sensor
 
IRJET- Arduino Nano based All in One Meter
IRJET- Arduino Nano based All in One MeterIRJET- Arduino Nano based All in One Meter
IRJET- Arduino Nano based All in One Meter
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
 
Arduino uno
Arduino unoArduino uno
Arduino uno
 
Where buy arduino robomart
Where buy arduino robomartWhere buy arduino robomart
Where buy arduino robomart
 
Arduino Uno
Arduino UnoArduino Uno
Arduino Uno
 

Recently uploaded

CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceanilsa9823
 
infant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptxinfant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptxsuhanimunjal27
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...SUHANI PANDEY
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...RitikaRoy32
 
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779Delhi Call girls
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...babafaisel
 
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...Call Girls in Nagpur High Profile
 
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...kumaririma588
 
DragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptxDragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptxmirandajeremy200221
 
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...home
 
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Call Girls in Nagpur High Profile
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja Nehwal
 
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...amitlee9823
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...Pooja Nehwal
 
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Delhi Call girls
 
2-tool presenthdbdbdbdbddhdhddation.pptx
2-tool presenthdbdbdbdbddhdhddation.pptx2-tool presenthdbdbdbdbddhdhddation.pptx
2-tool presenthdbdbdbdbddhdhddation.pptxsuhanimunjal27
 
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts ServiceVVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Servicearoranaina404
 

Recently uploaded (20)

CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
 
B. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdfB. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdf
 
infant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptxinfant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptx
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
 
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
 
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
 
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
 
DragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptxDragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptx
 
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
 
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
 
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
 
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
 
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
 
2-tool presenthdbdbdbdbddhdhddation.pptx
2-tool presenthdbdbdbdbddhdhddation.pptx2-tool presenthdbdbdbdbddhdhddation.pptx
2-tool presenthdbdbdbdbddhdhddation.pptx
 
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts ServiceVVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
 

Connecting Arduino and IMU via I2C

  • 1. Hardware Connections between Arduino and IMU Nori Wilkins Apr. 5, 2013
  • 2. Hardware Communication between Arduino and IMU: Page 1 Abstract Sensors are commonly used throughout many world wide applications. Out of many sensors that are used, the inertial measurement unit (IMU) can be used to capture an object’s position. Through the use of a microcontroller such as an Arduino, the data the sensor captures can be collected and used for analysis. This document will provide the hardware connections specifically for the Arduino Uno and one IMU sensor. Keywords Arduino Uno, IMU-MPU9150, Resistor, I2C bus
  • 3. Hardware Communication between Arduino and IMU: Page 2 Table of Contents Abstract…………………………………………………………………………………………...2 Keywords…………………………………………………………………………………………2 Introduction……………………………………………………………………………………....3 Hardware Components Arduino…………………………………………………………………………………...3 IMU……………………………………………………………………………………….4 Resistor……………………………………………………………………………………6 Hardware Communication I2C Bus……………………………………………………………………………………6 Assembly of Components………………………………………………………………………..7 Conclusion………………………………………………………………………………………12 References……………………………………………………………………………………….13
  • 4. Hardware Communication between Arduino and IMU: Page 3 Introduction The ECE 480 Design Team 8 was assigned to capture motion of a runner. With many recreational runners throughout the world, many have faced challenges of having bad running form. The product that the team has come up with is a body suit that will capture a runner’s motion and compare it to a baseline proper running form. The body suit will consist of a central processing unit on the person that will communicate with the sensors that are attached to the suit. To communicate with the sensor and the processing unit, the devices can be hard wired. Through processes stated in this document, the hard-wired process with a background of each component. The central processing unit consists of the Arduino while the sensor used for capturing motion is the IMU- MPU 9150. Hardware Components Arduino Uno The Arduino Uno, is a series of microcontroller platforms manufactured by Arduino. It is used for many applications. It is an open-source product which means that it can be built by hand or preassembled to customize to one’s own needs. Also there is a lot of support throughout the internet community, that already made code is available for anyone that is interested. Other Arduinos consist of the Arduino Leonardo and Due. Different accessories to use wireless applications are available as well. Figure 1: Arduino Uno Rev. 3
  • 5. Hardware Communication between Arduino and IMU: Page 4 Figure 2: Partial Schematic of Arduino Uno Both Figure 1 and Figure 2 show the components of the Arduino Uno. It operates at 5 Volts (V). Some components include 14 digital input and output pins, as well as 5 digital pins. There is an option of 3.3Volt (V) or 5V pin as well as a ground pin. The Arduino can be powered either by a USB cable that connects to an external personal computer (PC) or a connection to a battery source. (1). IMU: MPU-9150 The MPU-9150 is a product made by InvenSense. It is a 9 axis motion capture device. The components include an accelerometer, gyroscope, and a magnetometer. The device used in this application note is the MPU9150-breakout board which includes the device as well as easy to access pins to connect to microcontrollers. This break out board is made by Sparkfun Electronics. Sparkfun had made a break out board include the I2C communication available which will be discussed further on. The MPU-9150 is applied in smartphones and tablet manufacturers to enhance gaming as well as other controls.
  • 6. Hardware Communication between Arduino and IMU: Page 5 Figure 3: MPU9150 Breakout Board The accelerometer measures accelerometer, the gyroscope measures the angular velocity, and the magnetometer acts as compass. The break out board easily shows the axes directions for each component. The voltage limitations are in the range of 2.375 Volts (V) to 3.465 V (2). Figure 4: MPU 9150 Schematic (Left) Breakout Board (Right)
  • 7. Hardware Communication between Arduino and IMU: Page 6 Resistor A resistor is an electrical component to limit the current flow throughout the circuit. There are 4 color bands on the resistor to show the resistance value. The first three shows the value of the resistor and the last band shows the tolerance of the resistor. Figure 5: Resistor Color Code (3). Hardware Communication I2C Bus The I2C Bus is the communication that will be used for the IMU and Arduino communication. The I2C bus has 2 physical wires; the SCL (clock line) and the SDA (data line). The two lines are so called “open-drain” drivers; because the outputs of the lines are both low. For these lines to both work and to be output high, pull0up resistors are needed. It is recommended to have at least a 1.8 kilo Ohm resistor, but the resistance value specifically does not matter. The resistance just needs to be high enough for the I2C bus to work. The I2C bus has 2 components; the master and slave. The master is the device that drives the clock which is the Arduino in this case, while the slave is the IMU. Generally there is only one
  • 8. Hardware Communication between Arduino and IMU: Page 7 master but multiple slaves. The data line can only be changed while the clock is output low. 8-bit packets are transferred every clock pulse. After the data is transferred an “acknowledgement” bit is also transferred from the slave to ensure the data was transferred (4). Figure 6: I2C diagram Assembly of Components 4 connections are needed for the connection between the IMU and Arduino. First it is necessary to connect the pull-up resistors between the wires that will be connected to the SCL/SDA and the power supply. In this example, a 2.2 kilo Ohm resistor is used (Figure 7). Figure 7: Pull-up resistors
  • 9. Hardware Communication between Arduino and IMU: Page 8 Figure 8: Wires with pull up resistor Figure 8 shows the wiring needed for the communication. The brown wire is for ground, red is for power, and SDA/SCL lines are yellow and orange. It is recommended to use heat shrink which is tubing that can be used to cover and protect exposed wires. It is also recommended to use connector pins as seen above. This is recommended so the wires that get connected and disconnected will not be broken or damaged. Also, the pins will be connected to the connector that has been soldered onto the IMU so it can be connected to different devices if needed. Also, if the pins are present, the wires do not need to be directly soldered onto the IMU. Figure 9 shows the connector pins and Figure 10 has a connector to the IMU for easy connections.
  • 10. Hardware Communication between Arduino and IMU: Page 9 Figure 9: Connector pins with heat shrink tubing
  • 11. Hardware Communication between Arduino and IMU: Page 10 Figure 10: Connector soldered onto the IMU Now the connections can be made between the IMU and Arduino. Figure 11 shows the part of the Arduino that is going to be used. Only the top 4 pins will be used in this application note. Figure 11: Arduino pins There are 2 options to supply power from the Arduino to the IMU. Due to the voltage limitations of the IMU, the 3.3 V pin needs to be used. Either ground pins can be used. The A4 pin is the SDA and A5 pin is the SCL line. Figure 12 shows the schematic of the Arduino and the IMU. Because of the connector pins that were added to the wires, the connections should be easy to make.
  • 12. Hardware Communication between Arduino and IMU: Page 11 Figure 12: Schematic of the Connections. Rp stands for the pull-up resistors
  • 13. Hardware Communication between Arduino and IMU: Page 12 The finished product should look below (Figure 13). Figure 13: Finished product Conclusion All and all the connections between the Arduino and the IMU are fairly simple. The through Arduino programming, the connections can be ensured that it is working. If it is working correctly, the values for each axis should be able to read on a PC. It is recommended to make sure all connections are covered as previously stated with heat shrink and the wires should be color coded to make sure no connections get mixed up.
  • 14. Hardware Communication between Arduino and IMU: Page 13 References 1. "Arduino - ArduinoBoardUno." Arduino - ArduinoBoardUno. Arduino, n.d. Web. 05 Apr. 2013. <http://arduino.cc/en/Main/ArduinoBoardUno>. 2. "9 Degrees of Freedom- MPU-9150." 9 Degrees of Freedom. Sparkfun Electronics, n.d. Web. 05 Apr. 2013. <https://www.sparkfun.com/products/11486>. 3. "Resistor Color Code Guide." Electronics Reference:. N.p., n.d. Web. 05 Apr. 2013. <http://www.elexp.com/t_resist.htm>. 4. "Using the I2C Bus." I2C Tutorial. Robot Electronics, n.d. Web. 05 Apr. 2013. <http://www.robot-electronics.co.uk/acatalog/I2C_Tutorial.html>.