Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with SPI Communication #16

Open
smellit opened this issue Jul 4, 2020 · 9 comments
Open

Problem with SPI Communication #16

smellit opened this issue Jul 4, 2020 · 9 comments

Comments

@smellit
Copy link

smellit commented Jul 4, 2020

Dear all

I'm trying to set up a board using Microchip's MCP2518 controller (MCP2518FD CLICK Board) together with an Arduino Uno, but I can't get SPI communication working.

The example in ACAN2517FD\examples\LoopBackDemoArduinoUno\LoopBackDemoArduinoUno.ino seems to not be able to setup the SPI correctly.

Here a diagram of the SPI CLK (CH1) and SPI MOSI (CH2) using the example:

ACAN2517FD

As check I try the Arduino Barometric Pressure Sensor SPI example and here the SPI seems to be OK:

SPI_Example

Any suggestion how to proceed to find the root cause? Thanks in advance!

Ludwig

@pierremolinaro
Copy link
Owner

pierremolinaro commented Jul 4, 2020 via email

@pierremolinaro
Copy link
Owner

pierremolinaro commented Jul 4, 2020 via email

@soso49
Copy link

soso49 commented Oct 23, 2020

Hello, I've had a hard time setting the SPI com with my arduino UNO and a MCP2518FD click board. I haven't seen a clear wiring scheme yet so I'm sharing mine.
image
Make sure to remove the jumper on the 3.3V section and solder it on the 5V section.
Note : With this specific wiring, the Slave Select has to be set on pin 10 of your Arduino.

@pierremolinaro
Copy link
Owner

pierremolinaro commented Oct 30, 2020 via email

@dost0011
Copy link

Hello, I have the same problem and can't find the solution.
Arduino Mega 2560 Rev. 3 --> MCP2517FD click
I have downloaded your lib and tried the example "LoopBackDemoArduinoUnoNoInt".
I connected the CS to PIN 53 (and changed the code). I have used a Pullup 10kOhm.

Jumpers:
VIO 5V
STBY ON
40 MHz
STBY SEL STBY

51 MOSI --> 6 SDI
50 MISO --> 5 SD0
52 SCK --> 4 SCK
53 CS --> 3 CS
I checked the connections 1000 times.

The error is always 1 = kRequestedConfigurationModeTimeOut.

It looks, that SPI from Arduino Mega doesn't work. I tried settings.mDriverTransmitFIFOSize = 0 --> no effect.

I don't have any single idea... Could you help me?
Many thanks...

@dost0011
Copy link

One thing: is it normal that the voltage between CANL and CANH is 0V if nothing is connected?

@dost0011
Copy link

Okay. now I'm one step further with a oscilloskop.
CANL and CANH are 2.5V --> that's why the difference is 0v
CLK, MOSI, CS are working. SDO is 0V the whole time.
Does anybody know, how to wake up the SDO from the MCP2517FD?

@pierremolinaro
Copy link
Owner

pierremolinaro commented Apr 4, 2022 via email

@pierremolinaro
Copy link
Owner

pierremolinaro commented Apr 4, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants