Page 1 of 1

Connecting two MCP3xxx devices on VSPI bus

Posted: Tue Dec 03, 2019 11:11 am
by blobkat
Hello guys,

I have an ESP32-PoE-ISO from Olimex, and I'd like to connect an MCP3008 and MCP 3004 to it.

I'd like to put both on the VSPI bus, with different slave selects. However it seems that most arduino libraries for the MCP series assume that when you initialise the library with custom pins set, you want to use software SPI and not hardware.

Is there a library out there that can handle this? It should be pretty easy right? In total I just need 5 pins and I'd like to avoid the HSPI bus because if SPI devices already start talking during boot it might give issues apparently on that bus.

The library that comes closest right now to me seems this one: https://github.com/MIDI-CHIP/MCP3008

It uses the HSPI bus but seems small enough to modify to my needs.