I am working with a beaglebone black and I want to transfer data to my potentiometer (AD 8403). BBB is the master and pot is the slave.
My beaglebone settings: 1) *uname -a * Linux beaglebone 4.9.59-ti-r74 #1 SMP PREEMPT Thu Nov 2 06:20:31 UTC 2017 armv7l GNU/Linux 2)* cat /etc/dogtag* BeagleBoard.org Debian Image 2017-11-05 3) *cat /etc/debian_version * 9.2 4) *cat /sys/devices/platform/bone_capemgr/slots* cat: /sys/devices/platform/bone_capemgr/slots: No such file or directory 5) *ls -al /dev/spi** crw-rw---- 1 root spi 153, 1 Nov 3 2016 /dev/spidev1.0 crw-rw---- 1 root spi 153, 0 Nov 3 2016 /dev/spidev1.1 crw-rw---- 1 root spi 153, 3 Nov 3 2016 /dev/spidev2.0 crw-rw---- 1 root spi 153, 2 Nov 3 2016 /dev/spidev2.1 6) Pins are configured through config pin config-pin P9_17 spi_cs config-pin P9_18 spi config-pin P9_21 spi config-pin P9_22 spi_sclk 7) *cat /etc/default/capemgr* # Default settings for capemgr. This file is sourced by /bin/sh from # /etc/init.d/capemgr.sh # Options to pass to capemgr CAPE=BB-SPIDEV0 Loopback test is working fine but when I try to transfer any data to my pot, I am receiving [255] as the result. How to solve this issue? *Loopback test example:* spi = SPI(0, 0) print spi.xfer2([0, 0]) [0, 0] spi.close() *When connected to pot:* spi = SPI(0, 0) print spi.xfer2([0, 0]) [255, 255] --> This is where the issue is. spi.close() Thanks in advance. -Regards, Kaarkuzhali Murugan. -- 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 beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/06509ee0-6d44-428d-8607-0f9b4304571b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.