Gateway IoT Ethernet-RS485 STM32

Olá Habr!


Este post é sobre o desenvolvimento DIY de um gateway Ethernet-RS485. O objetivo desse gateway é fornecer gerenciamento centralizado de nós Mysensors pelo controlador doméstico inteligente.


imagemRecentemente, eu ainda tenho fios, duplos, soldas, etc. e uma decisão demorada foi tomada - para fazer nossas pranchas do zero, ou seja, tudo sério. :)
Diz-se - pronto!


O primeiro passo foi desenvolver e desenhar um diagrama esquemático do gateway, no qual tentei levar em consideração toda a minha lista de desejos e desejos. A seguir, foi feito o layout e o encaixe da placa nas dimensões necessárias (50x50mm). E a última etapa é a ordem das placas em produção. Encomendei na fábrica JLCPCB, 5 placas - US $ 2 + frete.


STM32F103CB(8)T6. Ethernet WIZnet — W5500. Mysensors RS485. RS485 — MAX13488EESA+T, /.


.


STM32F103CBT6 48LQFN. Cortex-M3, 128 20 . — 72, USB , 128, . 3.3. , 8 32.768. SWD. STM32F103C8T6, .


Ethernet W5500. Cortex M0, SPI ( 80 ). 100Mbps Full Link 132. Wake on LAN, 4 4 (SPD / DUP / ACT / Link). 32 RAM TCP/IP , 8 TCP/UDP ( ). TCP/IP : TCP, UDP, MAC, ICMP, IPv4, ARP, IGMP, PPPoE. -40...85°C. — 3.3.


RS485 — MAX13488EESA+T. SOIC-8 150mil. 16 Mb/s. — 5, — 4.5 A. 128 RS485. /, .. UART ! .


:


RS485 .



.



Ethernet.



.. Mysensors , . RS485. — TEXAS INSTRUMENTS — ISO7321CDR. DC/DC Traco Power – TME0505S. RS485 . , ( ) VD1.


, .


.



.



3D — .



3D — .



. , USART SPI. STM32F103CBT6 3 USART 4.5Mbits/s. SPI . ( ), RS485 USART1 ( PB6, PB7 ). W5500 — SPI1 ( PA4-7).


Ethernet W5500 . , , , . lcsc.com . Ethernet — HR911105A, .


, 48- lqfp . , . .


, , , ( RGB). , I2C EEPROM / HDC1080. , , , .


RS485 , DB2EV-5.08-3P, 5.08. , . microUSB — 1.25 JST, .






5, microUSB, Power. 5 RS485, DC/DC . .. STM32 Ethernet 3.3, LDO — LDL1117S33R. 5 3.3 . — 0603.


.. ,
. RS485, DC/DC — D1, — D3. "" .




R31, R32 R2, VD3.


, , 30 , . , RS485 — 0.5-1Mbit. 1Mbit, 0.5Mbit. , , , . RS485, R31 R32 . , . , , .. RS485, . , . 120 RS485, .


, . . , - .


— ! :)


— , Ethernet-RS485 . , , .



.


Mysensor — https://t.me/mysensors_rus — mysensors.ru.


imagem PS — Mysensors RS485. . , .


P.P.S. , . !


P.P.P.S. , , . :)


PPPPS 02/20/2020 - atualizou o quadro (terceira revisão). Adicionadas lacunas galvânicas, Conders a 0,1uF (onde não estavam). A capacidade de instalar um resistor de pull-up na perna RO MAX13488 (seu valor nominal é selecionado localmente) e combinar o terra GND_isolate com o RS485_ground.


All Articles