View Full Version : KOP Accelerometer with Arduino
Hello,
Well I have spent a while banging my head into a wall trying to interface the KOP accelerometer with an Arduino to no avail. Does anyone know of an easy way to do this?
Thanks,
Davis Catherman
DonRotolo
05-05-2012, 20:16
Does the KoP Accelerometer have an analog output? If so, read the voltage at the analog input of the Arduino, then do the simple multiplication (or division) to come to a useful value.
Otherwise, what kind of output does the accel have?
No it does not, but I have heard that the easier way to hook it up is via the 12C interface (4 pins).
I believe its the FIRST KOP accelerometer from 2011 but it was recent anyways (accelerometer + gyro combined).
Thanks,
Davis C
DonRotolo
07-05-2012, 20:51
Ah, OK, I2C. First watch this (http://www.youtube.com/watch?v=GJX0BRUagCg), then read this (http://tronixstuff.wordpress.com/2010/10/20/tutorial-arduino-and-the-i2c-bus/) (and the second part, chapter 21). That'll help you make sense of I2C. Google can find other references too. Here is the programming reference (http://www.arduino.cc/en/Reference/Wire). You'll need to find the details of the accelerometer yourself...
docdavies
08-05-2012, 05:26
You might also want to look into this item. This is the route we went...
http://www.ebay.com/itm/290631526078?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649
Use the source Luke. If you check WPILib, its just an read through the analog:
float Accelerometer::GetAcceleration()
{
return (m_analogChannel->GetAverageVoltage() - m_zeroGVoltage) / m_voltsPerG;
}
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.