Hello all,
We are now a few guys messing around the flatpacks in order to build remmie's supercharger. Not sure if it was said before, nevertheless let me share my worries and findings.
If The flatpack does NOT answer CAN commands, neither seem to send anything to your Leonardo-CAN, don't worry!
First try to connect the CAN to your car's OBD2 port just to listen what happens (in 500KBPS). You will probably get a huge amount of ununderstandable data. This means your HW and SW works.
If not, check the source code for this line:
const int SPI_CS_PIN = 17;
Figure "17" is the data pin connected to the CAN IC's chip select input, in case of Leonardo-CAN. Other CAN "shields" may use another data pin for that, for example "10". Please check this pin value (on the schematic diagram of your board) and adjust the source code accordingly.
Now it really works with the car.
Still, with the FP nothing works (even with 125KBPS setting). This is probably due to the termination resistor, 120 Ohms which shall be installed "somewhere" on any CAN bus. Your car already contains one. The Flatpack, as a single component, does not. The Leonardo-CAN board offers the option to add or not the "Terminal" resistor. It is already mounted on the board, you just need to connect it (or not) to the bus using a jumper. As soon as the "terminal" holes are bridged, the FP starts talking!