I'm new at the board because I started programming arduino's yet. One of my first projects are to interface my photovoltaic battery via can bus and mcp2515. For this I'm looking for a suitable library to use it with esp8266 oder esp32.
I found @jcoryfowler 's library that looks very good to me. Now I'm asking how to connect the esp32 to the mcp2515 and how to get started.
Yes this is the right version. Which transceiver can I use instead of the mcp2515? For me it is important that there is a library available to us it in a easy way because I'm currently not so experienced with the arduino/ESP.
I use the same library, it is great. change the bus transceiver part of that board to a 3V3 compatible part and it works great without level translation. I have received some boards that already have the 3V3 transceiver on it so check the number. Connecting it as is will not hurt anything. You may get one that works but do not rely on it. For me this is much more reliable then using a translator and also more cost effective in space and money.
It uses a standard SPI connection MOSI goes to SI, MOSI gots to SO, Clock to CLK, and chip select to CS. I do not know what board you have so this is the best I can do.
You will Need to have two CAN units or more as it requires an ACK while transmitting a packet. The nice part about the library you are using it has both send and receive source code. Also you must terminate the bus at the physical ends, and only the ends. You simply put a jumper on J1 (not sure of the jumper number) that is horizontal to the other numbers on only the devices on the physical end of the wiring. If you are connecting to an active bus it would already be terminated so not jumper needed.
I have used that one and it is OK. There is a web site selling the same unit with the SN65HVD230 as a 3V3 CAN Module for a few $$$. Sorry I saw it a few months ago and do not remember the URL. There are also some mods to the module so you can use it with two voltages. I chose to simply change the transceiver. I by mistake put on one of the originals and it worked without modification but knowing I was out of the published range changed to one of the modified ones which are still working great. I have some CAN dongles but never spent the time to learn how to use them, the arduino with the MPC2515 and a UNO do just fine for me.