User manual
JM3 Engineering Inh. J. Maisel Dobelweg 18, D-85567 Grafing / Munich
Email: JHM@JM3-Engineering.de
Version: 2.30 Oct 21, 2013 page: 2
2.) Connecting to RP6 Robot
The picture on the left shows the M32 board with an 8 pin DIL socket.
The Accelerometer module fits on the boards as drop in solution.
PIN1
PIN3 and PIN 7 on M32 Board are connected to Vdd ! Recommendation is to remove R2 and R3!
Pin1 is on the lower right hand side on the picture below (hence DIL socket).
VDD is 3.3 or 5.0 V nominal.
3.) Connecting to RP6WIFI, ASURO or ARUDINO
Alternatively you can connect this module to the I2C Bus instead of SPI. Therefore
you need to pull PIN1 to VDD. PIN5 is then SDA while PIN 6 is SCL!
With PIN2 you can select the less significant bit of the device ID.
In this case you can use it together with the RP6WIFI, ASURO or ARUDINO Robot
and the specific extension board!
4.) Software changes (SPI):
The data access and initialization works over SPI Bus (for details on Registers and
functions refer to the datasheet of the LIS302DLH.
Change the software on the control board as following:
1. RP6ControlLib.h:
/******************************************************************/
// SPI ACC Sensor
uint8_t ACCSENS_ReadByte(uint8_t regAddr);
void ACCSENS_ReadBytes(uint8_t startAddr, uint8_t* buffer, uint8_t length);
void ACCSENS_WriteByte(uint8_t regAddr, uint8_t data);
uint8_t ACCSENS_GetStatus();





