Author Topic: Where I'm keeping my Code  (Read 231 times)

mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Where I'm keeping my Code
« Reply #15 on: September 19, 2016, 06:03:24 pm »
Quote
I'm using the 120 modules. Could that be the reason?

Yes, the mc-Mod120 has a much more advantaged but different accelerometer.

Nick_W

  • Full Member
  • ***
  • Posts: 214
    • View Profile
Re: Where I'm keeping my Code
« Reply #16 on: September 19, 2016, 08:01:28 pm »
That could be it, maybe there is something different about the 120.

I have a couple on order, but don't have them yet. I'll look into it.

Edit. Oops! Didn't see the above post before I replied...
« Last Edit: September 19, 2016, 08:28:49 pm by Nick_W »

Nick_W

  • Full Member
  • ***
  • Posts: 214
    • View Profile
Re: Where I'm keeping my Code
« Reply #17 on: September 19, 2016, 08:26:40 pm »
Ok,

The 120 module uses a completely different accelerometer. It's an ST LIS2DH12, which has a different I2C address (0x19), and while it has similar registers to the MMA8652, they are not the same, or the same addresses either.

I will need to rewrite the library completely for the new modules (sigh).

The good news is that it is a much lower power device, and has a thermometer on board (so now you have two, or three if you count die temp).

The 120 module seems to be lower power overall, so battery life should be better than the 110 modules.

I need to check where my modules are, and see what is needed for the new library....

Nick_W

  • Full Member
  • ***
  • Posts: 214
    • View Profile
Re: Where I'm keeping my Code
« Reply #18 on: September 19, 2016, 08:50:20 pm »
Reading the data sheet of the new accelerometer, I would not try changing the I2C address or anything, this is from the data sheet:
Quote
Registers marked as Reserved or not listed in the table above must not be changed. Writing to those registers may cause permanent damage to the device

Tread carefully!

kbrooking

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Re: Where I'm keeping my Code
« Reply #19 on: September 20, 2016, 09:16:44 pm »
Thanks Nick,

I also noticed that the link to the data sheet is broken. If you need any help with the library let know what I can do.

mc-T2

  • Administrator
  • Sr. Member
  • *****
  • Posts: 252
  • mc-Things! The opportunities are endless!
  • Location: Canada
    • View Profile
Re: Where I'm keeping my Code
« Reply #20 on: September 21, 2016, 10:27:41 am »
Hey guys,
we fixed the data sheet link and are updating that on the website today. Thanks for pointing that out!
Need more mc-Modules, mc-Gateways or other mc-Things? Check out our product page: www.mcthings.com/products. mc-Development kits are available too!
Check out a live Dashboard using mcThings and Losant! Click here: https://goo.gl/ST43hB