<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=Raspberry_Pi_Relay</id>
	<title>Raspberry Pi Relay - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=Raspberry_Pi_Relay"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Raspberry_Pi_Relay&amp;action=history"/>
	<updated>2026-07-22T00:25:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=Raspberry_Pi_Relay&amp;diff=20067&amp;oldid=prev</id>
		<title>Chao at 08:15, 5 July 2018</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Raspberry_Pi_Relay&amp;diff=20067&amp;oldid=prev"/>
		<updated>2018-07-05T08:15:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== How to use ==&lt;br /&gt;
* Make sure your RPI has IIC installed, see [[RPI_Hardware]] IIC section&lt;br /&gt;
* Plug the board on RPI 26P connector directly&lt;br /&gt;
* Test the board by running following command: for MCP23008, default IIC address is 0x20, you can see the image on [[RPI]] page.&lt;br /&gt;
 sudo i2cdetect -y 1&lt;br /&gt;
* Copy code: Make a new py file, paste the following code and chmod it for excute right&lt;br /&gt;
 nano relay.py&lt;br /&gt;
 chmod +x relay.py&lt;br /&gt;
* If the demo code can not run properly, change the line value 5,8 to 1,4 at &amp;quot;for x in range(5,8):&amp;quot;&lt;br /&gt;
* Relay and relevant LEDs will on and off in turns when running this demo code&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/Edragon/RPI Demo code please find here. you know which folder.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Schematic ==&lt;br /&gt;
[[File:RPI relay shield.png|thumbnail]]&lt;br /&gt;
* See shematic on the right&lt;br /&gt;
&lt;br /&gt;
== Jumpers and Toggle switch ==&lt;br /&gt;
* Left jumper to select VCC on either 5V or 3v3, please keep it at 5V for relay use.&lt;br /&gt;
* Right jumper for CD pins of ULN2803, keep it on as default.&lt;br /&gt;
* Toggle switch from top to bottom are A2, A1, A0 and NC.&lt;br /&gt;
&lt;br /&gt;
[[category: RPI Hardware]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>