Giter Club home page Giter Club logo

Comments (7)

toome123 avatar toome123 commented on September 16, 2024

I think the problem is not hardware . but you will tell you what your consumer touch with relay?

from esp8266.

toome123 avatar toome123 commented on September 16, 2024

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.

toome123 avatar toome123 commented on September 16, 2024

Is there really a chance that this is a hardware problem or memmory leak

from esp8266.

DanKoloff avatar DanKoloff commented on September 16, 2024

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:

  1. Test with another (better) power supply adapter.
  2. 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.
  3. 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.

yerpj avatar yerpj commented on September 16, 2024

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.

DanKoloff avatar DanKoloff commented on September 16, 2024

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.

toome123 avatar toome123 commented on September 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.