SCP1000 I2C interface to ardupilot or ardupilot-mega?

Is there a definitive guide somewhere as to how to interface the SCP1000 (I2C version) from they DIYdrones store to the ardupilot or ardupilot-mega?

I was hunting around and didn't find anything that directly answered my questions.

- I2C generally requires pull up resistors on the signal and clock lines.  Are these required or does the SCP1000 have them built in?

- The SCP1000 is a 3.3v device.  I think much of the signals running around the ardupilot are 5v?  What do I have to know in terms of voltage levels and conversions?

- On the software side, how do you talk to the device?  I've never done I2C before, but I assume there is some device id?  How do you read data from it?  I'm asking very generically because I don't know much about it.

I went to the sparkfun site and got the datasheet for the SCP1000 but that just shows the electrical connections and doesn't say anything about device id's or higher level communication issues.

Has anyone out there interfaced the DIYdrones SCP1000 to a gumstix verdex via the I2C interface?



Views: 588

Reply to This

Replies to This Discussion

I know Doug tested it with ArduPilot here. You might ping him for the code.
There was a discussion on this device, including code a while ago here:

The code below has been tested using an Ardupilot PCB and includes the right device id etc for communications.
You do need pullups and you have to be careful to run at 3v3 to keep within the spec of the SCP1000 device (I found that my ArduPilot PCB would still run at full speed from a 3V3 power supply which is easier than having to introduce a 5V-3V3 level shifter on the IIC connection):
Hi Christopher,

Your 3v3 workaround sounds good at first but aren't you handicapping the ArduPilot noise immunity?!? While we're on the subject of ancillary device hookup, does anyone know if there is any code yet for the ArduPilot/IMUv2 w/Magnetometer? (Chris, SCP1000 is way too much like work or active duty environment, please use common name like 'pressure sensor'!)

Reply to Discussion


© 2020   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service