kriswiner / EM7180_SENtral_sensor_hub

(Affordable) Ultimate Sensor Fusion Solution
https://www.tindie.com/products/onehorse/ultimate-sensor-fusion-solution/
96 stars 37 forks source link

USFB code for Butterfly #14

Closed seamaster101 closed 6 years ago

seamaster101 commented 6 years ago

Hi Kris, I have now the USFB and the Butterfly board. I manged to get the USFB do what I want with Teensy3.3 board. using the code from here: https://github.com/kriswiner/EM7180_SENtral_sensor_hub/blob/master/WarmStartandAccelCal/EM71280_MPU9250_BMP280_M24512DFC_WS_Acc_Cal.ino Now I would like to get the code to run on Butterfly.
I can compile the samples for the butterfly board and upload them successfully. So I think all of the per-requisites are there... One challenge I believe is that Butterfly board does not get recognition from arduino.h. The second challenge is that the code for USFB uses "i2c_t3.h" which is teensy specific (optimized). If I try to compile the EM71280_MPU9250_BMP280_M24512DFC_WS_Acc_Cal.ino on the Butterfly board I get ""wire" was not declared in this scope" which is expected . Considering that both boards that I'm trying to use are designed by you, can you help with the integration?

kriswiner commented 6 years ago

I sent you a Butterfly sketch for the USFS with the appropriate wire calls. Can;t you use this? I cannot write code for you...

On Thu, Jul 27, 2017 at 7:35 PM, seamaster101 notifications@github.com wrote:

Hi Kris, I have now the USFB and the Butterfly board. I manged to get the USFB do what I want with Teensy3.3 board. using the code from here: https://github.com/kriswiner/EM7180_SENtral_sensor_hub/blob/master/ WarmStartandAccelCal/EM71280_MPU9250_BMP280_M24512DFC_WS_Acc_Cal.ino Now I would like to get the code to run on Butterfly. I can compile the samples for the butterfly board and upload them successfully. So I think all of the per-requisites are there... One challenge I believe is that Butterfly board does not get recognition from arduino.h. The second challenge is that the code for USFB uses "i2c_t3.h" which is teensy specific (optimized). If I try to compile the EM71280_MPU9250_BMP280_M24512DFC_WS_Acc_Cal.ino on the Butterfly board I get ""wire" was not declared in this scope" which is expected . Considering that both boards that I'm trying to use are yours, can you help with the integration?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/EM7180_SENtral_sensor_hub/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qgDy2FzL_yIuc8HiihaV27xOpRVdks5sSUkPgaJpZM4OmD63 .

seamaster101 commented 6 years ago

Kris, I do not expect you to write code for me. All I expect is samples that I can bastardize and write (read copy and paste with very little writing) my version. I don't think this is unreasonable expectation on my part. So far your samples have provided me with this opportunity. Sorry I could not recall if you sent me code with "wire" calls. I used Teensy till now so I don't think I ever needed wire appropriate code. Maybe I'm mistaken as I have been working too long through the nights. If you send it to me again or remind me where to find it I will be most most likely sufficient and greatly appreciated.

seamaster101 commented 6 years ago

I did find code posted in your examples that uses wire.h., then modified the code and it works now. I have other issue with board compatibility, but I will open another issue. This one is closed now.