<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kamamilabs.com/index.php?action=history&amp;feed=atom&amp;title=KAmod_I2C-Mini_Out_8</id>
	<title>KAmod I2C-Mini Out 8 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kamamilabs.com/index.php?action=history&amp;feed=atom&amp;title=KAmod_I2C-Mini_Out_8"/>
	<link rel="alternate" type="text/html" href="https://wiki.kamamilabs.com/index.php?title=KAmod_I2C-Mini_Out_8&amp;action=history"/>
	<updated>2026-04-29T13:25:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.kamamilabs.com/index.php?title=KAmod_I2C-Mini_Out_8&amp;diff=5869&amp;oldid=prev</id>
		<title>Grzegorzbecker: Created page with &quot;__jzpdf__ ===== Description ===== &lt;b&gt;KAmod I2C-Mini Out8 - Expander 8 low-power outputs controlled by I2C with MCP23008&lt;/b&gt;&lt;br&gt; &lt;br&gt; The KAmod I2C-Mini Out8 module contains 8 outputs with low-power N-MOSFET transistors, with a maximum output current of 1 A and a maximum voltage of 50 V. Thanks to the use of the MCP23008 system, control is via the I2C bus. &lt;center&gt; center &lt;/center&gt;  ===== Basic features and parameters =====...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.kamamilabs.com/index.php?title=KAmod_I2C-Mini_Out_8&amp;diff=5869&amp;oldid=prev"/>
		<updated>2025-06-04T05:48:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__jzpdf__ ===== Description ===== &amp;lt;b&amp;gt;KAmod I2C-Mini Out8 - Expander 8 low-power outputs controlled by I2C with MCP23008&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt; &amp;lt;br&amp;gt; The KAmod I2C-Mini Out8 module contains 8 outputs with low-power N-MOSFET transistors, with a maximum output current of 1 A and a maximum voltage of 50 V. Thanks to the use of the MCP23008 system, control is via the I2C bus. &amp;lt;center&amp;gt; &lt;a href=&quot;/index.php?title=File:KAmodI2CminiOut8_1.jpg&quot; title=&quot;File:KAmodI2CminiOut8 1.jpg&quot;&gt;none|900px|thumb|center&lt;/a&gt; &amp;lt;/center&amp;gt;  ===== Basic features and parameters =====...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__jzpdf__&lt;br /&gt;
