This gateway is based on the STM32F103CB(8)T6 MCU. A fairly well-known WIZnet chip, the W5500, acts as an Ethernet chip. The transport of this gateway in the Mysensors network is the wired RS485 interface. The chip - MAX13488EESA + T was chosen as the RS485 driver, including due to the presence of the automatic selection of the direction of reception / transmission.
The heart of the gateway is the STM32F103CBT6 MCU in a 48LQFN package. MCU built on the core of the Cortex-M3, has 128KB of internal flash memory and 20KB of RAM. The nominal MCU frequency is 72 MHz, but if you do not use the built-in USB port, then the frequency can be overclocked to 128 MHz, it works quite stably on it. MCU is powered by 3.3V. For full operation, you need two quartz, at 8MHz and 32.768KHz. There is a SWD interface for programming and debugging. MCU can also be replaced by STM32F103C8T6, it currently passes through memory quite well.
Ethernet chip W5500. Inside, it has a Cortex M0 core, for communication with the outside world there is an SPI port (speed up to 80 MHz). At 100Mbps, Full Link has a consumption of 132mA. There is support for Wake on LAN, it can control 4 LEDs 4 (SPD / DUP / ACT / Link) to indicate its mode. In the presence of 32 kB of RAM buffer memory to support the process of transmitting TCP / IP packets, hardware provides up to 8 independent TCP / UDP sockets (channel connections). The hardware supports the following switching protocols for processing a wired TCP / IP stack: TCP, UDP, MAC, ICMP, IPv4, ARP, IGMP, PPPoE. Operating temperature range -40 ... 85 ° C. The supply voltage is 3.3V.
And finally, the RS485 driver is MAX13488EESA + T. Integrated circuit in the case of SOIC-8 150mil. Data transfer rate up to 16 Mb / s. Operating voltage - 5V, current consumption - 4.5 mA. Allows you to connect up to 128 nodes on one RS485 line. Of the main features is the ability to turn on the automatic determination of the direction of reception / transmission, i.e. This driver can connect directly to the UART port and that's it! No extra gestures are required.
A detailed article in Russian is available here - https://habr.com/ru/post/488408. The author lives here - https://t.me/mysensors_rus.
Good luck!
Comment | Description | Designator | Footprint | LibRef | Quantity | HelpURL |
---|---|---|---|---|---|---|
Ceramic capacitor, 100pF, X7R, ±10%, 16V, 0603, -55...+125°C | C1 | CAP: 0603 | Ceramic_0603 | 1 | https://www.digikey.com/product-detail/en/yageo/CC0603KRX7R7... | |
Ceramic capacitor, 100nF, Y5V, ±10%, 50V, 0603, -55...+125°C | C2, C3, C4, C5, C6, C28, C29, C30, C31 | CAP: 0603 | Ceramic_0603 | 9 | https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capac... | |
Ceramic capacitor, 20pF, X7R, ±10%, 6V, 0603, -55...+125°C | C7, C9 | CAP: 0603 | Ceramic_0603 | 2 | https://www.digikey.com/product-detail/en/yageo/CC0603KRX7R7... | |
Ceramic capacitor, 12pF, C0G, ±5%, 50V, 0603, -55...+125°C | C8, C10 | CAP: 0603 | Ceramic_0603 | 2 | https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capac... | |
Ceramic capacitor, 1μF, X5R, ±10%, 16V, 0603, -55...+125°C | C11 | CAP: 0603 | Ceramic_0603 | 1 | https://www.lcsc.com/datasheet/lcsc_datasheet_Vishay-Interte... | |
Ceramic capacitor, 4.7μF, X5R, ±10%, 6.3V, 0603, -55...+125°C | C12 | CAP: 0603 | Ceramic_0603 | 1 | https://www.lcsc.com/datasheet/lcsc_datasheet_Murata-Electro... | |
Ceramic capacitor, 6.8nF, X7R, ±10%, 50V, 0805, -55...+125°C | C13, C14 | CAP: 0805 | Ceramic_0805 | 2 | https://www.digikey.com/product-detail/en/yageo/CC0805KRX7R7... | |
Ceramic capacitor, 10nF, X7R, ±10%, 25V, 0603, -55...+125°C | C15 | CAP: 0603 | Ceramic_0603 | 1 | https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capac... | |
Ceramic capacitor, 18pF, C0G, ±5%, 50V, 0603, -55...+125°C | C16, C17 | CAP: 0603 | Ceramic_0603 | 2 | https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capac... | |
Tantalum capacitor, 10μF, 16V, ±10%, 0.5Ohm, case B (3528), -55...+125°C | C18 | CAP: TANTAL-A | Tantal_B | 1 | https://www.lcsc.com/product-detail/Tantalum-Capacitors_AVX_... | |
Ceramic capacitor, 0.1μF, Y5V, ±20%, 50V, 0603, -20...+80°C | C19, C22, C24, C25, C32 | CAP: 0603 | Ceramic_0603 | 5 | https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capac... | |
Ceramic capacitor, 22nF, X7R, ±10%, 16V, 0603, -55...+125°C | C20 | CAP: 0603 | Ceramic_0603 | 1 | https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capac... | |
Ceramic capacitor, 4.7μF, X7R, ±10%, 6.3V, 0603, -55...+125°C | C21 | CAP: 0603 | Ceramic_0603 | 1 | https://www.lcsc.com/product-detail/Others_Samsung-Electro-M... | |
Ceramic capacitor, 10nF, X7R, ±10%, 16V, 0603, -55...+125°C | C23 | CAP: 0603 | Ceramic_0603 | 1 | https://www.lcsc.com/product-detail/Multilayer-Ceramic-Capac... | |
Tantalum capacitor, 100μF, 6.3V, ±20%, , case B (3528), -55...+125°C | C26, C27 | CAP: TANTAL-A | Tantal_B | 2 | https://www.lcsc.com/product-detail/Tantalum-Capacitors_KEME... | |
IC RS485 transceiver, 16Mbps, Half-duplex, 4.5...5.5V, -40...+85°C, 8-SOIC | RS485 | D2 | ISO7321CDR | MAX13488EESA+T | 1 | https://www.lcsc.com/datasheet/lcsc_datasheet_Maxim-Integrat... |
IC microcontroller, 32-Bit, Cortex-M3, 72MHz, 64KB, 20KB, 2...3.6V, -40...+85°C, 48-LQFP | Cortex-M3 | D4 | 48-LQFP | STM32F103C8T6 | 1 | https://www.digikey.com/product-detail/en/stmicroelectronics... |
IC memory, EEPROM, 64KB (8192x8), 400 kHz, I2C, 1.7...5.5V, -40...+85°C, 8-SOIC | EEPROM | D5 | 8-SOIC | AT24C64N | 1 | http://ww1.microchip.com/downloads/en/devicedoc/doc0336.pdf |
Linear voltage regulator, input 3.9...18V, 0.6V, output 3.3V, 1.2A, -40...+85°C, SOT223 | Linear voltage regulator | D6 | SOT223 | LDL1117S33R | 1 | https://www.lcsc.com/product-detail/Others_STMicroelectronic... |
RGB led: 3528 | D7 | RGB Led: 3528 | RGB led: 3528 | 1 | https://www.aliexpress.ru/item/Wholesale-100pcs-RGB-POWER-TO... | |
HDC1080DMBR | Integrated Circuit | IC1 | SON100P300X300X80-7N-D | HDC1080DMBR | 1 | |
W5500 | IC2 | 48-LQFP | W5500 | 1 | ||
Filter beads, , , 0603, 1A, -55...+125°C | L1 | IND: 0603 | CBW160808U121T | 1 | https://www.lcsc.com/product-detail/Ferrite-Beads-And-Chips_... | |
Resistor film, 0R, ±5%, 0805, 0.125W, -55...+125°C | R1, R33, R34, R35, R37 | RES: 0805 | Resistor_0805 | 5 | https://www.digikey.com/product-detail/en/yageo/RC0805JR-071... | |
Resistor film, 120R, ±0.1%, 1206, 0.1W, -55...+125°C | R2 | RES: 1206 | Resistor_1206 | 1 | https://www.lcsc.com/ | |
Resistor film, 4.7k, ±5%, 0603, 0.1W, -55...+125°C | R3, R6, R36 | RES: 0603 | Resistor_0603 | 3 | ||
Resistor film, 1k, ±5%, 0603, 0.1W, -55...+125°C | R4, R20, R21 | RES: 0603 | Resistor_0603 | 3 | ||
Resistor film, 10k, ±5%, 0603, 0.1W, -55...+125°C | R5, R25, R27, R28, R29 | RES: 0603 | Resistor_0603 | 5 | ||
Resistor film, 1.5k, , 0603, 0.1W, -55...+125°C | R7 | RES: 0603 | Resistor_0603 | 1 | ||
Resistor film, 18R, , 0603, 0.1W, -55...+125°C | R8, R9 | RES: 0603 | Resistor_0603 | 2 | ||
Resistor film, 1M, ±1%, 0603, 1/16W, -55...+125°C | R10 | RES: 0603 | Resistor_0603 | 1 | https://www.lcsc.com/product-detail/Others_Viking-Tech-AR03F... | |
Resistor film, 49R9, ±1%, 0603, 0.1W, -55...+125°C | R11, R12, R17, R18 | RES: 0603 | Resistor_0603 | 4 | https://www.lcsc.com/product-detail/Others_Viking-Tech-ARG03... | |
Resistor film, 0R, ±5%, 0603, 0.1W, -55...+125°C | R13, R14, R15, R16 | RES: 0603 | Resistor_0603 | 4 | https://www.digikey.com/product-detail/en/yageo/RC0603JR-071... | |
Resistor film, 10R, ±0.5%, 0603, 0.1W, -55...+125°C | R19 | RES: 0603 | Resistor_0603 | 1 | https://www.lcsc.com/product-detail/Others_Viking-Tech-AR03D... | |
Resistor film, 470R, ±5%, 0603, 0.1W, -55...+125°C | R22, R23, R24 | RES: 0603 | Resistor_0603 | 3 | https://www.digikey.com/product-detail/en/yageo/RC0603JR-071... | |
Resistor film, 12.4K, ±0.1%, 0603, 1/16W, -55...+125°C | R26 | RES: 0603 | Resistor_0603 | 1 | https://www.lcsc.com/product-detail/High-Precision-Low-TCR-S... | |
Resistor film, 1M, ±5%, 0603, 0.1W, -55...+125°C | R30 | RES: 0603 | Resistor_0603 | 1 | https://www.digikey.com/product-detail/en/yageo/RC0603JR-071... | |
Resistor film, 4.7к, ±5%, 0805, 0.125W, -55...+125°C | R31, R32 | RES: 0805 | Resistor_0805 | 2 | https://www.digikey.com/product-detail/en/yageo/RC0805JR-071... | |
Tactile button, 6x6mm | SB1 | Button 3x4x2.5 | Button_tactile | 1 | https://www.aliexpress.ru/item/100pcs-lot-Micro-Button-Tact-... | |
Zener diode, , 12A, , , SOT-23, -55...+150°C | VD1 | SOT23 | TVS_array | 1 | https://www.lcsc.com/datasheet/lcsc_datasheet_DOWO-SM712_C29... | |
LED | VD2 | LED: 0603B | LED_single | 1 | ||
Schottky diode, 40V, 3A, 0.7V, , SMA(DO-214AC), -55...+150°C | VD3 | DIODE: SMA | Schottky_single | 1 | https://www.lcsc.com/product-detail/Schottky-Barrier-Diodes-... | |
Connector, 3pin, 5.08mm | X1 | XK2EDGK-5.08-03 | XK2EDGK-5.08-03 | 1 | https://www.lcsc.com/product-detail/Pluggable-System-Termina... | |
Connector, 4pin, 1.25mm | X2, X3, X8, X9, X10, X12 | JST_125_04 | JST_125_04 | 6 | https://www.lcsc.com/product-detail/Wire-To-Board-Wire-To-Wi... | |
Connector, 2pin, 1.25mm | X4 | JST_125_02 | JST_125_02 | 1 | https://www.lcsc.com/product-detail/Wire-To-Board-Wire-To-Wi... | |
USB micro B | X5 | microUsb | Connector_USB_micro_B | 1 | https://www.lcsc.com/product-detail/USB-Connectors_Jing-Exte... | |
Connector, 3pin, 1.25mm | X6, X11 | JST_125_03 | JST_125_03 | 2 | https://www.lcsc.com/product-detail/Wire-To-Board-Wire-To-Wi... | |
Etherner RJ-45 connector | X7 | CON: HR911105A | Connector_HR911105A | 1 | https://www.aliexpress.com/item//32244614847.html | |
Crystal, 8MHz, 20pF, ±10ppm, case 3225, -40...+85°C | Z1 | OSC: 3225 | Crystal_3225 | 1 | https://www.lcsc.com/product-detail/SMD-Crystal-Resonators_X... | |
Crystal, 32.768kHz, 12.5pF, ±20ppm, case 3215, -40...+85°C | Z2 | OSC: 3215 | Crystal_3215 | 1 | https://www.lcsc.com/product-detail/SMD-Crystal-Resonators_S... | |
Crystal, 25MHz, 18pF, ±10ppm, case 3225, -30...+85°C | Z3 | OSC: 3225 | Crystal_3225 | 1 | https://www.lcsc.com/product-detail/_TXC-Corp-7M25000046_C33... |
Name | Size | # Downloads |
---|---|---|
STM32_GW-RoundHoles.TXT | 3.93 kB | 281 |
STM32_GW-SlotHoles.TXT | 273 B | 268 |
STM32_GW.GBL | 72.58 kB | 330 |
STM32_GW.GBO | 430.37 kB | 280 |
STM32_GW.GBS | 5.53 kB | 291 |
STM32_GW.GKO | 504 B | 301 |
STM32_GW.GTL | 84.47 kB | 321 |
STM32_GW.GTO | 416.86 kB | 314 |
STM32_GW.GTS | 6.16 kB | 347 |
Schematic.PDF | 1020.17 kB | 648 |
Name | Size | # Downloads |
---|---|---|
STM32_Board_GatewayEthernet_RS485.ino | 8.92 kB | 611 |