Pages: [1]   Go Down
Author Topic: Interfacing two "SPI" sensors with Arduino.  (Read 695 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone, I've having a little trouble getting two sensors to play nice together.

I've recently had success getting my MS5535C Barometric sensor working over in this thread: http://arduino.cc/forum/index.php/topic,90025.msg675730.html#msg675730 but now I'm trying to add a real time clock to the package and I'm stumped.

The RTC is Sparkfun's DeadOn RTC - DS3234 Breakout (http://www.sparkfun.com/products/10160) and I'm using the sample library written for it (http://dlnmh9ip6v2uc.cloudfront.net/datasheets/BreakoutBoards/DS3234_Example_Code.pde).

The trouble that I'm having is the MS5535C isn't a "true" SPI sensor, and doesn't have a Slave Select (SS) pin to tell it to shut up when the Arduino is trying to speak to the DS3234. My first thought was to simply turn the MS5535C off whenever I want to talk to the DS3234, but I'm at a loss as to how to do that effectively.

If you've got any suggestions, I'd be happy to hear from you!  smiley
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8821
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Another option is to use software SPI to talk to the device that doesn't implement the Slave Select.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12076
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It doesn't take clocks in multiples of 8 so its not compatible with the hardware SPI at all - best to bit-bang it on different pins.
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: