CN207281511U - A kind of remote switch device based on Arduino - Google Patents
A kind of remote switch device based on Arduino Download PDFInfo
- Publication number
- CN207281511U CN207281511U CN201720787061.6U CN201720787061U CN207281511U CN 207281511 U CN207281511 U CN 207281511U CN 201720787061 U CN201720787061 U CN 201720787061U CN 207281511 U CN207281511 U CN 207281511U
- Authority
- CN
- China
- Prior art keywords
- gateway
- arduino
- control terminal
- module
- relay
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Abstract
The utility model discloses a kind of remote switch device based on Arduino, control terminal including controlling switch and the intelligent terminal that instruction is sent to control terminal, it is characterized in that, the control terminal and intelligent terminal carry out information mutual communication by gateway, and the control terminal mainly includes control terminal Arduino control chips, control terminal radio receiving transmitting module, relay module;The gateway mainly includes gateway A rduino control chips, gateway radio receiving transmitting module, communication module.Advantage:1)Terminal realizes remote operation by wireless network to controller, greatly reinforces the convenience of device;2)Sensing data can return to terminal on controller, it is possible to achieve real time monitoring.
Description
Technical field
A kind of remote switch device based on Arduino is the utility model is related to, belongs to control technology field.
Background technology
Remote switch system can be when people be away from home, can be by phone, computer come your intelligence of remote control
Household or other electronic equipments.Remote switch can be operated in a number of different ways, such as panel operation(Retain former
Some socket and switch)It is user power and energy saving with smart mobile phone remote control.Remote switch is mainly with wireless signal transmission
Mode, wireless intelligent switch or socket receive signal, and it is fast and accurate to receive speed.
Remote switch uses Radio Transmission Technology.Radio Transmission Technology is 2.4GHz, i.e. non-networked solution.2.4GHz
Wireless technology is Radio Transmission Technology emerging in recent years.2.4GHz wireless technologys are transmitted in both directions, and one-way transmission speed is reachable
2Mbps, and as a result of from frequency modulation technology, it is greatly lowered the influence of interference.
In automated circuit, switch plays important control and protective effect.For traditional switch when having a power failure, you are necessary
Closing all switches can just leave, the no waste it will cause electricity;Some special circumstances are run into, we cannot disconnect electricity in time
, there is very big security risk in source.Design this remote switch, we equipment is carried out using mobile equipment remote control and
Protection.
The content of the invention
Technical problem to be solved in the utility model is the defects of overcoming the prior art, there is provided one kind is based on Arduino
Remote on-off device, be used for realization the remote control to circuit.
In order to solve the above technical problems, the utility model provides a kind of remote switch device based on Arduino, including control
Make the control terminal of switch and the intelligent terminal of instruction is sent to control terminal, it is characterized in that, the control terminal and intelligent terminal pass through
Gateway carry out information mutual communication, the control terminal mainly include control terminal Arduino control chips, control terminal radio receiving transmitting module,
Relay module, the control terminal Arduino control chips connect control terminal radio receiving transmitting module and relay module respectively;Institute
Stating gateway mainly includes gateway A rduino control chips, gateway radio receiving transmitting module, communication module, the gateway wireless receiving and dispatching
Module, communication module are connected with the gateway A rduino control chips respectively;The gateway receives intelligence eventually by communication module
The ip network number evidence at end, gateway A rduino mini control chips by ip network number according to being converted into serial data, then pass through net
Close radio receiving transmitting module and pass to control terminal radio receiving transmitting module;The relay module mainly includes relay and sensor,
The relay is used to carry out the electrical appliance that controls required for device switching manipulation, the sensor be used to gathering relay into
The switching-state information of row switching manipulation, and switching-state information is transferred to control terminal Arduino control chips, then lead to successively
Cross control terminal radio receiving transmitting module, gateway radio receiving transmitting module is transferred to gateway.
Further, power module is further included, is supplied for protecting the safety of whole circuit, and for each module of device
Electricity.
Further, the Arduino control chips use MEGA328P Arduino mini control chips.
Further, the communication module uses ESP8266WIFI communication modules.
Further, the radio receiving transmitting module uses NRF2401+ radio receiving transmitting modules.
Further, the power module uses HLK-PM01 that 220V alternating currents are converted into 5V direct currents and is supplied for device
Electricity simultaneously protects the circuit safety of whole device.
Further, the relay using voltage-stabiliser tube LE33ACZ as driving relay switch.
Further, the gateway is additionally provided with serial communication modular, and start or pass are sent directly to gateway for PC machine
The instruction of machine.
The beneficial effect that the utility model is reached:
1)The device supports ad-hoc wireless sensing network, using the monolithic wireless transceiver chip of ISM band, avoids making
It is noiseless to WiFi signal with IEEE802.11 wireless protocols.Significantly reduce the transmission power consumption of communication chip.The device
Average power consumption is less than 10uW.2)Gateway module compatibility ICP/IP protocol, supports to carry out using Ethernet, mobile communication 4G nets remote
Process control, versatility are stronger.3)The device hardware configuration is simple, and reliability is high, and the electronic component used is cheap, single to open
The cost of artis is can be controlled within 30 yuan.Software systems can be upgraded by SPI interface, be safeguarded simple.
Brief description of the drawings
Fig. 1 Fig. 1 is a kind of schematic diagram of remote switch method provided in an embodiment of the present invention;
Fig. 2 is a kind of block diagram of remote switch device provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of a kind of sensor node provided in an embodiment of the present invention and gateway;
Fig. 4 is a kind of node networking flow chart of remote switch device provided in an embodiment of the present invention;
Fig. 5 receives switching on and shutting down for a kind of gateway provided in an embodiment of the present invention and instructs and be sent to the flow chart of controller;
Fig. 6 is a kind of remote switch device gateway initialization flowchart provided in an embodiment of the present invention;
Fig. 7 handles serial data flow chart for a kind of remote switch device provided in an embodiment of the present invention.
Embodiment
The utility model is further described below in conjunction with the accompanying drawings.Following embodiments are only used for clearly illustrating this
The technical solution of utility model, and the scope of protection of the utility model cannot be limited with this.
Fig. 1 is a kind of schematic diagram of remote switch method provided in an embodiment of the present invention, and this method comprises the following steps:
Step 101, gateway receiving terminal is sent ip network number according to and be converted into serial data;
Step 102, serial data is sent to by controller by radio receiving transmitting module;
Step 103, controller processing serial data carrys out drive control switch using driving microcontroller;
Step 104, controller collects switching-state information and returns to gateway.
Fig. 2 is a kind of hardware block diagram of remote switch device provided in an embodiment of the present invention, and the method includes the steps of:
Step 201, USB serial ports provides serial communication for Arduino(Burning code)And the function of 5V power supplies;
Step 202, SPI interface is worked with master-slave mode, it is allowed to a main equipment and multiple slave devices communicate,
Main equipment passes through different SS signal wires(Slave device is selected for main equipment piece, enables selected slave device by main equipment institute
Access)Different slave devices is selected to communicate.SPI interface realizes that Chip Microcomputer A rduino and wireless module NRF2401+'s is logical
Letter;
Step 203, triode LE33ACZ amplifying circuits driving solid-state relay switch is utilized;
Step 204, relay has control system(Input circuit)With by control system(Output loop), it is usually applied to
In automated circuit, actually gone to control one kind " automatic switch " of larger electric current with less electric current.Control device profit
By the use of relay module as the power switch of 220V, power control function is realized(Turn between 5v direct currents and 220v alternating currents
Change);
Step 205, in order to provide the power input of whole control module, microminiature power module HLK- is used
PM01, by 220V alternating currents be converted into 5V direct current supply electricity to controller modules power;
Step 206, NRF2401+ is a new single chip radio-frequency receiving-transmitting device, works in the GHz of 2.4 GHz~2.5
ISM band.The function modules such as built-in frequency synthesizer, power amplifier, crystal oscillator, modulator, wherein output power and
Communication channel can be configured by program.The signal that this module is used between transmitting terminal and receiving terminal sends and receives;
Step 207, ESP8266 is a Wi-Fi with complete function and architectonical, which uses ICP/IP protocol,
Microcontroller can carry out WIFI communication modules ESP8266 the setting of gateway;
Step 208, using step 207, terminal device access Internet, can be made by ESP8266WIFI communication modules
With server come remote control microcontroller.
Step 209, gateway apparatus is provided with the serial communication with PC machine, and PC machine can be directly to gateway by serial ports input
Send serial data.
It should be noted that in fig. 2, except power module HLK-PM01 protection whole device circuit safety it
Outside, the protective tube of 0.5A 220V and the varistor of 470V have been it is possible to additionally incorporate in circuit to be further ensured that the safety of circuit.
Fig. 3 is the schematic diagram of a kind of sensor node provided in an embodiment of the present invention and gateway, and which includes following step
Suddenly:
Step 301, each node distributes a unique sensor id or address, for point-to-point information transmission with
Receive.A static state id can be distributed by program or allows controller to be automatically assigned to one id of sensor;
Step 302, sensor starts for the first time, and round-trip gateway is determined by sending the signal of a searching father node
Path, repeater or gateway can monitor these signals, and the help signal of response sensor.They understand return signal to sensing
Device, and notify sensor and their distance, so that it is determined that going out the shortest path of sensor and gateway.Either directly arrive gateway
Or pass through the repeater node near gateway.If sensor node then loses with gateway or repeater sensors node
Contact, it will repeat this process automatically to determine the optimal path of gateway.If continuously transmitting 3 message all to fail, recognize
Loss is contacted for sensor node and gateway;
Step 303, gateway or relay point can safeguard the routing table of oneself, so as to know by signal send directionally to it week
Other network address enclosed.Gateway or relay point automatically create out one's own road to the signal collection passed through and arrangement
By table.
It should be noted that in figure 3, gateway or relay point are just formed after to the complete address of sensor node of system distribution
The routing table of themselves, the purpose for the arrangement is that reducing the possibility being disturbed in signals transmission.
Fig. 4 be a kind of remote switch device provided in an embodiment of the present invention node networking flow chart, this method include with
Lower step:Step 401, child node powers on, and sends ping message and is to node net and setting and the ultimate range of father node
255;
Step 402, gateway or repeater node monitor the signal from node net and response;
Step 403, child node monitors the ping message that node net returns, and if father node exists, then saves father
The information write-in node net of point, while stop continually looking for father node, if there is no father node, then jumped out after waiting 2 seconds.
Step 404, the ping message of child node are returned to according to node net, sub- section is distributed into the address of father node
Point;
Step 405, according to the matching of address, child node and father node it is automatic between create routing table, so as to later letter
Number send and receive.
It should be noted that in Fig. 4, gateway distribution id also has another non-automatic mode:It can be burnt by program
The method for writing into EPPROM, directly sets a static state id to sensor node, then asks gateway that corresponding id is allocated in biography
Sensor node, so that the matching for completing sensor node and gateway connects.
Fig. 5 receives switching on and shutting down for a kind of gateway provided in an embodiment of the present invention and instructs and be sent to the flow chart of controller,
Which comprises the steps of:
Step 501, Gateway Initiative, it is therefore an objective to give sensor node of system distribution ID, find father node.
Step 502, the parameter of callback signal is configured, the current node address of this signal is set and sends signal
Past node address(Father node), while whether setting signal allows repeater mode;
Step 503, gateway parameter is configured, is set for gateway and outputs and inputs parameter;
Step 504, interrupt parameters are set, tackle some either internally or externally special events in program operation so that single
These events of piece machine timely processing;
Step 505, serial ports shows the information of callback signal;
Step 506, the network data that gateway sends terminal is converted into serial data and is handled to obtain switching on and shutting down
Instruction;
Step 507, gateway judge whether that needs boot up or power-off operation, if need not operate, then returns
Step 506 is returned to, if it is desired to split put capable operation into, then serial data is sent to controller by radio receiving transmitting module;
Step 508, reset signal and next processing signal is waited so that on off state does not get muddled, and ensures long-range
The reliability of switching device.
It should be noted that in Figure 5, the idiographic flow of step 501 is shown in Fig. 6;The idiographic flow of step 506 is shown in Fig. 7.
Another embodiment of the present invention also proposed the system that a kind of terminal is monitored by Internet access gatewaies,
The system includes:
Terminal is connected by ICP/IP protocol with gateway, and using ESP8266WIFI communication modules, gateway passes through Cloud Server
Communicate with intelligent terminal.Switching-state information is returned to terminal by gateway, realizes the real-time prison of terminal-pair on off state
Control.
The above is only the preferred embodiment of the utility model, it is noted that for the common skill of the art
For art personnel, on the premise of the utility model technical principle is not departed from, some improvement and deformation can also be made, these change
The scope of protection of the utility model is also should be regarded as into deformation.
Claims (8)
1. a kind of remote switch device based on Arduino, including the control terminal of controlling switch and send instruction to control terminal
Intelligent terminal, it is characterized in that, the control terminal and intelligent terminal carry out information mutual communication by gateway, and the control terminal mainly includes
Control terminal Arduino control chips, control terminal radio receiving transmitting module, relay module, the control terminal Arduino control chips
Control terminal radio receiving transmitting module and relay module are connected respectively;The gateway mainly includes gateway A rduino control chips, net
Radio receiving transmitting module, communication module are closed, the gateway radio receiving transmitting module, communication module are controlled with the gateway A rduino respectively
Coremaking piece connects;The gateway receives the ip network number evidence of intelligent terminal, gateway A rduino mini controls by communication module
Ip network number evidence is converted into serial data by chip, then passes to control terminal wireless receiving and dispatching mould by gateway radio receiving transmitting module
Block;The relay module mainly includes relay and sensor, and the relay is used for the electricity consumption to being controlled required for device
Device carries out switching manipulation, and the sensor is used for the switching-state information for gathering relay progress switching manipulation, and will switch shape
State information is transferred to control terminal Arduino control chips, then passes sequentially through control terminal radio receiving transmitting module, gateway wireless receiving and dispatching mould
Block is transferred to gateway.
2. a kind of remote switch device based on Arduino according to claim 1, it is characterized in that, further include power supply mould
Block, for protecting the safety of whole circuit, and is each module for power supply of device.
3. a kind of remote switch device based on Arduino according to claim 1, it is characterized in that, the Arduino controls
Coremaking piece uses MEGA328P Arduino mini control chips.
4. a kind of remote switch device based on Arduino according to claim 1, it is characterized in that, the communication module
Using ESP8266WIFI communication modules.
5. a kind of remote switch device based on Arduino according to claim 1, it is characterized in that, the wireless receiving and dispatching
Module uses NRF2401+ radio receiving transmitting modules.
6. a kind of remote switch device based on Arduino according to claim 2, it is characterized in that, the power module
Use HLK-PM01 that 220V alternating currents are converted into the circuit safety that 5V direct currents power for device and protect whole device.
7. a kind of remote switch device based on Arduino according to claim 1, it is characterized in that, the relay
Using switches of the voltage-stabiliser tube LE33ACZ as driving relay.
8. a kind of remote switch device based on Arduino according to claim 1, it is characterized in that, the gateway is also set
There is serial communication modular, send the instruction of start or shutdown directly to gateway for PC machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201720787061.6U CN207281511U (en) | 2017-06-30 | 2017-06-30 | A kind of remote switch device based on Arduino |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201720787061.6U CN207281511U (en) | 2017-06-30 | 2017-06-30 | A kind of remote switch device based on Arduino |
Publications (1)
Publication Number | Publication Date |
---|---|
CN207281511U true CN207281511U (en) | 2018-04-27 |
Family
ID=61992979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201720787061.6U Expired - Fee Related CN207281511U (en) | 2017-06-30 | 2017-06-30 | A kind of remote switch device based on Arduino |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN207281511U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107132801A (en) * | 2017-06-30 | 2017-09-05 | 南京信息工程大学 | A kind of remote switch device based on Arduino |
-
2017
- 2017-06-30 CN CN201720787061.6U patent/CN207281511U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107132801A (en) * | 2017-06-30 | 2017-09-05 | 南京信息工程大学 | A kind of remote switch device based on Arduino |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203178784U (en) | Intelligent household control system based on Internet of Things | |
CN100573383C (en) | Intelligent home control system based on phone and ZigBee technology | |
CN207380545U (en) | A kind of intelligent domestic gateway and intelligent home control system | |
CN103002159B (en) | A kind of Bluetooth of mobile phone control switch and control method | |
CN102122428A (en) | Intelligent classroom centralized control system based on Zigbee technique | |
CN103019181A (en) | Intelligent internet-of-things home system based on ZigBee wireless communication protocol | |
CN104135408A (en) | System for intelligent home wireless control and method using the system | |
CN108173728A (en) | Intelligent appliance equipment and intelligent appliance system | |
CN103235581A (en) | Wireless handheld terminal-based electrical equipment control system | |
CN201927168U (en) | Intelligent classroom centralized control device | |
CN104483939A (en) | Remote intelligent household wireless monitoring system | |
CN106355873B (en) | Internet of things intelligent traffic gateway and system thereof | |
CN203070050U (en) | Internet of Things intelligent household system based on ZigBee wireless communication protocol | |
CN105225449A (en) | Supervisory system and monitoring collector | |
CN203324759U (en) | Electrical equipment control system based on wireless handheld terminal | |
WO2014063649A1 (en) | Household electrical appliance control method and system | |
CN204069011U (en) | Based on the ZigBee intelligent domestic system of intelligent sensor and Voice command terminal | |
CN203882187U (en) | Wireless household network system | |
CN207281511U (en) | A kind of remote switch device based on Arduino | |
CN209373365U (en) | Wireless centralized manager and intelligent management system | |
US20160330565A1 (en) | Z-wave controller shift in thermostats | |
CN104007707A (en) | Wireless sensor network intelligent home | |
CN107132801A (en) | A kind of remote switch device based on Arduino | |
CN104917654A (en) | Elastic network construction method of remote programmable monitoring control system | |
CN106054645A (en) | Smart home energy-saving system based on Internet-of-things |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180427 Termination date: 20200630 |
|
CF01 | Termination of patent right due to non-payment of annual fee |