Comments (7)
I think the problem is not hardware . but you will tell you what your consumer touch with relay?
from esp8266.
One day ago , I had the same problem, I upload simple sketch to switch relay over mqtt . And after five toggles of relay state, the esp module, block and restarting self
from esp8266.
Is there really a chance that this is a hardware problem or memmory leak
from esp8266.
Hey guys,
We have tested the relays numerous times in different scenarios. They also get tested during and after the assembly of each board. I just tested to switch the relays a hundrded times and the behavior described by you does not occur here. What I recommend you to do:
- Test with another (better) power supply adapter.
- Always add software delays when switching relays. Switching relays on and off without any delay would greatly shorten their lifespan and, in fact, can damage the relay in a matter of minutes.
- Consider that the issue might be related to the load on the relay. Refer to the information below.
The whole thing might be the typical problem with all electromechanical relays. Inductive AC and DC loads are hard for electomechanical relays where welding contacts cause problems. Normal way to solve this problem is to use clamp diodes or zener diodes in the poles of the load. However, this lengthens the off delay and it does not totally eliminate the sparking in relay contacts. Switching the high DC voltages is also difficult for the electromechanical relays.
I am sure there is a lot of solutions that might be suggested online. There are a number of workarounds or partial solutions but they depend on your exact design and setup. There is no solution that I can recommend 100% - you will have to try different things.
I have few ideas if the problem is related to the load (point 2):
- Try to place the ESP8266-EVB board further from any motors. If you use a 220V motor the whole freeze might be related to its influence on the ESP8266-EVB.
- Try to place a TVS varistor/Zener near the power supply of ESP8266-EVB - the varistor picked should be suitable for [ + 3], e.g. if you supply ESP8266 with 5V the TVS should be for 8V.
- If your motor commutates DC (not AC) you can also put capacitors in parallel to the contacts.
- If nothing else works check if there are suitable solid-state relays that can be used instead of the one we have placed.
Best regards,
Lub/OLIMEX
from esp8266.
Thank you @DanKoloff for those recommendations.
I encountered this issue without any load on the relay. My power supply is a 5V 3A, and I always put a 0.5sec delay before switching the relay. Anyway, I never try to make PWM with a mechanical relay ;-) It is switched at most a few times per minute.
I do not know if this issue comes from hardware or software , but in any case it seems that both @toome123 and me are experiencing some odd behaviors with that board.
I am using Espruino on it, and I know there is a few bugs with the port on ESP8266. @toome123 , which kind of firmware are you using?
from esp8266.
Can you test with our IoT firmware (in this repository)? This would show if it is software-related issue. There is a category called "Relay" in the web form. Search for "relay" here: https://github.com/OLIMEX/ESP8266/tree/master/IoT%20Firmware
Also check this video (despite that it doesn't show the usage of the on-board relay; you can see the "Relay" category in the web form): https://www.youtube.com/watch?v=4zRq85791vo
from esp8266.
The problem I had I think was the supply is not enough. @yerpj I use Olimex IoT firmware. I think this issue can be closed.
from esp8266.
Related Issues (20)
- WEBCLIENT - no request freeing from list HOT 1
- IoT Firmware Websocket "freezes" on frame segmentation at TCP level HOT 7
- Enhancement: Upgrade SDK to 1.5.1 (16.1.2016) (IoT Firmware) HOT 2
- IoT Firmware: Default config settings after complete flashing HOT 6
- How to adapte 8Mbit flash with iot_firmware project? HOT 1
- What's the purpose of bringing out SD_CLK to SD_CMD? (EVB board) HOT 1
- memcpy in fnc jsonparse_object_str copies 1 byte to much HOT 1
- MQTT example must be updated with changes to PubSubClient HOT 1
- WebClient.webclient_recv - Finishing chunked message hotfix
- Webserver does not respond after reconnect
- Tho functions move into flash instead of RAM HOT 4
- after commit SDK 2.0.0 IoT Firmware won't to compile HOT 8
- RX and TX pin are messed up HOT 1
- it is possible to add webserver/websocket port config in web app HOT 5
- WPA2-PEAP Support HOT 1
- Status/event Messages: field "device" to fill with host name HOT 1
- Compiling Issue HOT 1
- Conection betwen ESPs
- Compile with SDK 2.1.0
- HTML page it's not show in web Server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266.