<?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=WSAL20524_%E2%80%93_RPi_Zero_Relay%2Fen</id>
	<title>WSAL20524 – RPi Zero Relay/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=WSAL20524_%E2%80%93_RPi_Zero_Relay%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.jw-tech.eu/index.php?title=WSAL20524_%E2%80%93_RPi_Zero_Relay/en&amp;action=history"/>
	<updated>2026-10-23T23:17:59Z</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=WSAL20524_%E2%80%93_RPi_Zero_Relay/en&amp;diff=1654&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=WSAL20524_%E2%80%93_RPi_Zero_Relay/en&amp;diff=1654&amp;oldid=prev"/>
		<updated>2026-09-05T22:34:11Z</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 6-channel relay module for the Raspberry Pi Zero provides CAN and RS485 interfaces, isolated protection features, and a 7–36 V DC power supply. It is aimed at developers who want to control relays via GPIO and use field buses.&lt;br /&gt;
&lt;br /&gt;
== Related products at JW Tech ==&lt;br /&gt;
* [https://shop.jw-tech.eu/p/WSAL20524 WSAL20524 – Industrial 6-ch Relay Module for Raspberry Pi Zero, RS485/CAN, Isolated Protections]&lt;br /&gt;
* [https://shop.jw-tech.eu/p/WSAL20863 WSAL20863 – Industrial 6-ch Relay Module for Raspberry Pi Zero, RS485/CAN, Isolated Protections]&lt;br /&gt;
&lt;br /&gt;
== Technical overview ==&lt;br /&gt;
* Supply voltage: 7–36 V DC via screw terminals or round jack&lt;br /&gt;
* CAN controller: MCP2515 over SPI; transceiver: SN65HVD230&lt;br /&gt;
* RS485 transceiver: SP3485EN, half-duplex over UART&lt;br /&gt;
* Six relay channels are driven via GPIO 5, 6, 13, 16, 19 and 20&lt;br /&gt;
* Contact rating per channel: up to 10 A at 250 V AC or 30 V DC&lt;br /&gt;
* Optocoupler isolation separates the relay’s external high-voltage side from the control chip&lt;br /&gt;
* TVS diode protects against surge voltages and transient spikes&lt;br /&gt;
* Switches for 120 Ω terminators on the CAN and RS485 buses&lt;br /&gt;
* Dimensions: 123 mm × 87.92 mm; mounting hole diameter 3.5 mm&lt;br /&gt;
* 40-pin GPIO header fits Raspberry Pi Zero boards with pre-soldered pinheaders&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;
git clone https://github.com/WiringPi/WiringPi &amp;amp;&amp;amp; cd WiringPi &amp;amp;&amp;amp; ./build &amp;amp;&amp;amp; gpio -v&lt;br /&gt;
sudo apt-get install python3-serial python3-can python3-gpiozero&lt;br /&gt;
python3 -m venv myenv &amp;amp;&amp;amp; source myenv/bin/activate &amp;amp;&amp;amp; pip3 install pyserial python-can gpiozero&lt;br /&gt;
wget https://www.waveshare.net/w/upload/2/2f/RPi_Zero_Relay_Code.7z &amp;amp;&amp;amp; 7z x RPi_Zero_Relay_Code.7z -r -o./RPi_Zero_Relay_Code &amp;amp;&amp;amp; sudo chmod 777 -R RPi_Zero_Relay_Code/&lt;br /&gt;
cd RPi_Zero_Relay_Code/Relay/wiringPi/ &amp;amp;&amp;amp; make clean &amp;amp;&amp;amp; make &amp;amp;&amp;amp; sudo ./relay&lt;br /&gt;
cd RPi_Zero_Relay_Code/Relay/python/ &amp;amp;&amp;amp; python3 relay.py&lt;br /&gt;
sudo nano /boot/config.txt # add: dtparam=spi=on ; dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25,spimaxfrequency=3000000&lt;br /&gt;
sudo reboot&lt;br /&gt;
dmesg | grep -i &amp;#039;\(can\|spi\)&amp;#039;&lt;br /&gt;
cd RPi_Zero_Relay_Code/CAN/wiringPi/receive/ &amp;amp;&amp;amp; make clean &amp;amp;&amp;amp; make &amp;amp;&amp;amp; sudo ./can_receive&lt;br /&gt;
cd RPi_Zero_Relay_Code/CAN/wiringPi/send/ &amp;amp;&amp;amp; make clean &amp;amp;&amp;amp; make &amp;amp;&amp;amp; sudo ./can_send&lt;br /&gt;
cd RPi_Zero_Relay_Code/CAN/python/ &amp;amp;&amp;amp; sudo python can_reveive.py &amp;amp;&amp;amp; sudo python can_send.py&lt;br /&gt;
sudo raspi-config # Interfacing Options -&amp;gt; Serial: disable shell, enable hardware serial port&lt;br /&gt;
echo &amp;quot;enable_uart=1&amp;quot; &amp;gt;&amp;gt; /boot/config.txt &amp;amp;&amp;amp; sudo reboot&lt;br /&gt;
cd RPi_Zero_Relay_Code/485/WiringPi/receive &amp;amp;&amp;amp; make clean &amp;amp;&amp;amp; make &amp;amp;&amp;amp; sudo ./485_receive&lt;br /&gt;
cd RPi_Zero_Relay_Code/485/WiringPi/send &amp;amp;&amp;amp; make clean &amp;amp;&amp;amp; make &amp;amp;&amp;amp; sudo ./485_send&lt;br /&gt;
cd RPi_Zero_Relay_Code/485/python/ &amp;amp;&amp;amp; sudo python receive.py &amp;amp;&amp;amp; sudo python send.py&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes and version constraints ==&lt;br /&gt;
* The CAN demo assumes two RPi-Zero-Relay modules; other CAN devices require H-H/L-L wiring and matching baud rates (demo default: 100 kbit/s).&lt;br /&gt;
* If frame loss occurs during sustained data transmission, reducing the baud rate may help.&lt;br /&gt;
* On newer systems, a Python virtual environment is recommended; missing libraries may produce warnings that do not block execution.&lt;br /&gt;
* Exact demo file names and paths must match the downloaded archive; mismatches can cause runtime errors.&lt;br /&gt;
* The guide references external datasheets and demo files whose contents were not verified here.&lt;br /&gt;
&lt;br /&gt;
== Source and revision record ==&lt;br /&gt;
* [https://www.waveshare.com/wiki/RPi_Zero_Relay RPi Zero Relay - Waveshare Wiki]&lt;br /&gt;
* Source revision: 94074&lt;br /&gt;
* Captured: 2026-09-02T03:57:38+00:00&lt;br /&gt;
* SHA-256: &amp;lt;code&amp;gt;e8e08a6cfa8ab1978ad4cd5a78844dbbdf92445087b58dc5ecf0651a6b1e1304&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>JWTechPublisher</name></author>
	</entry>
</feed>