Open hunterthorington opened 10 years ago
Is physically connecting the camera to the APM part of this? Has that been done already?
Renamed task to clear up hugh's confusion
Zac and I decided to splice the Mag from the compass and the I2C lines from the camera in order to get camera information to the copter. Another cable will be ordered to return the compass to the original state in case the modifications do not work.
These are the guides so far as to where the I2C is addressed and how to change the addressing if needed. Where the I2C code is and it's equivalence in the wire library: https://github.com/DSSCircuits/I2C-Master-Library/blob/master/examples/HMC5883L/HMC5883L.pde
I2C Communication Guide: http://cdn.shopify.com/s/files/1/0019/5952/files/I2C-comm-guide-2_14.pdf?1266355691
Communication between two arduino's via the I2C port. The code at the bottom is in reference to the Wire library. But they discuss addressing. http://forum.arduino.cc/index.php?topic=10176.5;wap2
Define where you a
2/5/14 Ben and I were able to get some user code working. Controlling the LEDs on the APM as well as sending messages out the serial port using "cliSerial->println_P(PSTR("Works!!!!"));" this will probably useful in debugging variables.
Zac and I also spliced into the I2C in order to connect the camera to the APM. Tomorrow I plan to use http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/ in order to find the cameras address. Then http://www.uchobby.com/index.php/2008/09/16/introduction-to-i2c/ using something like the Master Writer example to communicate with the camera.
I have the camera code clean up and understand most of its functions. I am in the process of trying to get it to run on the APM. Running into IDE version issues, deprecated functions etc. Could be another week at least