Accelerometer sensor

Status
Not open for further replies.

amitaiwe

Member level 3
Joined
Feb 19, 2014
Messages
57
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Visit site
Activity points
547
motion sensoring

Hi,
I have bought a MMA7455 3-Axis Accelerometer Module and I want to use it for a simple purpose
which is getting an indication that a movement of an object ( in which the Accelerometer is) has occurred upwards or downwards.
The Accelerometer needs to send the information to a PIC16f877. The thing is that the PIC is also
connected to another component which communicates only via SPI protocol.
can i communicate with both the components one after another? (twice SPI or SPI and I2C?)
what are the things that need to be done for enabling that?

Thanks, Amitai
 

Re: motion sensoring

SPI provides you the capability to select slave in general according to slave select input on SPI supported devices. You might want to use different pins on your microcontroller to provide Slave select input to devices and program those pins
Aashish
 

Quick look at your problem shows that you have to switch to I2C. For SPI you need different pins for MISO and MOSI.
You may try diode ,it may work. Module does say it support SPI and I2C so it must have some means to use single dataline for SPI.
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…