<?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=WSAL17221_%E2%80%93_2-CH_RS485_HAT%2Fen</id>
	<title>WSAL17221 – 2-CH RS485 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=WSAL17221_%E2%80%93_2-CH_RS485_HAT%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.jw-tech.eu/index.php?title=WSAL17221_%E2%80%93_2-CH_RS485_HAT/en&amp;action=history"/>
	<updated>2026-10-23T21:59:00Z</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=WSAL17221_%E2%80%93_2-CH_RS485_HAT/en&amp;diff=2040&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=WSAL17221_%E2%80%93_2-CH_RS485_HAT/en&amp;diff=2040&amp;oldid=prev"/>
		<updated>2026-09-05T22:41:38Z</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 2-channel RS485 HAT adds two isolated RS485 ports to a Raspberry Pi. Control is via SPI using the SC16IS752 controller, while the SP3485 transceiver handles signal conversion. The board includes protection circuits (TVS, fuse, diodes) and supports manual or automatic transmit enable through a DIP switch.&lt;br /&gt;
&lt;br /&gt;
== Related products at JW Tech ==&lt;br /&gt;
* [https://shop.jw-tech.eu/p/WSAL17221 WSAL17221 – 2-Channel Isolated RS485 Expansion HAT for Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
== Technical overview ==&lt;br /&gt;
* Board size: 65 mm × 56.5 mm; mounting hole diameter 3.0 mm.&lt;br /&gt;
* Operating voltage: 3.3 V or 5 V via the standard 40-pin GPIO header of the Raspberry Pi.&lt;br /&gt;
* Communication: SPI interface; data rate 300 to 921600 baud in automatic mode.&lt;br /&gt;
* Manual transmission mode can reach up to 2 Mbit/s in tests.&lt;br /&gt;
* Two independent channels with separate enable pins EN1 and EN2: high = transmit, low = receive.&lt;br /&gt;
* Built-in protection: TVS diodes against overvoltage, resettable fuse and protection diodes against overcurrent/overvoltage.&lt;br /&gt;
* LEDs indicate power and transmitter/receiver status.&lt;br /&gt;
* SPI control pins are broken out on the board so that other host boards (e.g., Arduino) can be connected.&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/firmware/config.txt&lt;br /&gt;
dtoverlay=sc16is752-spi1,int_pin=24&lt;br /&gt;
sudo reboot&lt;br /&gt;
ls /dev&lt;br /&gt;
sudo apt-get install wiringpi&lt;br /&gt;
cd /tmp &amp;amp;&amp;amp; wget https://project-downloads.drogon.net/wiringpi-latest.deb &amp;amp;&amp;amp; sudo dpkg -i wiringpi-latest.deb&lt;br /&gt;
gpio -v&lt;br /&gt;
sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install python-pip &amp;amp;&amp;amp; sudo pip install RPi.GPIO &amp;amp;&amp;amp; sudo apt-get install python-serial&lt;br /&gt;
sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install python3-pip &amp;amp;&amp;amp; sudo pip3 install RPi.GPIO &amp;amp;&amp;amp; sudo apt-get install python3-serial&lt;br /&gt;
sudo apt-get install p7zip-full&lt;br /&gt;
wget https://files.waveshare.com/upload/4/44/2-CH_RS485_HAT_code.7z&lt;br /&gt;
7z x 2-CH_RS485_HAT_code.7z&lt;br /&gt;
sudo chmod 777 -R 2-CH_RS485_HAT&lt;br /&gt;
cd 2-CH_RS485_HAT/&lt;br /&gt;
cd c &amp;amp;&amp;amp; make clean &amp;amp;&amp;amp; make &amp;amp;&amp;amp; sudo ./main&lt;br /&gt;
cd python/examples &amp;amp;&amp;amp; sudo python main.py&lt;br /&gt;
sudo python3 test.py&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes and version constraints ==&lt;br /&gt;
* Exact pin mapping depends on actual soldering; int_pin must be adjusted accordingly.&lt;br /&gt;
* In semi-automatic (manual) mode, the green RXD or TXD LED may stay on continuously — this is normal.&lt;br /&gt;
* An additional USB-to-RS485 UART module is required for the test cases to observe the effect.&lt;br /&gt;
* If no other RS485 device is available, Channel 1 and Channel 2 can be connected directly (A→A, B→B).&lt;br /&gt;
* Line breaks must be sent, otherwise data will not be returned.&lt;br /&gt;
* Demo directory paths vary by installation; adjust them to your local environment.&lt;br /&gt;
* Simultaneous use with the 2-channel RS232 HAT is not supported according to the source.&lt;br /&gt;
* The 120 Ω termination resistor is used for termination in RS485 networks to reduce reflections.&lt;br /&gt;
&lt;br /&gt;
== Source and revision record ==&lt;br /&gt;
* [https://www.waveshare.com/wiki/2-CH_RS485_HAT 2-CH RS485 HAT - Waveshare Wiki]&lt;br /&gt;
* Source revision: 104982&lt;br /&gt;
* Captured: 2026-08-31T04:08:43+00:00&lt;br /&gt;
* SHA-256: &amp;lt;code&amp;gt;8c1e446646302e06908b29901bd13cc2ad3263a1d9d813730328adf4494f8790&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>JWTechPublisher</name></author>
	</entry>
</feed>