<?xml version="1.0" encoding="UTF-8"?>
<!--Generated at Sat, 18 Apr 2026 06:16:25 +0200-->
<rss version="2.0">
 <channel>
  <title>[elecena] M5Stack 4IN8OUT Multi-channel DC Drive Module (STM32F030) - zmiany ceny</title>
  <description>The 4IN8OUT Multi-channel DC Drive Module from M5Stack is a 4-Channel Passive Input/Switch + 8-Channel MOS Drive Output drive module.
The module adopts STM32F030 as the I2C IO chip and supports 9-24V DC input, with internal DC-DC circuitry to 5V.
Features

* Compatible with Basic/Fire/Core2

* Adopt STM32F030 as the IO chip, I2C communication, I2C address is changeable by modifying the register

* 8-channel MOS Drive circuitry shares the same VCC, channel load &amp;lt;1A

* 4-channel Passive Input share the same GND, no active signal or &amp;gt;5V signal allowed

* With internal MP1584, 9~24V -&amp;gt; 5V DC-DC converter

Package Contents

* 1x 4IN8OUT Multi-channel DC Drive Module

* 13x 2-pin Terminals

Specifications

Input Voltage
9~24V

Output Channel
8

Input Channel
4

Output Load
&amp;lt;1A each Channel

Communication Interface
I2C

I2C Address
Default 0x45, change by modifying register 0xF0

Net Weight
21.9g

Gross Weight
52.5g

Product Size
54*54*13mm

Package Size
125*68*23mm

Resources

* Product Documentation

* Schematic

Pinout

M5Core
GPIO22
GPIO21
5V
GND

4IN8OUT MODULE 13.2
SCL
SDA
5V
GND

Arduino Example
#include
#include &quot;MODULE4IN8OUT.h&quot;

MODULE4IN8OUT module;

int I2Cdevscan();

void setup() {

M5.begin(1,1,1,1); // Init M5Stack. 初始化M5Stack

// while (1) {

// I2Cdevscan();

// delay(1000);

// }

while (!module.begin(&amp;amp;Wire, 21, 22, MODULE4IN8OUTADDR)) {

Serial.println(&quot;4IN8OUT INIT ERROR&quot;);

M5.Lcd.println(&quot;4IN8OUT INIT ERROR&quot;);

I2Cdevscan();

delay(1000);

};

Serial.println(&quot;4IN8OUT INIT SUCCESS&quot;);
}

// void loop() {

// }

long interval = 0;
bool level = false;

void loop() {

for (uint8t i = 0; i &amp;lt; 4; i++) {

if (module.getInput(i) != 1) {

// M5.Lcd.fillRect(60 + 60 * i, 0, 25, 25, TFTBLACK);

M5.Lcd.fillRect(60 + 60 * i, 0, 25, 25, TFTGREEN);

} else {

// M5.Lcd.fillRect(60 + 60 * i, 0, 25, 25, TFTBLACK);

// M5.Lcd.drawRect(60 + 60 * i, 0, 25, 25, TFTGREEN);

M5.Lcd.fillRect(60 + 60 * i, 0, 25, 25, TFTRED);

}

M5.Lcd.drawString(&quot;IN&quot; + String(i), 40 + 60 * i, 5);

}

M5.Lcd.drawString(&quot;4IN8OUT MODULE&quot;, 60, 80, 4);

// M5.Lcd.drawString(&quot;FW VERSION:&quot; + String(module.getVersion()), 70, 120, 4);

if (millis() - interval &amp;gt; 1000) {

interval = millis();

level = !level;

for (uint8t i = 0; i &amp;lt; 8; i++) {

module.setOutput(i, level);

if (level) {

M5.Lcd.fillRect(20 + 35 * i, 200, 25, 25, TFTBLACK);

M5.Lcd.fillRect(20 + 35 * i, 200, 25, 25, TFTBLUE);

} else {

M5.Lcd.fillRect(20 + 35 * i, 200, 25, 25, TFTBLACK);

M5.Lcd.drawRect(20 + 35 * i, 200, 25, 25, TFTBLUE);

}

M5.Lcd.drawString(&quot;OUT&quot; + String(i), 18 + 35 * i, 180);

// delay(50);

}

}

// if (M5.BtnB.wasPressed()) {

// if (module.setDeviceAddr(0x66)) {

// Serial.println(&quot;Update Addr: 0x66&quot;);

// }

// }

// M5.update();

delay(500);
}

