On Monday, March 31, 2014 at 1:13:07 AM UTC+5:30, José Luis Redrejo wrote: > > Hello Stuart, I've been using BBB to communicate with another Analog > Devices device (ADE7753) , and I can confirm you that it works. > Have you tried to do a loopback test before connecting the ADXL275? > Just use a wire in the BBB to join DI and DO in P9, and run this > program: > > > from Adafruit_BBIO.SPI import SPI > > spi = SPI(0,0) > spi.mode=2 > > spi.msh=2000000 > spi.open(0,0) > > print spi.xfer2([32, 11, 110, 22, 220]) > spi.close() > > You should see 32,11,110,22,220 in your terminal as it's returned by > the spi instruction. > > You don't need > spi.cshigh = low > because that's its default value. > > If the loopback test works, then you can try with the device. I can > confirm you that using ADE7753 and adafruit python library I have need > some time to get it working, until I found out the trick. > > Regards. > José L. > > > > I am writing this by seeing your post
I am trying to communicate between BBB and ADE7880 using SPI. But on spi.xfer2([0x43,0xC1]), ie reading AVRMS i am getting [67,193] as output and for BVRMS [67,195] etc. I tried the loop back test and is working fine. I hope you will be able to advice me on this. Thanks HariKumar R -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
