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

NRF52 code #43

Open afnan opened 5 years ago

afnan commented 5 years ago

Hi,

I am planing to switch from MPU9250 based device to EM7180_LSM6DSM_LIS2MDL_LPS22HB. This time I have a constraint that I must use nrf SDK as iwill be working on nrf52 device. Do you have any example working code for that?

Thanks

kriswiner commented 5 years ago

No, but we have an Arduino sketch that can run on the nRF52. Or you can translate it to work with the nRF52 SDK.

On Wed, Oct 31, 2018 at 7:30 PM afnan notifications@github.com wrote:

Hi,

I am planing to switch from MPU9250 based device to EM7180_LSM6DSM_LIS2MDL_LPS22HB. This time I have a constraint that I must use nrf SDK as iwill be working on nrf52 device. Do you have any example working code for that?

Thanks

— 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/43, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qmppg-9SBAXhFKCEbpDvJUm-fv1Tks5uqly9gaJpZM4YFrH8 .

afnan commented 5 years ago

If it is this https://github.com/kriswiner/EM7180_SENtral_sensor_hub/blob/master/EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly/EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly.ino

I have the following questions.

  1. Why do you have references to "USFS.h" in the file? this file (as per comments) contains information of MPU9250 stuff?
  2. Why are you using RTC ?
kriswiner commented 5 years ago

Yeah, we really need to update this. This was a mashup of ST sensor files with MPU9250-based files. It works fine for the EM7180 in normal mode but we need to create a sketch that is specific for the LSM6DSM_LIS2MDL.

We use th RTC alarm at 1 Hz to send data to the serial monitor.

It should be straightforward to use this as a template to create an Arduino sketch for the nRF52.

On Wed, Oct 31, 2018 at 7:39 PM afnan notifications@github.com wrote:

If it is this https://github.com/kriswiner/EM7180_SENtral_sensor_hub/blob/master/EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly/EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly.ino

I have the following questions.

  1. Why do you have references to "USFS.h" in the file? this file (as per comments) contains information of MPU9250 stuff?
  2. Why are you using RTC ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/EM7180_SENtral_sensor_hub/issues/43#issuecomment-434911924, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qvD8zx7J_dNj86em-g5GsX4T0yMbks5uql7zgaJpZM4YFrH8 .