Computer dictating new knowledge esp8266 lamp relay switch (becomes a DIYer, three)

There is no absolute thing! The many versions esp8266 you selected a still troubled, from the beginning to now, there is no quiet too, above all, after esp8266 off with esp8266 serial AT command set on the failure, you need to re-setting, and secondly, this pin is indeed convenient way, however, sometimes touching, then failure will lead to esp8266, really Ganan (hard) ah South (hard)! Approach is not without, his welding die (Japanese often do so, the cpu welded on the motherboard). In addition, this module adds the ability to UPS functions? Let esp8266 always 3.3v power supply, such as the computer's power button, the answer is yes, you can, tried three times, there is a very dangerous and found a small lithium battery capacity, welded 5v positive and negative, and then turned 5v power charger, fever, drum kits, smell, seems to be caught fire and exploded, but fortunately saw, scared baby! Eye grassland, 5v power charger is unplugged, then thought for a moment, although the lithium battery package, a protection circuit has, but the problem is on the charger, the charger 5V2A lithium battery 100mah (no current limit? ), Nokia's first lithium battery charger only 5v, 200-500ma models, escaped unharmed. So people called charger adapter, now know.

Dangerous thing there is access esp8266 relay station (electric) lights line you do not know the ground or FireWire (because we use the patch panel, two more, no one care about, think about, or three plug good ), the most terrible, should be quarantined, not leakage , which is different from the power cell phones and computers safe access. I took two esp8266 rechargeable lithium battery module (old cell phone battery 1000mah, can tolerate 5v2a adapter), tested for nearly two months, normal, no way, rural than urban, sometimes off.

a, large-capacity mobile phone described lithium battery protection circuit board to be reliable.

b, was found to provide lithium 3.7v 3.3v esp8266 of power. (5V charger power failure, a backup circuit 3.7v buck 3.3V, useless)

c, not only that, 3.7v lithium can drive 5v relay, an additional surprise. (5v charger of power failure)

d, lithium batteries have been charged will not be easy to fail? First reservations, continue to observe.

The following show some pictures, more intuitive interface, you can refer to, to observe:

First, usb serial transfer

Second, esp8266 relay module

Third, there is provided esp8266 5v power module, usb port connected to the computer, hardware modules connected to two lines Dupont rxd, txd, gnd, and then open the computer serial debugging tools, COM3 is assumed, default port 9600, n, 8,1.

Fourth, and enter the following at the command, set esp8266

Results are as follows:

Fifth, assuming that your relay module, has access lamp, unplug it now DuPont line, we use wireless control module esp8266 relay switch lights, now everything is in place, connect WiFi, run our c # program, click the button, rang relay (have action), the lights.

Note: If you have obsessive-compulsive disorder to power, it is still engaged in a give esp8266 module uninterruptible power supply lithium battery it!

Published 66 original articles · won praise 12 · views 10000 +

Guess you like

Origin blog.csdn.net/ganggangwawa/article/details/104122379