Local + remote control management system, remote + short-range free control of household electrical switches/industrial power switches in various scenarios.
1. With the continuous development of technology, free control can be achieved.
2. Solve problems such as being too lazy to get out of bed to turn off the lights, forgetting to turn off electrical appliances after leaving home, etc.
Note: There is something wrong with the hardware. I changed it on the board when I adjusted it. Please do not use the board for development. I will update later.
The 1.7-inch LCD touch screen and core board form a terminal control, which can control several electrical appliances through Bluetooth communication with a mobile phone.
2. Rotary encoder + RF module for lighting brightness and comfort level control and selection settings. Button selection function, which has the functions of left turn, right turn, and press confirmation. It uses the output phase difference of the pulse signal during rotation to confirm the left and right rotation.
3. Each independent electrical appliance is controlled by MCU + RF module + relay.
4. There is 4G real-time monitoring + control operation remotely, so that electrical appliances can be turned on and off remotely.
1. Remote control-NB module + local RF module:
2. RGB touch screen is used as touch display and physical control terminal.
3. Can be connected to the core board through APP (NB module cloud control) to control various electrical appliances.
4. If you forget to turn off the electrical appliances at home after going out, you can check it through the APP and control the on and off of the electrical appliances through the NB5313 module + RF98 module. (can also be used for industrial purposes)
5. There is a 4-bit hardware address to distinguish between the master and the slave.
The coding switch realizes the left, right and press confirmation functions.
1. Shuttle wireless control + local RF module:
2. Wireless selection + confirmation function switch composed of coding switch + RF98.
3. There is a 4-bit hardware address to distinguish between the master and the slave.
1. Wireless switch + local RF module:
2. This is a wireless coding switch that communicates with other controlled electrical appliances through the RF module. Used for switching, function selection, function adjustment, etc.
3. There is a 4-bit hardware address to distinguish between the master and the slave.
1. Data can be transferred to the cloud for monitoring through the APP.
2. The APP sends instructions to the NB module through the cloud to remotely control electrical appliances.
1. Core board + NB module controls the adjustment of global electrical appliances through wireless RF (433M) communication.
2. The core board can be used for local control of the 7-inch LCD.
RFM98 is a 433MHz version of LoRa transceiver design and application. It is a transceiver using LoRa remote modem, which can provide ultra-long-distance spread spectrum communication and high anti-interference while consuming a trace amount of current.
Pin number | Pin name | I/O | describe |
1 | GND | Ground | |
2 | MISO | O | SPI Data output |
3 | MOSI | I | SPI Data input |
4 | SCK | I | SPI Clock input |
5 | NSS | I | SPI Chip select input |
6 | RESET | I | Reset trigger input |
7 | DIO5 | I | Digital I/O, software configured |
8 | GND | Ground | |
9 | ANT | RF signal output/input. | |
10 | GND | Ground | |
11 | DIO3 | I/O | software configured |
12 | DIO4 | I/O | software configured |
13 | 3.3V | Supply voltage | |
14 | DIO0 | I/O | Digital I/O, software configured |
15 | DIO1 | I/O | Digital I/O, software configured |
16 | DIO2 | I/O | Digital I/O, software configured |
The M5313 module is a dual-mode NB-IOT/GSM industrial-grade communication module based on the LCC interface . It can be widely used in low-power data transmission equipment and meets the 3GPP Release 14 standard. M5313 can support the following frequency bands: NB-IOT : Band 3/Band 5/Band 8 GPRS : Band 2/Band 3/Band 8 M5313 adopts a highly integrated design solution to integrate RF and baseband on a PCB to complete wireless RF signals It has receiving, transmitting, and baseband signal processing functions, and uses LCC interface externally. The module size is 19.0mm*20.9mm*2.7mm . The M5313 module adopts low power consumption technology, and the current is as low as 5uA in deep sleep mode .
Power interface | |||||
Pin number | Pin name | I/O | describe | DC characteristics | Remark |
24,25 | VBAT | PI | Module main power supply 3.4V-4.2V |
Vmax=4.2V Vmin=3.4V Vnorm=3.8V |
The power supply must be able to provide 2A of current |
16 | VDD_EXT | PO | Module IO port power supply | Vmax=3.0V Vmin=2.6V Vnorm=2.8V Imax=20mA |
If power is supplied externally, a 2.2~4.7uF capacitor needs to be connected in parallel. If not used, leave it floating . |
Switch interface | |||||
14 | PWRON | DI | The module is pulled low internally and automatically turns on after power-on by default . |
||
reset interface | |||||
15 | RESET | DI | Pull this pin low for more than 100mS to reset the module |
VILmax=0.33V VIHmin=0.77V VIHmax=1.8V |
Power domain VRTC has an internal pull-up. |
serial port | |||||
1 | UART1_TXD | DO | UART1 serial port sending | VILmin=0V VILmax=0.3V×VDD_EXT VIHmin=0.7×VDD_EXT VIHmax=VDD_EXT VOLmax=0.25×VDD_EXT VOHmin=0.75×VDD_EXT |
VDD_EXT voltage domain, if not used , leave it floating. |
2 | UART1_RXD | DI | UART1 serial port reception | ||
18 | HST_TXD | DO | HST serial port transmission | ||
19 | HST_RXD | DI | HST serial port reception | ||
9 | UART2_TXD | DO | UART2 serial port sending | ||
20 | UART2_RXD | DI | UART2 serial port reception | ||
SIM card interface | |||||
10 | SIM_DATA | IO | SIM card data signal | VSIM=3.0V: VILmax=0.4V VIHmin=VSIM-0.4 VOLmax=0.4V VOHmin=VSIM-0.4 VSIM=1.8V: VILmax=0.15×VSIM VIHmin=VSIM-0.4 VOLmax=0.15×VSIM China Mobile Internet of Things Co., Ltd.- 15- VOHmin=VSIM-0.4 |
|
11 | VSIM | PO | SIM card power signal | 3.0V or 1.8V adaptive | |
12 | SIM_CLK | DO | SIM card clock signal | VSIM=3.0V: VOLmax=0.4V VOHmin=0.9×VSIM VSIM=1.8V: VOLmax=0.12VSIM VOHmin=0.9×VSIM |
|
13 | SIM_RST | DO | SIM card reset signal | VSIM=3.0V: VOLmax=0.36V VOHmin=0.9×VSIM VSIM=1.8V: VOLmax=0.2V VOHmin=0.9×VSIM |
|
ADC interface | |||||
7 | ADC | AI | Digital-to-analog conversion interface | Voltage input range: 0V~1.8V |
Leave it empty if not in use |
GPIO interface | |||||
twenty three | GPIO | IO | Universal input and output interface | VILmin=0V VILmax=0.3V×VDD_EXT VIHmin=0.7×VDD_EXT VIHmax=VDD_EXT VOLmax=0.25×VDD_EXT VOHmin=0.75×VDD_EXT |
Leave it empty if not in use |
Sleep/wake interface | |||||
5 | WAKE_IN | DI | Wake up module input interface | VILmax=0.33V VIHmin=0.77V VIHmax=1.8V |
Power domain VRTC, if not used, leave it floating. |
twenty two | WAKE_OUT | DO | Module sleep state output interface | VOLmax=0.25×VDD_EXT VOHmin=0.75×VDD_EXT |
Leave it empty if not in use. |
network instructions |
|||||
twenty one |
NETLIGHT | DO | Network status indication | VOLmax=0.25×VDD_EXT VOHmin=0.75×VDD_EXT |
Leave it empty if not in use. |
Antenna interface | |||||
28 | RF_ANT | IO | GSM/NB-IOT antenna | 50Ω impedance | |
GND interface | |||||
8,26,27,29,30 | GND | ground | |||
NC interface | |||||
3,4 | NC | Leave it empty if not in use. | |||
RESERVED interface | |||||
17 | RESERVED | Reserved pins | hanging in the air |
The main communication code is LoRa (RFM98 claims a communication distance of 8 kilometers, I have only tried 1 kilometer)
NB module: https://b23.tv/PTMVuc
Analog RF switch: https://b23.tv/wkQWPy
LoRa reference: https://blog.csdn.net/HowieXue/article/details/78049603?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first_rank_v2~rank_v28-2-78049603.nonecase&utm_term=payloadcrcerror% 20%E4%B8%AD%E6%96%AD&spm=1000.2123.3001.4430
Antenna design reference: https://www.antenna-theory.com/cn/antenna.php
RF antenna reference: https://www.docin.com/p-2158776079.html
NB reference: http://iot.10086.cn/Chipmodule/readmodule/id/798
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet