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

example in library Actisesnse Listner not work with my arduino mega 2560 #405

Open
nett1s opened this issue Jun 14, 2024 · 2 comments
Open

Comments

@nett1s
Copy link

nett1s commented Jun 14, 2024

Hi, i making device for my NMEA 2000 Lowrance, i made my own PCB with atmega644pa and mcp2515 on it. So, on my board i started example TemperatureMonitor from NMEA2000 Library, so it is sending data to CAN ( I have checked it with my oscilloscope ). On arduino mega 2560 i trying to receive messages also with MCP2515 board, and it seems nothing to work. On transducer on receive side i see impulses in the output, but MCP2515 is silent, no anything on interrupt, cs, miso, mosi pins. In Actysense Listner on PC which my arduino mega (as receiver) connected i see nothing. I have checked with original mcp_can from arduino library example with receiving and i have getting CAN messages and MCP2515 pins signals appears, under your examples nothing. So, i think here problem not in the hardware. Help please!

@ttlappalainen
Copy link
Owner

Definetely it is hw or some definition like pin definition problem. Library has been tested in so many systems that it is hard to find sw problem for basic operation.

  • Check your wireing that CAN H/CAN L are connected right.
  • Make sure you have proper termination resistors on the bus. When bus is unpowered, you should measure 60 ohm between CAN H/CAN L
  • Make suore you have defined all pins and also interrupt pin properly for both devices.
  • Check from document https://ttlappalainen.github.io/NMEA2000/page_h_w_set_up.html#secCommErr

@nett1s
Copy link
Author

nett1s commented Jun 17, 2024

I have checked all, it seems something with MCP2515 initialization. If i starting usual mcp_can CAN_receive example, all starting work, i see signals on SPI (CS, MISO, MOSI, SCK, INT), but if i start your example, no interrupt generation first ( i disabled it by putting 0xff value in int pin define), so next problem now, there is no signal on MISO pin ( CS, SCK, MOSI start generating except this one). I tryed changing 8MHz crystal to 16Mhz, but no any positive effect, also i have a few MCP module, there is also no problem in them. Help please!

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

2 participants