Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   KOP Accelerometer with Arduino (http://www.chiefdelphi.com/forums/showthread.php?t=106299)

DavisC 05-05-2012 18:20

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

Re: KOP Accelerometer with Arduino
 
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?

DavisC 07-05-2012 17:01

Re: KOP Accelerometer with Arduino
 
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

Re: KOP Accelerometer with Arduino
 
Ah, OK, I2C. First watch this, then read this (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. You'll need to find the details of the accelerometer yourself...

docdavies 08-05-2012 05:26

Re: KOP Accelerometer with Arduino
 
You might also want to look into this item. This is the route we went...

http://www.ebay.com/itm/290631526078... 4.m1423.l2649

rbmj 12-05-2012 17:27

Re: KOP Accelerometer with Arduino
 
Use the source Luke. If you check WPILib, its just an read through the analog:

Code:

float Accelerometer::GetAcceleration()
{
    return (m_analogChannel->GetAverageVoltage() - m_zeroGVoltage) / m_voltsPerG;
}



All times are GMT -5. The time now is 13:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi