Testing MCP41010

3 views
Skip to first unread message

Frederico Alves de Oliveira Silva

unread,
Aug 13, 2019, 12:14:12 PM8/13/19
to BeagleBoard
Hello,

I am trying to test a digipot MCP41010 on a BeagleBone Black and I can't make it work.

I made the connections between BeagleBone and the digipot MCP41010 as below:

PORT |  CS0 |
DO |DI |SCLK
SPI0   | 
      
P9_17 | 
P9_21 | 
P9_18 | 
P9_22

I used the code below , from this page: https://adafruit-beaglebone-io-python.readthedocs.io/en/latest/SPI.html, to test the output of the BeagleBone:

import Adafruit_BBIO.SPI as SPI

from Adafruit_BBIO.SPI import SPI
# spi = SPI(bus, device) #/dev/spidev<bus>.<device>

# /dev/spidev0.0
spi = SPI(0, 0)
print(spi.xfer2([32, 11, 110, 22, 220]))
spi.close()

The output should be: 32, 11, 110, 22, 220; but, it is: 255, 255, 255, 255, 255.

Can anybody help me, please?
Thanks for the attention
Reply all
Reply to author
Forward
0 new messages