===== Description =====&lt;br /&gt;
&amp;lt;b&amp;gt;KAmod I2C-Mini Out8 - Expander 8 low-power outputs controlled by I2C with MCP23008&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
The KAmod I2C-Mini Out8 module contains 8 outputs with low-power N-MOSFET transistors, with a maximum output current of 1 A and a maximum voltage of 50 V. Thanks to the use of the MCP23008 system, control is via the I2C bus.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodI2CminiOut8 1.jpg|none|900px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Basic features and parameters =====&lt;br /&gt;
* 8 outputs, which in the active state provide ground (GND) of the connected power supply&lt;br /&gt;
* Outputs with a maximum output current of 1 A and a maximum voltage of 50 V&lt;br /&gt;
* Outputs equipped with protective diodes - allow powering small inductive loads, such as relays, solenoid valves, electric motors&lt;br /&gt;
* Contains an expander type MCP23008&lt;br /&gt;
* Control via I2C interface with a clock speed of max. 1 MHz&lt;br /&gt;
* 3 address lines allow connecting 8 modules to one I2C bus&lt;br /&gt;
* Power supply of the control part: 3...5 V; power supply of outputs: 3...50 V&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===== Standard Equipment =====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|Code&lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;KAmod I2C-Mini Out8&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&lt;br /&gt;
* Assembled and started module&lt;br /&gt;
* 1 x straight goldpin header 12-pin raster 2.54 mm&lt;br /&gt;
* 1 x straight goldpin header 8-pin raster 2.54 mm&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodI2CminiOut8 3.jpg|none|900px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Schematic =====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmod_I2C-Mini_Out_8_sch.jpg|none|900px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Output Layout =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 1000px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;Designation&amp;lt;/b&amp;gt;&lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;Function&amp;lt;/b&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;J2, 0...8&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&lt;br /&gt;
*8 outputs with active low state (power supply ground, GND)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;J2, VCC&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&lt;br /&gt;
*power supply input of output circuits, positive pole&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;J2, G&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&lt;br /&gt;
*output circuit power supply input, negative pole (GND)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The module outputs are led out as solder points with holes, arranged with a standard 2.54 mm pitch, right at the edge of the board. They allow for soldering wires or goldpins. The pin assignment is shown in the figure below.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Each output is built from an N-MOSFET transistor and a protective diode. The active output supplies the power supply ground (G - GND), the inactive output is in a high impedance state (HiZ). The maximum output current cannot exceed 1 A, and the maximum output voltage cannot exceed 50 V. Thanks to the use of a protective diode, the outputs can directly control inductive loads, e.g. relays, solenoid valves, electric motors, if their parameters do not exceed the maximum current or voltage.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
The output circuit should be connected to the power supply of the components connected to the outputs - VCC - positive pole, G - negative pole.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmod_I2C-Mini_Out_8_out.jpg|none|600px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Control signals =====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 1000px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;Designation&amp;lt;/b&amp;gt;&lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;Function&amp;lt;/b&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&amp;lt;b&amp;gt;SD (J1)&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| SDA (data) signal of the I2C interface&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&amp;lt;b&amp;gt;SC (J1)&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| SCL (clock) signal of the I2C interface&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&amp;lt;b&amp;gt;RST (J1)&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| Input that resets the system&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&amp;lt;b&amp;gt;A0, A1, A2 (J1)&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| Inputs that allow you to set the I2C interface address (bits 2, 1, 0). By default, set to logical 0.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The KAmod I2C-Mini Out8 module is controlled via the I2C interface, which can be clocked with a 100 kHz, 400 kHz or 1 MHz clock signal. The functions of the pins on the J1 connector are as follows:&lt;br /&gt;
* The I2C control interface signals are SD – SDA, and SC – SCL. They are not equipped with pull-up resistors – the control system must contain the appropriate elements.&lt;br /&gt;
* Inputs A0, A1, A2 allow you to set the address (bits no. 2, 1 and 0) that the module connected to the I2C interface will have. By default, these inputs are connected to ground via resistors (pull-down) and assume logical 0 values. Connecting the positive power supply to inputs A0/A1/A2 sets logical 1 for the lowest address bits.&lt;br /&gt;
&lt;br /&gt;
* All available I2C interface addresses are in the range 0x20...0x27.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Detailed information on communication and configuration of the MCP23008 is available in the technical documentation of this system.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Additional signals are:&lt;br /&gt;
* The reset signal (RST) is used to reset the MCP23008 on the KAmod I2C-Mini Out8 board, which restores all settings to their initial state.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmod_I2C-Mini_Out_8_syg.jpg|none|600px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Power =====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 1000px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;Designation&amp;lt;/b&amp;gt;&lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;Function&amp;lt;/b&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&lt;br /&gt;
*&amp;lt;b&amp;gt;V+ (J1)&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
*&amp;lt;b&amp;gt;GND (J1)&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&lt;br /&gt;
*control circuit power supply input, positive pole&amp;lt;br&amp;gt;&lt;br /&gt;
*control circuit power supply input, negative pole (GND)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&lt;br /&gt;
*&amp;lt;b&amp;gt;VCC (J2)&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
*&amp;lt;b&amp;gt;G (J2)&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|&lt;br /&gt;
*power input for output circuits, positive pole&amp;lt;br&amp;gt;&lt;br /&gt;
*power input for output circuits, negative pole (GND)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The control circuit of the KAmod I2C-Mini Out8 module can be powered by a DC voltage of 3...5 V, connected to the V+ and GND pins on the J1 connector.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
The output circuit of the KAmod I2C-Mini Out8 module can be powered by a DC voltage of 3...50 V, connected to the VCC and G pins on the J2 connector.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmod_I2C-Mini_Out_8_pwr.jpg|none|600px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Dimensions =====&lt;br /&gt;
The dimensions of the KAmod I2C-Mini Out8 board are 31x23.5 mm. There are 2 mounting holes on the board with a diameter of 3.2 mm.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmod_I2C-Mini_Out_8_wym.jpg|none|650px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Test program =====&lt;br /&gt;
The test program was written in the Arduino environment for the KAmodESP32 POW RS485 board. The KAmod I2C-Mini Out8 module was connected via the I2C interface.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;arduino&amp;quot; line&amp;gt;&lt;br /&gt;
#include &amp;lt;Wire.h&amp;gt;&lt;br /&gt;
//#include &amp;lt;Adafruit_MCP23X17.h&amp;gt;&lt;br /&gt;
#include &amp;lt;Adafruit_MCP23X08.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
//LED&lt;br /&gt;
#define LED_PIN         2 &lt;br /&gt;
#define MY_DELAY        2000&lt;br /&gt;
#define TEST_LED_ON     1&lt;br /&gt;
#define TEST_LED_OFF    0&lt;br /&gt;
&lt;br /&gt;
//I2C&lt;br /&gt;
#define I2C_SDA         33&lt;br /&gt;
#define I2C_SCL         32&lt;br /&gt;
#define I2C_FREQ        100000&lt;br /&gt;
#define MCP23008_ARD    0x20&lt;br /&gt;
&lt;br /&gt;
TwoWire I2Cbus = TwoWire(0);&lt;br /&gt;
Adafruit_MCP23X08 MCPIO;&lt;br /&gt;
int i;&lt;br /&gt;
&lt;br /&gt;
//-----------------------------------------------------------------&lt;br /&gt;
void setup() {&lt;br /&gt;
  Serial.begin(115200);&lt;br /&gt;
  Serial.println();&lt;br /&gt;
  Serial.println(&amp;quot;Hello. KAmod I2C Mini Out 8 test&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  pinMode(LED_PIN, OUTPUT);&lt;br /&gt;
  digitalWrite(LED_PIN, HIGH);&lt;br /&gt;
&lt;br /&gt;
  delay(500);&lt;br /&gt;
  while(!I2Cbus.begin(I2C_SDA, I2C_SCL, I2C_FREQ)){&lt;br /&gt;
    Serial.println(&amp;quot;I2C init failed...&amp;quot;);&lt;br /&gt;
    delay(500);&lt;br /&gt;
  }&lt;br /&gt;
  while (!MCPIO.begin_I2C(MCP23008_ARD, &amp;amp;I2Cbus)) {&lt;br /&gt;
    Serial.println(&amp;quot;MCP init failed...&amp;quot;);&lt;br /&gt;
    delay(500);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  Serial.println(&amp;quot;I2C init OK&amp;quot;);&lt;br /&gt;
  delay(100);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//-----------------------------------------------------------------&lt;br /&gt;
void loop() {&lt;br /&gt;
  if (i &amp;amp; 1){&lt;br /&gt;
    digitalWrite(LED_PIN, TEST_LED_ON);&lt;br /&gt;
  } else {&lt;br /&gt;
    digitalWrite(LED_PIN, TEST_LED_OFF);&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  Serial.print(&amp;quot;Out: &amp;quot;);&lt;br /&gt;
  Serial.println(i);&lt;br /&gt;
&lt;br /&gt;
  MCPIO.pinMode(i, OUTPUT);&lt;br /&gt;
  MCPIO.digitalWrite(i, TEST_LED_ON);&lt;br /&gt;
  delay(100);&lt;br /&gt;
  MCPIO.pinMode(i, OUTPUT);&lt;br /&gt;
  MCPIO.digitalWrite(i, TEST_LED_OFF);&lt;br /&gt;
  delay(100);&lt;br /&gt;
  &lt;br /&gt;
  i++;&lt;br /&gt;
  if (i  &amp;gt;= 8){&lt;br /&gt;
    i = 0;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Links =====&lt;br /&gt;
*[https://wiki.kamamilabs.com/images/1/12/MCP23008.pdf DatasheetMCP23008]&lt;br /&gt;
*[https://github.com/KAMAMI-Labs/KAmod-I2C-Mini-Out8.git Sample programs]&lt;br /&gt;
*[https://wiki.kamamilabs.com/images/4/4a/KAmod_I2C_Out8.zip CAD Model (STEP)]&lt;/div&gt;</summary>
		<author><name>Grzegorzbecker</name></author>
	</entry>
</feed>