The Pi and Arduino can both do I2C & SPI. SPI is faster (ISTR I2C is 10kHz) I believe, but needs something like n+2 wires, where n is the number of connected devices. I2C just needs 3. Choose what fits your need better. I've mostly used I2C.
I've done my I2C programmign in Go: https://github.com/wjessop/go-piglow/blob/master/piglow.go There are almost certainly c libs available though. One thing to be aware of, if you're operating in a noisy environment (sparks, electric motors etc.) then you might get interference on the SPI/I2C bus, program and design your hardware accordingly. You might also have problems with the Pi and clock stretching, some I2C implementations seem immune, YMMV: http://www.raspberrypi.org/forums/viewtopic.php?p=146272 Will. On 15 June 2014 10:42, Lee Hambley <[email protected]> wrote: > Hey Chaps, > > Given that some on the mailing list are into robotics and Arduino and other > electronics projects, I wanted to shout out and ask if anyone knew anybody > who'd done any low level programming (Arduino or RaspberryPi for serial > devices, or SPI/i2c). > > I'm trying to tie a > http://www.cooking-hacks.com/3g-gprs-shield-for-arduino-3g-gps-audio-video-kit > and a > http://www.analog.com/en/mems-sensors/mems-inertial-sensors/adxl345/products/product.html > together. > > I'd prefer to use Linux and C than Arduino and their bastard pseudo C > implementation, I'm looking for anyone who can tell me whether it's > possible, sane, worth bothering with, whether i2c or SPI is preferable, or > blah blah! > > Thanks, if anyone has any comments, I'd love to hear them! > > Lee Hambley > -- > http://lee.hambley.name/ > +49 (0) 170 298 5667 > > -- > You received this message because you are subscribed to the Google Groups > "NWRUG" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/nwrug-members. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nwrug-members. For more options, visit https://groups.google.com/d/optout.
