1

I'm trying to interface MCP3903. I haven't really don't any SPI interfacing before and I can't seem to find clear enough answer for newbs. Please bare with me.

I'm trying to use this library. http://www.kerrywong.com/2014/05/10/mcp3903-library/

On the website there is the following circuit diagram.

enter image description here

I can see SDI, SDO pins on the ESP module, how do I connect the SCK and CS pins? If they can be any pins how do I declare them on the test program on the website?

Thank you

asked Apr 21, 2021 at 17:35
2
  • Which ESP module are you using? Commented Apr 28, 2021 at 23:56
  • it's wroom ESP-32 Commented Apr 29, 2021 at 14:15

1 Answer 1

0

SPI0 and SPI1 are used internally to access the ESP32’s attached flash memory. SPI2 and SPI3 are general purpose SPI controllers, sometimes referred to as HSPI and VSPI, respectively. They are open to users.

A quick google search shows:


ESP32 Wroom Pinout

So you can use IO5, IO18, IO19 and IO23.

answered Apr 30, 2021 at 4:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.