diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-04-25 15:43:59 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-04-25 15:45:24 -0400 |
commit | 475d8a72ad3ded648d798052389be2fe7551bd64 (patch) | |
tree | 4a739c2a87e53b47647203e13852b0486e2d10e3 /docs | |
parent | 70ea0806d96df5a8ea83793da46f2676d9695e69 (diff) | |
download | kutter-475d8a72ad3ded648d798052389be2fe7551bd64.tar.gz kutter-475d8a72ad3ded648d798052389be2fe7551bd64.tar.xz kutter-475d8a72ad3ded648d798052389be2fe7551bd64.zip |
docs: Add notes on terminating resistors to CANBUS.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/CANBUS.md | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/docs/CANBUS.md b/docs/CANBUS.md index 07569205..2446c533 100644 --- a/docs/CANBUS.md +++ b/docs/CANBUS.md @@ -6,10 +6,9 @@ Klipper currently only supports CAN on stm32 chips. In addition, the micro-controller chip must support CAN and it must be on a board that has a CAN transceiver. -To compile for CAN, run "make menuconfig", unselect "Use USB for -communication (instead of serial)" and then select "Use CAN for -communication (instead of serial)". Finally, compile the -micro-controller code and flash it to the target board. +To compile for CAN, run "make menuconfig" and select "CAN bus" as the +communication interface. Finally, compile the micro-controller code +and flash it to the target board. # Host Hardware @@ -41,6 +40,24 @@ iface can0 can static Note that the "Raspberry Pi CAN hat" also requires [changes to config.txt](https://www.waveshare.com/wiki/RS485_CAN_HAT). +# Terminating Resistors + +A CAN bus should have two 120 ohm resistors between the CANH and CANL +wires. Ideally, one resistor located at each the end of the bus. + +Note that some devices have a builtin 120 ohm resistor (for example, +the "Waveshare Raspberry Pi CAN hat" has a soldered on resistor that +can not be easily removed). Some devices do not include a resistor at +all. Other devices have a mechanism to select the resistor (typically +by connecting a "pin jumper"). Be sure to check the schematics of all +devices on the CAN bus to verify that there are two and only two 120 +Ohm resistors on the bus. + +To test that the resistors are correct, one can remove power to the +printer and use a multi-meter to check the resistance between the CANH +and CANL wires - it should report ~60 ohms on a correctly wired CAN +bus. + # Finding the canbus_uuid for new micro-controllers Each micro-controller on the CAN bus is assigned a unique id based on |