Using an spi digipot

44 views
Skip to first unread message

Frederico Alves de Oliveira Silva

unread,
Sep 28, 2019, 11:57:13 AM9/28/19
to BeagleBoard
Hello,

I am a total newbie with BeagleBone Black.
Is there a minimal example of how to work with spi digipots?

Thank you for the attention!
Frederico

amf

unread,
Sep 29, 2019, 4:49:28 PM9/29/19
to BeagleBoard
Please provide which digipot your looking at using, there are spi, i2c, and some custom types like microchip.

Frederico Alves de Oliveira Silva

unread,
Sep 29, 2019, 7:33:49 PM9/29/19
to BeagleBoard
Hello amf,

I am using a MCP41010. It is an SPI digipot  with a total resistence of 10 kOhm.

amf

unread,
Sep 30, 2019, 11:17:13 AM9/30/19
to BeagleBoard
look at spidev in linux/Documentation/spi
this is a generic spi driver
The Linux kernel (4.9.x) that I'm using does not have a driver for this device
You will need to add an overlay to associate the spidev with the spi bus that you will be connecting the device to, this link shows you how to do this.
Make sure you only power this device with 3.3 volts, that is what beaglebone black's pins use

You have a lot of learning here, good luck
Reply all
Reply to author
Forward
0 new messages