I2C MMA8452 Accelerometer


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Aug 2013
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: I2C MMA8452 Accelerometer

    I have pbp 2.6 (by the way ,is it worth upgrading?)
    my code is like this:
    '
    'The WHO_AM_I register is factory set to $3A
    '
    I2CWRITE IICData,IICScl,$3A,[$0D],IICFail 'WHO_AM_I register address = $D
    I2CREAD IICData,IICScl,$3B,[STR a\7],IICFail 'Fails to read, it reads only the first 7 bytes .... after STOP the counter
    I'm going to try your way
    thanks

  2. #2
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: I2C MMA8452 Accelerometer

    Quote Originally Posted by emf985 View Post
    I have pbp 2.6 (by the way ,is it worth upgrading?)
    That's another topic. It is discussed here

    PBP 3.0 really needed?
    http://www.picbasic.co.uk/forum/showthread.php?t=16234
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  3. #3
    Join Date
    Sep 2007
    Location
    Waco, Texas
    Posts
    151


    Did you find this post helpful? Yes | No

    Default Re: I2C MMA8452 Accelerometer

    LinkMTech-
    I am just now workiing with a LSM330DLC myself on a PIC18F66J11 and also PBP3.
    Was wondering if I get stuck on how to set it up, read data, etc if you wouldn't mind giving me some pointers?
    I plan on using I2C interface (I think its easier) and I planned on using DT's interrupt (sure miss that Guy) and reading from it.
    I am working the schematic now and will have a test board made in a few days.
    You can PM if you like.

    Regards,
    Steve
    "If we knew what we were doing, it wouldn't be called research"
    - Albert Einstein

  4. #4
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: I2C MMA8452 Accelerometer

    Hi Steve,

    Sure I'll help you out. My project works but on the shelf for now.
    Got your PM.

    Louie
    Louie

Similar Threads

  1. 3-Axis Accelerometer (LIS302DL)
    By Gusse in forum Code Examples
    Replies: 20
    Last Post: - 28th January 2013, 04:20
  2. Accelerometer reading
    By joseph Degorio in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th February 2011, 11:43
  3. accelerometer question
    By griffin in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th February 2009, 21:00
  4. Accelerometer Sensor
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 27th August 2008, 13:26
  5. Adxl213ae Accelerometer
    By DougB in forum mel PIC BASIC
    Replies: 0
    Last Post: - 25th July 2005, 21:32

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts