Hello,
I'm using two pairs of Uno-MCP2515 sets as CAN bus send and receive nodes. I'm using the library from here:
The 8 byte data I'm transmitting is:
data = {1, 2, 3, 4, 5, 6, 7, 8};
The problem:
When the nodes are connected to two USB ports on my laptop, it works just fine. The data is visible on serial monitor connected to receiver node.
When I power them with an external 5V supply, connect laptop USB to receiver node, serial monitor shows that nothing was received. (Have checked baud rates). I tried with common ground, still the same issue.
I wanted to remove the USB port dependency and included a LCD display on the receiver node. Same issue. When the boards are powered by USB of laptop, the CAN bus data is displayed on the LCD. But on 5V supply, it shows no data on bus.
Am I missing something fundamental here? Is there a difference in handling USB power vs standalone power for Arduinos that I'm unaware of? Please help!
PS: I can share the send and receive node codes if it helps. Just didn't want to clutter the space.
Best regards,
SN