[beagleboard] Re: Beaglebone black SPI0 transfer issue

2018-02-08 Thread Kaarkuzhali Murugan
Hi, I am using the adafruit's BBIO library. Sample code: from Adafruit_BBIO.SPI import SPI from time import sleep spi = SPI(0, 0) for i in range(255): print i, spi.xfer2([i, 0]) sleep(5) On Friday, 9 February 2018 01:58:53 UTC+5:30, pierric...@gadz.org wrote: > > Hi, > > OK, I miss

[beagleboard] Re: Beaglebone black SPI0 transfer issue

2018-02-08 Thread pierrick . rauby
Hi, OK, I missed it when reading the pot's documentation, my bad. Could you tell me what is the code for the SPI(x,y) function/library you are using on the BeagleBone ? I used SPI between PRUs and an accelerometer once, and I encourtered a similar problem, which finally came form the SPI phas

[beagleboard] Re: Beaglebone black SPI0 transfer issue

2018-02-08 Thread Kaarkuzhali Murugan
Hi, AD8403 has a SDO pin (Pin 13). And my issue is in transferring the data to the pot. I meant to say, whatever value I pass to the pot, resistance is not changing. But when I use an arduino board, resistance is changing. Regards, Kaarkuzhali Murugan On Thursday, 8 February 2018 02:39:31

[beagleboard] Re: Beaglebone black SPI0 transfer issue

2018-02-07 Thread pierrick . rauby
I maybe of the track, but the AD 8403 seems to be a 3 wire SPI, then I do not understand why your setting up 4 pins on the BBB Thanks Pierrick Le mercredi 17 janvier 2018 10:27:43 UTC-5, Kaarkuzhali Murugan a écrit : > > > I am working with a beaglebone black and I want to transfer data to my

[beagleboard] Re: Beaglebone black SPI0 transfer issue

2018-01-31 Thread Kaarkuzhali Murugan
Beaglebone black setings: * sudo /opt/scripts/tools/version.sh* git:/opt/scripts/:[a5d5f437baeaa7f8e14d5ae037268abf7a67e88e] eeprom:[A335BNLT00C00415BBBK046D] model:[TI_AM335x_BeagleBone_Black] dogtag:[BeagleBoard.org Debian Image 2017-11-05] bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Bo