Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4961

Interfacing (DSI, CSI, I2C, etc.) • Controlling MCP42010

$
0
0
Hi I am trying to control a MCP42010
I have made this setup
https://drive.google.com/file/d/1sMtoLJ ... sp=sharing
I attach an image with connections.
I run a very simple program, I think it should work, no error but nothing happens. I read the wipers resistance and always stay 5.4K. I am not experienced in digital pots. Help **please** :)
https://drive.google.com/file/d/1Mr5i5m ... sp=sharing

Code:

#!/usr/bin/pythonimport spidevimport timespi = spidev.SpiDev()spi.open(0, 0)spi.max_speed_hz = 10000000#spi.cshigh = Falsespi.xfer([0b00010011])time.sleep(.001)spi.xfer([0b00000001])spi.close

Statistics: Posted by alexopth1512 — Mon Apr 22, 2024 7:56 am



Viewing all articles
Browse latest Browse all 4961

Trending Articles