int I2Cdevscan() {

uint8t error, address;

int nDevices;

Serial.println(&quot;[I2CSCAN] device scanning...&quot;);

nDevices = 0;

for (address = 1; address &amp;lt; 127; address++ ) {

// The i2cscanner uses the return value of

// the Write.endTransmisstion to see if

// a device did acknowledge to the address.

Wire.beginTransmission(address);

error = Wire.endTransmission();

if (error == 0) {

Serial.print(&quot;[I2CSCAN]: device found at address 0x&quot;);

if (address &amp;lt; 16)

Serial.print(&quot;0&quot;);

Serial.print(address, HEX);

Serial.println(&quot; !&quot;);

nDevices++;

}

else if (error == 4) {

Serial.print(&quot;[I2CSCAN]: unknow error at address 0x&quot;);

if (address &amp;lt; 16)

Serial.print(&quot;0&quot;);

Serial.println(address, HEX);

}

}

Serial.print(&quot;[I2CSCAN]:&quot;);

Serial.printf(&quot; %d devices was found\r\n&quot;, nDevices);

return nDevices;
}</description>
  <item>
   <title>M5Stack 4IN8OUT Multi-channel DC Drive Module (STM32F030) - 13.12 GBP</title>
   <link>https://elecena.pl/product/22727658/m5stack-4in8out-multi-channel-dc-drive-module-stm32f030</link>
   <pubDate>2023-03-07</pubDate>
  </item>
  <item>
   <title>M5Stack 4IN8OUT Multi-channel DC Drive Module (STM32F030) - 15.00 GBP</title>
   <link>https://elecena.pl/product/22727658/m5stack-4in8out-multi-channel-dc-drive-module-stm32f030</link>
   <pubDate>2023-12-27</pubDate>
  </item>
  <item>
   <title>M5Stack 4IN8OUT Multi-channel DC Drive Module (STM32F030) - 18.00 GBP</title>
   <link>https://elecena.pl/product/22727658/m5stack-4in8out-multi-channel-dc-drive-module-stm32f030</link>
   <pubDate>2024-09-18</pubDate>
  </item>
  <item>
   <title>M5Stack 4IN8OUT Multi-channel DC Drive Module (STM32F030) - 14.40 GBP</title>
   <link>https://elecena.pl/product/22727658/m5stack-4in8out-multi-channel-dc-drive-module-stm32f030</link>
   <pubDate>2024-11-29</pubDate>
  </item>
  <item>
   <title>M5Stack 4IN8OUT Multi-channel DC Drive Module (STM32F030) - 18.00 GBP</title>
   <link>https://elecena.pl/product/22727658/m5stack-4in8out-multi-channel-dc-drive-module-stm32f030</link>
   <pubDate>2024-11-30</pubDate>
  </item>
  <item>
   <title>M5Stack 4IN8OUT Multi-channel DC Drive Module (STM32F030) - 16.30 GBP</title>
   <link>https://elecena.pl/product/22727658/m5stack-4in8out-multi-channel-dc-drive-module-stm32f030</link>
   <pubDate>2025-04-29</pubDate>
  </item>
  <item>
   <title>M5Stack 4IN8OUT Multi-channel DC Drive Module (STM32F030) - 16.40 GBP</title>
   <link>https://elecena.pl/product/22727658/m5stack-4in8out-multi-channel-dc-drive-module-stm32f030</link>
   <pubDate>2025-08-06</pubDate>
  </item>
  <item>
   <title>M5Stack 4IN8OUT Multi-channel DC Drive Module (STM32F030) - 13.12 GBP</title>
   <link>https://elecena.pl/product/22727658/m5stack-4in8out-multi-channel-dc-drive-module-stm32f030</link>
   <pubDate>2025-11-28</pubDate>
  </item>
  <item>
   <title>M5Stack 4IN8OUT Multi-channel DC Drive Module (STM32F030) - 16.40 GBP</title>
   <link>https://elecena.pl/product/22727658/m5stack-4in8out-multi-channel-dc-drive-module-stm32f030</link>
   <pubDate>2025-11-29</pubDate>
  </item>
 </channel>
</rss>
