Guide to CAN for toddlers (or people with arduino UNO)
Posted: Tue Sep 19, 2023 8:08 pm
So it all began with a video of someone spoofing Imiev's SOC and this github https://github.com/dkotin/can_2515/tree/master/b and this is why I own an arduino uno. I have acquired adc flying bms from the local shop recently. Turns out CAN is not as easy as it might seem. If you see someone having a solution then just use it and don't waste time tinkering around blindly. Sadly I am stuck with Arduino uno and 2 MCP2515 and want to exhaust every possible way to make it work that way. After 2 days I have figured out that I had placed wrongly SI and SO pins. Before that I was getting gibberish on arduino IDE terminal. After swapping them There was less gibberish but hey! thanks to https://openinverter.org/wiki/Getting_s ... rduino_Uno this page I figured out how to connect to CANHacker. Before reading more, do as wiki guide says. This way you get to learn how Arduino works. If you don't see
Go to settings, set proper port, the same used in arduino IDE. Now it should connect. Nothing shows up but when I bend pins on the MCP2515 dongle, random data appears. Make sure your connections are solid! Setting CAN baud rate to 1mb gives pic related. Did you knew It needed 1mb/s can baudrate? I sure as hell did not. I bed in reality nobody knows. Everybody makes their software with particular applications in mind and don't even think about such things. Openinverter_can_tool and SavvyCAN will not work for now but feel free to maketo install them and make it work. You will learn something from that. Who knew sitting in front of a computer screen for 4 days could give such awesome results Another thing i figured out today is that if you don't have any 120ohm resistors around just use second MCP2515 dongle with built in resistor jumper. Yet another funny thing is that Gregski reminded me of Okocim. I forgot it even exist anymore. Tastes like cheapo beer. Not bad by any means. Beer is like pizza. It is difficult to land bad one. It just is unremarkable and there's plethora of better brands. Perhaps beer is the solution to progress.
Now the next step is buying Arduino DUE with SN65HVD230 transceiver to copycat Gregski and connect with SavvyCAN. But dont crucify me if this doesn't work because someone here viewtopic.php?p=60208#p60208 was having problems with SN65HVD230 and had to use SN65HVD234 instead; buying Outlander OBC or even better yet - writing my own code for duino to integrate battery with my ebike (this one is a joke).
dont worry. I did not neither. Now open example "canbus-monitor" instead of "receive_check". Close arduino IDE as only one program can be connected to arduino at once. Open CANHacker which can be downloaded here https://github.com/Seeed-Studio/Seeed_A ... us-monitorEnter setting mode success
set rate success!!
Enter Normal Mode Success!!
CAN BUS Shield init ok!
Go to settings, set proper port, the same used in arduino IDE. Now it should connect. Nothing shows up but when I bend pins on the MCP2515 dongle, random data appears. Make sure your connections are solid! Setting CAN baud rate to 1mb gives pic related. Did you knew It needed 1mb/s can baudrate? I sure as hell did not. I bed in reality nobody knows. Everybody makes their software with particular applications in mind and don't even think about such things. Openinverter_can_tool and SavvyCAN will not work for now but feel free to maketo install them and make it work. You will learn something from that. Who knew sitting in front of a computer screen for 4 days could give such awesome results Another thing i figured out today is that if you don't have any 120ohm resistors around just use second MCP2515 dongle with built in resistor jumper. Yet another funny thing is that Gregski reminded me of Okocim. I forgot it even exist anymore. Tastes like cheapo beer. Not bad by any means. Beer is like pizza. It is difficult to land bad one. It just is unremarkable and there's plethora of better brands. Perhaps beer is the solution to progress.
Now the next step is buying Arduino DUE with SN65HVD230 transceiver to copycat Gregski and connect with SavvyCAN. But dont crucify me if this doesn't work because someone here viewtopic.php?p=60208#p60208 was having problems with SN65HVD230 and had to use SN65HVD234 instead; buying Outlander OBC or even better yet - writing my own code for duino to integrate battery with my ebike (this one is a joke).