This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28379D: LaunchXL-F2839D intefacing with BN0085 board from adafruit help

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE, SYSCONFIG

Hello, I am trying to interface this launchpad with the adafruit 9-DOF Orientation IMU Fusion breakout-BN0085 board. Here is the link for that board: https://www.adafruit.com/product/4754?gad_source=1&gclid=EAIaIQobChMIxYGw6_eChAMV2AitBh1kmgMJEAQYASABEgJwX_D_BwE

I don't really know where to start, as the libraries for this board were written in C++ for adruion, but I am using C in code composer studio. 

Please help! 

Thanks.

  • Hi Silas,

    Are you wanting to simply read what the data from BN08X? Are you asking if you can have some starter code for the list of communication peripherals that are supported by this sensor to communicate with? (i.e. I2C, SPI, UART)

    If so, please take a look at our C2000WARE SDK to get started with these communication peripherals and how to communicate with this part. We have many examples on the communication peripherals that are supported by C2000 and this device that you could take a look at first. All code is written in C from our C2000WARE SDK.

    Best,

    Ryan Ma

  • Hello! 

    I am already aware of how to interface with the Launchpad's serial peripherical interfaces. However with this specific breakout board from adafruit, I am not sure how to pull the data off of it and say, send it to a terminal via the SCIA port on the luanhpad. the reason I am not sure how to do this is because the adafruit 9-DOF Bn0085 breakout board is setup to work with arduino libraries, and i need it to work with my launchpad. 

    Could you help me get started on some code for interfacing this sensor board to my launchpad?

    thank you! 

    -Silas Perry

  • Hello Silas,

    Just to make sure I understand, you're trying to figure out the '?' for the following flow:

    Adafruit > ? > TI LaunchPAD > SCI > Terminal

    Is that correct? And the confusion is how to get the breakout board to communicate with the LaunchPAD?

  • Yes, that is correct. 

  • I'm not familiar with the Adafruit device you mentioned, but if there is a communication protocol that it uses then that can be used to communicate with the LaunchPAD. Communication protocols are industry standards, it should not be something limited by the device from my understanding. You will need to find what communication protocols are available for the Adafruit device, your data speed requirement, and choose a protocol based on your needs. If the Adafruit device can be programmed separately, then there shouldn't be a problem programming it or the LaunchPAD separately to be able to communicate with each other.

    Let me know if you have specific questions pertaining to the LaunchPAD, unfortunately we will not be able to help from the Adafruit-side of this system.

  • okay, I will try and get the two talking just using the I2C port on the adafruit device and a I2C port via sysconfig on the launchpad. I'll let you know what I am able to come up with. I may have further questions on this thread so please don't close it

    thanks! 

    -Silas Perry

  • Hey Mr. Amir, 

    So I know you said you can't help me integrate the sensor on the adafruit side. However, the adafruit webpage has a arduino library for running the device with an arduino. Could you please help me port this code from arduino to CCS for the launchpad device? Please see the link above i sent at the beginning of the conversation.

  • Hello Silas,

    C2000 has its own driverlib files, if that's what you mean by porting the code from Arduino to CCS (although I'm confused why you need to do this if you're not replacing the Arduino device with the TI device, and just want them to communicate together). There is no actual code migration from non-TI devices to a TI device. We can try to replace the same configuration code/programs if possible, although this may have to be done by different experts. Can you please explain what sorts of peripherals you're planning to use (communication protocols, control peripherals, analog peripherals, etc.)? Also, you will need to send your code so I can determine what experts can help with the migration.

  • I think you are confused. I am not using a arduino at any point. Please follow the link in my first post on this thread to understand what type of device I am even talking about. This device is a adafruit breakout sensor, which communicates via I2C. Adafruit wrote a lot of code libraries and example programs to use the sensor with an arduino. I am NOT using an arduino, I am using a launchpad. I need those same libraries and examples to work on my launchpad. Howver they were written to be used on an arduino. 

    The link for the code repo for the code that i need working on my launchpad which is currently only working on an adruino can be seen by following this link: 

    https://github.com/adafruit/Adafruit_BNO08x/tree/master

    I hope this helps clear up your confusion. I simply want to re-create the functionality that adafruit made with this IMU BN0085 sensor breakout board, and use on a TI launchpad instead of an arduino.

    thanks,

    -Silas Perry

  • Hi Silas,

    This device is a adafruit breakout sensor, which communicates via I2C. Adafruit wrote a lot of code libraries and example programs to use the sensor with an arduino. I am NOT using an arduino, I am using a launchpad. I need those same libraries and examples to work on my launchpad. Howver they were written to be used on an arduino. 

    Thank you, this clears up a lot. I personally don't know how much expertise I can offer, but I will check to see if there's another expert better suited for this sort of migration. I'll more than likely get a response sometime next week, so I'll let you know once I find someone to help you.

  • Glad to hear it. Thanks Mr. Amir! 

    I will look forward to hearing from you or someone on your team. 

    Thanks,

    -Silas perry

  • Hello Silas,

    Unfortunately, there is no one with the expertise or bandwidth to help with this sort of library code migration. The best I can recommend is trying to look at the library code and writing comparable C code to use the I2C on the F2837xD to communicate with the sensor.