Beaglebone: An I2C Tutorial - Interfacing to a BMA180 Accelerometer
In this video I continue my series on the beaglebone to discuss the I2C bus and how we can connect and program devices attached to the bus using C/C . I explain the use of i2c-tools on embedded Linux and then show how we can interface to a digital accelerometer (Bosch BMA180) or any other I2C device. Finally, I show how we can use sysfs to build a C class that wraps the functionality of the digital accelerometer. Source code included! This video builds on the three previous videos: The introduction to the Beaglebone; Setting up a C/C Development Environment; and, Programming with GPIOs. So, I recommend that you view those videos first. This video is part of a series that I have developed in the School of Electronic Engineering at Dublin City University.
The NXP I2C Specification document is at:
The source code in this video is available through githhub:
git clone git://
Please note that I have mixed up the words
2 views
110
32
2 years ago 00:09:31 1
First Look: Elecrow Meteor 10 1 Inch IPS HDMI Display
3 years ago 00:26:34 1
Beaglebone: Driving Stepper Motors in Embedded Linux using the EasyDriver Board
3 years ago 00:44:19 1
Beaglebone: Qt Creator for C++ ARM Embedded Linux Development
3 years ago 00:47:28 2
Beaglebone: An I2C Tutorial - Interfacing to a BMA180 Accelerometer
3 years ago 00:56:44 4
Beaglebone: Adding USB Wi-Fi & Building a Linux Kernel
3 years ago 00:22:42 2
Beaglebone: LCD Touchscreen GUI Applications for Embedded Linux
3 years ago 00:46:06 6
Beaglebone: GPIO Programming on ARM Embedded Linux
4 years ago 00:07:46 1
MOSFETs and How to Use Them | AddOhms #11
6 years ago 00:31:40 10
Beaglebone: Video Capture and Image Processing on Embedded Linux using OpenCV
8 years ago 00:03:27 1
Mounting a Liquidware BeagleTouch on a BeagleBoard xM
8 years ago 00:01:57 3
720p Video on OMAP3 Beagle Board running Android by Ingenient
8 years ago 00:02:21 2
Kinect + BeagleBoard + Bluetooth = KinectDialer
10 years ago 00:04:16 18
BeagleBone + LogiBone FPGA Drive SparkFun 32x32 RGB LED Panel