BasicPI PLC Ethernet/GSM Module Annotated Schematics Revision.0/.jul.0 Introduction This document describe the PLC Ethernet/GSM module and provide sufficient documentation for understanding the schematics and programming the module. D Model The D model is generated by the EDA based on the PCB layout and serve the purpose of a visual review of the expected result. The model will be replaced with pictures once they are available.. pin HMI header.. Super capacitor for RTC.. SWD.. W00. Raspberry PI Zero W mounting holes.. Ethernet RJ. GPS Antenna. GSM/GPRS Antenna. Nano SIM Card holder. 0. Standard mounting holes. M. in each corner.. SIM0 module. Analogue Audio/USB connector.. V PSU (MIC0BU). x MAX for RS.. STMF0RG..V PSU (LM). 0 pin PLC backbone connector. 0 pin Raspberry PI //Zero W connector. Audio/USB available on back side. V + VBUS available here. 0. Test holes for PCM. Extra wiring to enable swapping of PCN In/Out
PCB 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 All layers including components and ground plane. Top layer PCB layout Bottom layer PCB layout.
Block Diagram Backbone RS-X RS-X RTC Battery or Supercap MCU STMF0RG SPI SPI Ethernet W00 Wifi Raspberry PI Zero W Ethernet WIFI HDMI USB Bluetooth GSM Antenna UART GPS Antenna SWD IS GSM SIM0 Analogue Audio Nano SIM Card UART HMI This block diagram show the Ethernet/GSM module from a functional perspective. MCU RS-X / RS-X- RTC Supercap SWD Ethernet W00 Raspberry PI Zero W SIM0 HMI Analogue Audio STMF0RG, Mhz, bit ARM M, Mb Flask, Kb SRAM. Dual high speed (0Mbps) UART for backbone communication. Supercap for preserving clock though power dips. Battery optional and can replace supercap. Standard SWD connector. Hard wired Ethernet with socket connections. Raspberry PI Zero W with Ghz, bit ARM running Linux (Rasbian). Mb SRAM, ++Gb SD Card, Wifi, Bluetooth, HDMI & USB. GSM/GPRS/GPS module. Optional HMI using UART. A Nextion display can easily act as a phone display with buttons enabling calls. Analogue Microphone/Speaker available on header pins.
Connectors J Pin Pin Pin Pin Pin Pin Pin Pin Pin Pin0 Pin 0 Pin Pin Pin Pin Pin Pin Pin Pin Pin0 Pin 0 Pin Pin Pin Pin Pin Pin Pin Pin Pin0 Pin 0 Pin Pin Pin Pin Pin Pin Pin Pin Pin0 0 +V RSX+ RSX- RSX+ RSX- RPI_MOSI RPI_MISO RPI_CLK J 0 +V 0 0 0 RPI Zero W RPI_CS x0 pin right angle J is the backbone connector. In this case we only use V and RSX & RSX. Layout of RSX on this connector J is the Raspberry PI 0 pin connector that can be used for the Raspberry PI Zero W add on module. This module will behave like a Hat with address. Additional Hat's can be added on the back with address -. Pin & is shorted to ground due to PCB layout support for GSM antenna.
PLC Backbone bus Pin Layout PSU Pin PSU Pin V PSU Pin V PSU Pin V PSU Pin V PSU Pin V PSU Pin V PSU Pin V Pin V Pin V Pin V Pin Spare Pin RSX + Pin RSX - Pin Pin Pin RSX + Pin RSX - Pin Pin Pin PSU Pin PSU Pin V PSU Pin V PSU Pin0 V PSU Pin V PSU Pin V PSU Pin V PSU Pin V Pin0 V Pin V Pin V Pin Spare Pin Spare Pin0 Spare Pin Spare Pin spare Pin spare Pin spare Pin0 spare
MCU +VD +VD +VD A D 0K R Pin Pin Pin Pin Pin SWD VBAT 0K R Pin Pin Pin Pin Pin SWD X 00R SuperCap X + K R C 00nF pf C GSM_PWREN 0pF C 0pF C GSM_RX GSM_TX Q pf C Q RSDEEnable- RSREEnable- RSDEEnable- RSREEnable- RPI_CS RPI_CLK RPI_MISO RPI_MOSI Mhz,KHz U PD0 PD PC PC PC PC0/ADC0 PC/ADC 0 BOOT0 SWCLK 0 PC/ADC/MISO PC/ADC/MOSI PA0/ADC0/TX PA/ADC/RX PA/ADC/TX PA/ADC/RX 0 PA/ADC/DAC SWDIO PA/ADC/DAC/SCLK PA/ADC/MISO PA/ADC/MOSI/P_N PC/ADC PC/ADC PB0/ADC/P_N PB/ADC/P_N PB PB0/TX 0 PB/RX NRST STMF0RG VDD VDD VDD VDD VDD PB/CANTX PB/CANRX RX/PB CANTX/TX/PB CANRX/MOSI/MOSI/PB MISO/MISO/PB SCLK/SCLK/PB RX/PD TX/MOSI/PC RX/RX/PC SCLK/TX/TX/PC0 PA 0 CANTX/PA CANRX/PA P_/RX/PA0 P_/TX/PA P_/PA PC PC 0 RX/PC TX/PC MOSI/P_N/PB MISO/P_N/PB P_N/SCLK/CANTX/PB CANRX/PB RxRS- TxRS- EtMOSI EtMISO EtSCLK EtSCSn EtINTn EtRSTn PMODE PMODE PMODE0 GSM_RI GSM_PWRKEY RxRS- TxRS- GSM_IN GSM_OUT GSM_CLK GSM_SYNC +V J HMI Status D VSS VSS VSS.uF X VCAP VCAP.uF X MCU is STMF0RG. This is a pin LQFP package with a bit M ARM ticking at Mhz and contains Mb Flash, Kb SRAM and a large list of IO features. VBAT Connected to supercap or battery., PC/PC RTC.Khz crystal / PD0/PD HSE Mhz crystal,,,0 SWD/BOOT0/NRST SWD Connector,,, USART RSX on USART 0Mbps,,, USART RSX on USART 0Mbps 0,,, SPI RPI Connector, Mbps SPI PC Status Led,, VSS/Ground Ground, VCAP.uF cap to ground on F0.,,, IS PCM Interface to SIM0,0 UART GSM UART interface for control.
PC GSM_PWRKEY. Hold down sec to switch on/off.,,,0,,,,, SPI Ethernet W00 Interface, UART HMI interface PSU The board use V as it's only PSU. The Raspberry PI module is supplied with V directly. The SIM0 is supplied with V/A from MIC, while.v is supplied from LM. Only linear regulators are used due to the low voltage drop. +V LM-. U IN OUT +VD K R C 00uF C 00uF PWR D.V PSU +V +V MICBU OUT X IN 00uF C uf C pf C0 0pF C X -V X 0R 0µF C + X X0 00K K ADJ EN GSM_PWREN 00uF C V PSU for the GSM module. C,C,C0,C are placed close to VBAT on SIM0.
RS-X RxRS- RSREEnable- RSDEEnable- TxRS- U RO RE DE DI VCC B A MAXCSA +VD RSX- RSX+ RxRS- RSREEnable- RSDEEnable- TxRS- U RO RE DE DI VCC B A MAXCSA +VD RSX- RSX+ Two separate RS based RS-X circuits form the backbone bus. These both operate at 0Mbps that is available on USART and USART. No extra circuitry is provided on the MAX's as bias/terminator will be added to the backbone.
Ethernet +VD +VA L uh AVDD 0.uF C 0.uFC AVDD 0µFC +VA +VA EtSCSn EtSCLK EtMISO EtMOSI EtINTn EtRSTn PMODE PMODE PMODE0 U SCSn SCLK MISO MOSI INTn RSTn PMODE PMODE PMODE0 SPDLED DUPLED VO TOCAP 0 VDD AVDD AVDD AVDD AVDD pf C Q MHz M R NC NC NC NC W00 0 0 XI/CLKIN XO pf C TXP TXN RXP RXN DNC VGB LINKLED ACTLED EXPRES 0 R K R R R R R 0 R R 0 R0 C C.nF 0 R.nF.nF C0 J TD+ CT TD- RD+ CT RD- NC R K LED_G + LED_G - 0 LED_Y - LED_Y + R K Shield Shield HR0A 0nF,uF C C Ethernet connection is achieved through a hard-wired TCP/IP chip from Wiznet. W00 provide sockets through SPI and contains a Phy on the chip. The interface is SPI, Interrupt, Reset and mode pins. The mod pins allow the chip to select speed mode.
D D D D GSM/GPRS/GPS X GPS Ant Pull down sec to power on/off. Internal pull-up in GSM. GSM_PWRKEY GSM_RI +V GSM_TX GSM_RX X VBAT VBAT VBAT VDD_EXT PWRKEY DTR 0 RI DCD CTS RTS TXD RXD RESET VRTC MICP MICN SPKP SPKN ADC0 ADC VCHG USB_DP USB_DN SIM_VDD SIM_DATA SIM_CLK SIM_RST SIM_DET GSM_ANT 0 RF_SYNC KBC0 KBC KBC KBC KBR0 KBR KBR KBR 0 SIM0 0 BT_ANT NETLIGHT STATUS 0 PCM_OUT PCM_IN PCM_CLK PCM_SYNC GPIO GPIO PWM PWM SCL 0 SDA PPS GPS_ANT X Ant GSM_OUT GSM_IN GSM_CLK GSM_SYNC K R GSM D K R Net D GSM J 0 Audio/USB +V X ESDAVSC X Nano SIM Card Holder VCC VPP RST IO CLK GSM, GPRS and GPS connection is achieved by using a SIM0 module from SIMCOM. This is a small breakout with CE/FCC aproval. The module is controlled through UART with AT commands. PCM audio is routed to SPI configured as IS. Analogue Audio and USB is available on J. GSM and GPS antenna is supported. Bluetooth is not supported since this is available through Raspberry PI.