<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.jw-tech.eu/index.php?action=history&amp;feed=atom&amp;title=WSAL14882_%E2%80%93_RS485_CAN_HAT%2Fen</id>
	<title>WSAL14882 – RS485 CAN HAT/en - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jw-tech.eu/index.php?action=history&amp;feed=atom&amp;title=WSAL14882_%E2%80%93_RS485_CAN_HAT%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.jw-tech.eu/index.php?title=WSAL14882_%E2%80%93_RS485_CAN_HAT/en&amp;action=history"/>
	<updated>2026-10-23T21:20:19Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in JW Tech Wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.jw-tech.eu/index.php?title=WSAL14882_%E2%80%93_RS485_CAN_HAT/en&amp;diff=2088&amp;oldid=prev</id>
		<title>JWTechPublisher: Freigegebene technische Dokumentation veröffentlicht; Text-only und noindex</title>
		<link rel="alternate" type="text/html" href="https://wiki.jw-tech.eu/index.php?title=WSAL14882_%E2%80%93_RS485_CAN_HAT/en&amp;diff=2088&amp;oldid=prev"/>
		<updated>2026-09-05T22:42:33Z</updated>

		<summary type="html">&lt;p&gt;Freigegebene technische Dokumentation veröffentlicht; Text-only und noindex&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOINDEX__&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Documentation notice:&amp;#039;&amp;#039;&amp;#039; This technical documentation was independently rewritten from an archived supplier source. Check technical details and commands against the product version and manufacturer documentation before use.&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
The RS485 CAN HAT adds CAN and RS485 communication to a Raspberry Pi via the 40-pin GPIO header. It uses an MCP2515 CAN controller over SPI and an SP3485 transceiver for half-duplex RS485 operation.&lt;br /&gt;
&lt;br /&gt;
== Related products at JW Tech ==&lt;br /&gt;
* [https://shop.jw-tech.eu/p/WSAL14882 WSAL14882 – RS485 CAN HAT for Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
== Technical overview ==&lt;br /&gt;
* Standard 40-pin Raspberry Pi GPIO header compatible with all Raspberry Pi models, including Raspberry Pi 4B.&lt;br /&gt;
* CAN function: onboard MCP2515 CAN controller via SPI interface with SN65HVD230 transceiver (Texas Instruments).&lt;br /&gt;
* RS485 function: controlled via UART, half-duplex operation; the SP3485 transceiver supports automatic TX/RX control without additional programming.&lt;br /&gt;
* Onboard TVS suppresses surge voltages and electrostatic discharge on the RS485 bus.&lt;br /&gt;
* Dimensions: 65 mm x 30 mm; mounting hole diameter 3.0 mm; operating voltage 3.3 V.&lt;br /&gt;
* CAN bus pins: SCK, MOSI, MISO, CS (CE0), and interrupt output at pin 25 (BCM).&lt;br /&gt;
* RS485 bus pins: RXD, TXD via UART; RSE control signal at BCM pin 4.&lt;br /&gt;
* Factory default uses hardware auto mode for RS485 transmit/receive; manual software control can be enabled by soldering a 0-ohm resistor.&lt;br /&gt;
* For CAN operation, add &amp;#039;dtparam=spi=on&amp;#039; and the dtoverlay &amp;#039;mcp2515-can0&amp;#039; to /boot/config.txt (or /boot/firmware/config.txt for Bookworm/Ubuntu).&lt;br /&gt;
* After reboot, verify initialization with &amp;#039;dmesg &amp;amp;#124; grep -i &amp;quot;\(can\&amp;amp;#124;spi\)&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Commands and examples – verify before use:&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /boot/config.txt&lt;br /&gt;
dtparam=spi=on&lt;br /&gt;
dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=2000000&lt;br /&gt;
sudo reboot&lt;br /&gt;
dmesg | grep -i &amp;#039;\(can\|spi\)&amp;#039;,&amp;#039;sudo ip link set can0 up type can bitrate 1000000&lt;br /&gt;
sudo ifconfig can0 txqueuelen 65536&lt;br /&gt;
sudo ifconfig can0 up&lt;br /&gt;
ifconfig&lt;br /&gt;
sudo apt-get install can-utils&lt;br /&gt;
sudo ip link set can0 down&lt;br /&gt;
sudo ip link set can0 type can bitrate 1000000 loopback on&lt;br /&gt;
candump can0&lt;br /&gt;
cansend can0 000#11.22.33.44&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes and version constraints ==&lt;br /&gt;
* On Bookworm systems only the lgpio library is available; bcm2835 and wiringPi cannot be installed or used.&lt;br /&gt;
* The oscillator setting depends on purchase date: pre-August 2019 boards use an 8 MHz oscillator; newer boards use 12 MHz.&lt;br /&gt;
* For very high baud rates, it is recommended to use the manual RS485 transceiver because transistor switching speed limits the automatic mode.&lt;br /&gt;
* When testing with a single module: enable loopback mode and verify with &amp;#039;candump&amp;#039;/&amp;#039;cansend&amp;#039;.&lt;br /&gt;
* Ensure both ends of the CAN bus have 120-ohm terminating resistors and that the bit rate is identical on both sides.&lt;br /&gt;
* If initialization fails: check the physical connection, confirm SPI and the MCP2515 kernel driver are enabled, and that a reboot was performed after configuration changes.&lt;br /&gt;
&lt;br /&gt;
== Source and revision record ==&lt;br /&gt;
* [https://www.waveshare.com/wiki/RS485_CAN_HAT RS485 CAN HAT - Waveshare Wiki]&lt;br /&gt;
* Source revision: 110789&lt;br /&gt;
* Captured: 2026-08-31T02:31:38+00:00&lt;br /&gt;
* SHA-256: &amp;lt;code&amp;gt;4a716167cb065406906af14e64473e3b0368b69f1e23823f75e1979a0bac156e&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>JWTechPublisher</name></author>
	</entry>
</feed>