EAGLE Central Forums
Where the EAGLE community meets. Sponsored by Stratford Digital.

Home » CadSoft Support Forums » eagle.suggest.eng » Using a LSM330DLC with ATMEGA328-MMH using I2C
Using a LSM330DLC with ATMEGA328-MMH using I2C [message #168302] Mon, 16 January 2017 10:13 Go to next message
Lucas Mattison
Messages: 2
Registered: January 2017
Junior Member
Hello,

I have been trying to connect a LSM330DLC to an ATMEGA328-MMH. I have tried connecting it with I2C, but I only connected the SDA and SCL lines. Just wondering if i need to connect any of the other lines, as i have no clue how to use SPI or anything. I just need to know before I get my board manufactured.

Thanks,
Lucas

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/213119
Re: Using a LSM330DLC with ATMEGA328-MMH using I2C [message #168303 is a reply to message #168302] Mon, 16 January 2017 10:36 Go to previous messageGo to next message
rachaelp
Messages: 604
Registered: March 2015
Location: UK
Senior Member
Hi Lucas,

This probably isn't the correct forum section to post this as you've posted in the EAGLE support section which is for issues using EAGLE.

However, I've had a quick look at the data sheet for the LSM330DLC to see if I can spot anything else. Have you pulled CS_G and CS_A high to enable I2C mode? You might also want the data ready and interrupt signals connecting across (DRDY_G/ INT2_G, INT1_G, INT2_A, INT1_A) so you know when to read the data otherwise you'll spend a lot of time polling. Finally, don't forget the pull up resistors on the I2C! I know it's an obvious thing to state but I have seen people forget these before!

With regards to SPI, it's not a difficult interface to use. From a hardware perspective it's a slightly different topology and you'll need to change the software to configure an SPI interface rather than I2C. It's worth learning how to use SPI at some point as there are a lot of devices out there that use it.

Good luck!

Rachael

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/213120
Re: Using a LSM330DLC with ATMEGA328-MMH using I2C [message #168305 is a reply to message #168303] Tue, 17 January 2017 05:20 Go to previous message
Lucas Mattison
Messages: 2
Registered: January 2017
Junior Member
Thank you so much for your help. That is exactly the information I needed to know. Sorry about posting in the wrong section, I will actually look next time :)

Regards,
Lucas

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/213180
Previous Topic: Arbitrary Pad Shapes for packages without devices: more than one pad
Next Topic: Allow flat cap on wires
Goto Forum:
  


Current Time: Sat Sep 23 07:15:55 GMT 2017