Coder Social home page Coder Social logo

Comments (4)

timurrrr avatar timurrrr commented on May 28, 2024

A good starting point would be to figure out what exactly fails.
Try opening the source code of the arduino-CAN library installed into your Arduino IDE, follow the code that you call before you get the failure, and insert something line Serial.println("Failed doing XYZ"); at each block of code like if (not ok) { return ...; }. This way you should be able to find out which condition fails.
This is how I found the bug here: #45

from arduino-can.

RBVGH avatar RBVGH commented on May 28, 2024

Thanks Timurrr for the reply. I should indeed try that, but it's rather complicated as the CAN library in turn calls other libraries (such as those for the SPI bus) and the problem may be there.

I also have another lead: the SCK signal looks rather degraded when the display and touch chips are connected to the SPI bus (voltage drop, reduced slew rate). Just connecting these to the SCK bus even when MISO and MOSI are disconnected results in an initialisation failure of the CAN shield. I may need to look further (regenerate clock by an additional chip, or reduce clock rate).

from arduino-can.

Petros144 avatar Petros144 commented on May 28, 2024

What kind of CAN tranciver /controler are you useing? I also work with the same TFT Driver in my project and have zero problems.

I use the onboard ESP32 Can Controller and a SN65HVD230 tranciver... this may be a better solution for your purpose?

from arduino-can.

timurrrr avatar timurrrr commented on May 28, 2024

Just connecting these to the SCK bus even when MISO and MOSI are
disconnected results in an initialisation failure of the CAN shield.

Yeah, sounds like you need to figure out a way to better isolate them electrically.

from arduino-can.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.