foulquesnera
Posts: 21
Joined: Thu May 15, 2014 6:14 pm
Location: Sceaux (92)

servo, magneto, accelero

Mon Jun 02, 2014 3:44 pm

Hello,
I have already connect the "16-Channel 12-bit PWM/Servo Driver - I2C interface" bord for servos driving.
I use 3,3 V, GND, pin 3 (SDA) and 5 (SCL) for that.
Now, I want to connect the sparkfun LSM303DLG Accelorometer and Magnetomer.

Where do I connect it ?

Best regards.
Attachments
servo-and-LSM.png
servo-and-LSM.png (7.79 KiB) Viewed 716 times

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: servo, magneto, accelero

Mon Jun 02, 2014 5:44 pm

It appears to be an I2C device. Connect it in the same way as the Servo driver, to SDA/SCL 3V3 and ground. I2C is a shared bus.

foulquesnera
Posts: 21
Joined: Thu May 15, 2014 6:14 pm
Location: Sceaux (92)

Re: servo, magneto, accelero

Mon Jun 02, 2014 5:47 pm

So, can i use the servo interface board as "cascade" ?
Attachments
rpi-servos-lsm303.png
cascade schema
rpi-servos-lsm303.png (5.29 KiB) Viewed 690 times

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: servo, magneto, accelero

Mon Jun 02, 2014 6:03 pm

foulquesnera wrote:So, can i use the servo interface board as "cascade" ?
I suppose so. I don't have that board.

I'd just twist the wires together or use a breadboard.

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: servo, magneto, accelero

Mon Jun 02, 2014 8:12 pm

Yes, you can just connect to the same connections on the opposite side of the board, it will pass straight through to the i2c bus on the raspberry pi.
Doug.
Building Management Systems Engineer.

Return to “Beginners”