Nusbio supports the SPI protocol (Serial Peripheral Interface Bus, AKA Four-Wire serial bus) via the C# class SPIEngine part of the Nusbio library. In the following tutorial, we show how to control 2 SPI components.


Breadboarding the MCP4231 and MCP4131

The MCP4231 part of the MCP42XX family device is dual 7-bit (129 wiper steps) digital potentiometer that is programmed through SPI.

The MCP4131 part of the MCP41XX family device is one 7-bit (129 wiper steps) digital potentiometer that is programmed through SPI.

The class MCP413x.cs offer support for the 2 components.



More Videos: Breadboard Projects:
  • Controlling one LED intensity with the MCP4131

    • I am using a 220Ohm Resistors to protect the LED, when the resistance from the potentiometer is 0 Ohm
      • Gpio 0 - White - Clock
      • Gpio 1 - Green - MOSI (Master Out Slave In)
      • Gpio 2 - Orange - Select
      • Note: For this chip there is no MISO (Master In Slave Out). Actually MOSI anf MISO are defined on the same pin. So far I could not read data from the device including with an Arduino. (To be continued)
    Github project



  • Controlling a 2 color LED intensity with the MCP4231
    BiColorLedMCP4231Manager.cs
    Github project