logo elektroda
logo elektroda
X
logo elektroda

Sonoff Basic R3 very slow LED blink, reset button unresponsive, ESP8285 brown-out suspected

User question

Sonoff basic r3 not workink , reset button not warking, led blinking very slowly

Artificial Intelligence Response

Direct answer to the question

  • Most likely cause: the internal low‑voltage power supply is failing, so the ESP8285 is brown‑out/reset looping. In that state the firmware never runs, so the pushbutton appears “dead,” and the LED blinks very slowly.
  • Key points:
    • Verify the 3.3 V rail first. If it’s below ~3.2 V or unstable, the PSU is the root cause.
    • Power the logic from an external, known‑good 3.3 V source to confirm. If it boots normally then, repair/replace the internal PSU parts; if it does not, investigate firmware corruption (serial re‑flash) or a failed ESP8285/flash.

Detailed problem analysis

  • Symptom mapping
    • Very slow LED blink (one brief flash every few seconds) + unresponsive button almost always indicates the ESP8285 never reaches the main application. The usual reasons are:
    • Brown‑out (undervoltage) causing watchdog resets.
    • Corrupted firmware image that can’t pass early init.
    • Less commonly, MCU or flash hardware damage.
    • The Basic R3’s pushbutton is wired to a GPIO (GPIO0 on most revisions) with a pull‑up. If the MCU never boots, the firmware never samples the button → it seems inoperative.
  • Power architecture (what typically fails)
    • Basic R3 uses a small offline AC→low‑voltage supply that feeds a 3.3 V linear regulator (commonly AMS1117‑3.3 or similar). Aging electrolytics or a weakened primary side will leave the 3.3 V rail low and/or very noisy.
    • Excess ripple or <3.2 V at the 3.3 V rail puts the ESP8285 into repeated brown‑out resets → slow, “heartbeat‑like” LED.
  • What the slow blink is not
    • It is not the normal pairing pattern (which is typically faster). It also isn’t caused by a bad “reset” button in isolation—if the button were open‑circuit but power/firmware were OK, the unit would still boot and LEDs would follow normal states.

Current information and trends

  • Field experience reports show a high incidence of Sonoff Basic R‑series units going unstable after brownouts/surges due to dried‑out electrolytics and stressed primary parts. Replacing the 3.3 V regulator’s output capacitor and, where present, the small primary bulk capacitor often restores stability.
  • Note: Some web posts mention an “HLW8012” failure, but that IC is used in energy‑monitoring models (e.g., POW), not the Basic R3. Treat “HLW8012” as not applicable here.

Supporting explanations and details

  • Target measurements (multimeter; device open, exercising mains‑safety precautions):
    • 3.3 V rail at the ESP8285 VCC or on the in‑circuit programming header: 3.25–3.40 V DC with minimal ripple. If you have a scope, aim for <100 mVpp ripple. Anything <3.2 V or visibly wobbling correlates with your symptoms.
    • Pre‑regulator rail (input to the AMS1117‑3.3): typically around 4.5–6.5 V (varies by board revision). If this is missing or low, the primary side of the AC/DC supply is at fault (fusible resistor open, rectifier/open, switcher IC failure, or primary cap dried out).
  • Quick isolation test (no mains connected during the test):
    • Feed the logic 3.3 V directly:
    • Connect an external 3.3 V, 500 mA capable supply (or a USB‑to‑UART adapter that can provide a solid 3.3 V) to VCC and GND pads of the serial header.
    • Do not power the mains side at the same time.
    • Result A: Device enters pairing/rapid‑blink or responds to the button → internal PSU fault confirmed.
    • Result B: LED still shows the same very slow blink/no response → proceed to firmware/MCU checks.
  • Firmware integrity check (serial):
    • With the external 3.3 V supply still attached, put the ESP8285 into bootloader: hold the button (GPIO0 low), then apply 3.3 V, release after ~2–3 s.
    • Use esptool.py to read the flash ID (esptool.py flash_id). If the chip responds and you can erase/flash, firmware corruption was likely. If the tool cannot sync after verifying connections, suspect MCU/flash damage.

Ethical and legal aspects

  • Safety and compliance:
    • This device operates at mains voltage. Opening the enclosure and probing inside exposes hazardous potentials and energy storage in primary capacitors. Always disconnect from AC and wait a few minutes for discharge, and use an isolation transformer when live‑testing is unavoidable (professionals only).
    • Modifying the internal power supply or permanently bypassing it with an external adapter may void certifications and could violate local electrical codes. Do not deploy a modified unit in safety‑critical applications.

Practical guidelines

  • Step‑by‑step workflow
    1. Unplug from mains. Open the case.
    2. Visual inspection: look for a charred fusible resistor near AC input, cracked solder joints around the AC/DC section, bulged/leaking electrolytics (small 10–100 µF low‑voltage cap near the 3.3 V regulator; small primary HV cap).
    3. External 3.3 V test as above. If it boots, repair the PSU:
      • Replace the AMS1117‑3.3 (or equivalent) if it runs hot or the 3.3 V rail sags under load.
      • Replace the 3.3 V regulator’s output capacitor (use fresh low‑ESR 22–47 µF, ≥6.3 V).
      • If the pre‑reg rail is unstable/low, replace the small primary bulk capacitor (µF value and voltage per board), and inspect/replace the input fusible resistor and rectifier components.
      • Reflow dull/cracked joints in the PSU area.
    4. If it does not boot on good 3.3 V, try serial flashing:
      • Wire TX↔RX, RX↔TX, GND↔GND; keep VCC at 3.3 V external. Enter bootloader (GPIO0 low on power‑up) and re‑flash a known‑good image (stock or Tasmota/ESPHome if you used them).
    5. If serial comms fail or flashing verifies but the device still won’t run, the ESP8285/flash is likely damaged → replacement is more economical than component‑level repair.
  • Best practices
    • Never feed 5 V into the ESP VCC; it will destroy the MCU.
    • Use a supply that can source at least 300–500 mA at 3.3 V for testing; weak USB‑UART boards often droop under load and mislead diagnostics.
    • After PSU repair, soak‑test on mains for 30–60 minutes to confirm stability (watch LED behavior and 3.3 V rail).
  • Potential challenges and how to overcome them
    • No obvious damage yet unstable 3.3 V: ESR of old caps may be high; replace on suspicion.
    • Button still “dead” after PSU fix: verify the button’s continuity and the pull‑up resistor to VCC; trace to the GPIO pad.

Possible disclaimers or additional notes

  • Board revisions differ. Pad labels and component values vary across Basic R3 batches; use the silk‑screen where present.
  • LED patterns depend on firmware (stock eWeLink vs Tasmota/ESPHome); “very slow” here means markedly slower than normal pairing blinks.

Suggestions for further research

  • Look up: “Sonoff Basic R3 serial header pinout,” “ESP8285 GPIO0 flash mode,” “AMS1117‑3.3 stability and output capacitor ESR.”
  • If you intend long‑term reliability in surge‑prone environments, consider adding an external MOV/surge protector upstream and ensuring your installation follows local electrical codes.

Brief summary

  • Your symptoms match an internal power supply that can’t hold the 3.3 V rail, causing brown‑outs so the MCU never boots; hence the very slow LED blink and non‑responsive button. Confirm by powering the logic with a known‑good 3.3 V source. If it then behaves, repair the PSU (regulator + caps, inspect primary). If not, attempt a serial re‑flash; if that fails, the MCU/flash is likely damaged and replacement is most practical.

If you can, tell me:

  • Approximate blink rate (e.g., once every 2–3 s).
  • Whether it’s running stock eWeLink firmware or custom (Tasmota/ESPHome).
  • Whether you have a multimeter and/or a USB‑to‑UART adapter. With that, I can tailor exact test points and part suggestions for your board revision.

User question

Mon Sonoff Basic R3 ne fonctionne pas : le bouton de réinitialisation est inopérant et la LED clignote très lentement, et la tension 3.3v est stable

Artificial Intelligence Response

Direct answer to the question

  • Avec une alimentation 3,3 V stable, le duo “LED qui clignote très lentement + bouton inopérant” pointe d’abord vers un firmware qui ne démarre plus (image corrompue) ou, moins souvent, vers un défaut de l’ESP8285/sa flash ou du bouton (GPIO0) lui‑même.
  • Action prioritaire: tenter un accès série (bootloader) et reflasher. Si l’accès série échoue malgré un câblage correct, on suspecte un défaut matériel.

Detailed problem analysis

  • Chaîne de démarrage (ESP8285):
    • Au reset, le ROM‑boot charge l’image depuis la flash intégrée selon l’état des broches de bootstrap (GPIO0/GPIO2/GPIO15). Si l’image est invalide ou si la flash est illisible, la puce boucle (WDT) ou reste en bootloader.
    • Le “bouton reset/appairage” du Sonoff Basic R3 est routé sur GPIO0. Il n’agit que si le firmware tourne et l’interroge; si le firmware ne démarre pas, le bouton paraît “mort” même s’il est bon.
  • LED qui clignote très lentement:
    • Dans un Basic R3 stock, un clignotement lent est souvent lié à un état “pas de Wi‑Fi / attente”, donc le MCU s’alimente et exécute au moins un bout de code. Mais si le motif est anormalement lent/irrégulier et que le bouton ne répond à rien (ni court ni long appui), on rencontre fréquemment une image partiellement corrompue qui n’atteint jamais la boucle principale.
  • Pourquoi l’alimentation n’est probablement pas en cause:
    • Vous avez mesuré 3,3 V stable. On élimine donc la cause la plus courante (chutes de VCC). Reste à confirmer l’absence d’ondulation excessive et que les lignes RST/EN restent hautes.

Points à vérifier rapidement (ordre logique):

  1. Vérifier la ligne GPIO0 (appareil hors secteur, alimenté en 3,3 V de labo/USB‑UART):
    • Non appuyé: ~3,3 V; appuyé: ~0 V. Si la tension ne change pas, le bouton/pull‑up est en cause.
  2. Lire la console ROM au boot:
    • Reliez GND et RX de votre adaptateur USB‑UART (3,3 V) au Sonoff, réglez 74880 bauds, alimentez en 3,3 V: le ROM émet toujours un court log (boot mode…). Ces messages orientent sur strap/flash.
  3. Essai de synchronisation bootloader:
    • Forcer le bootloader (GPIO0 à 0 au power‑on) et interroger avec esptool (flash_id). Si OK, la puce vit et la flash répond: reflasher résout la majorité des cas.
  4. Si échec répété d’esptool malgré câblage correct:
    • Suspecter esp8285/flash HS, strap pins hors spec (ex: GPIO0/2/15 tirées au mauvais niveau), quartz/RC instable, ou un défaut soudure.

Current information and trends

  • Sur la famille Sonoff “R” (R2/R3), la plupart des variantes emploient un ESP8285. Les symptômes que vous décrivez sont typiques d’une image OTA corrompue ou d’une flash fatiguée.
  • En pratique terrain (2023–2025), la résolution la plus efficace est l’effacement complet + reflash (Tasmota/ESPHome) via UART. La restauration d’un firmware eWeLink d’origine est rarement accessible au public; les firmwares communautaires sont donc l’option de récupération la plus utilisée.

Supporting explanations and details

  • Broches clés à connaître:
    • GPIO0: bouton; niveau bas au boot → mode bootloader.
    • GPIO2: pull‑up; doit rester haut en boot normal.
    • GPIO15: pull‑down; doit rester bas en boot normal.
    • RST/EN: maintenir haut (≈3,3 V).
  • Lecture console ROM (74880 bauds): un “boot mode (x,y)” incohérent avec les straps attendus révèle un problème de tirages ou un appui permanent sur GPIO0.
  • Même si l’adaptateur USB‑UART ne fournit pas 300–500 mA, l’ESP démarre; mais un adaptateur trop faible peut faire échouer l’effacement/écriture de flash. Préférez une alimentation 3,3 V de labo ou un adaptateur costaud.

Ethical and legal aspects

  • Sécurité secteur: ne jamais connecter l’USB‑UART quand le Sonoff est relié au 230 V/120 V. Travaux uniquement hors tension. Respect des normes et de l’isolation; refermez le boîtier avant tout test sur secteur.
  • Garantie/Conformité: ouverture et flash non officiels peuvent annuler la garantie et modifier la conformité réglementaire.

Practical guidelines

Procédure pas à pas (sécurisée):

  1. Préparation
    • Matériel: USB‑UART 3,3 V (FT232/CP2102/CH340), fils dupont, éventuellement alim de labo 3,3 V.
    • Débranchez du secteur. Ouvrez le boîtier.
  2. Branchement UART
    • Sonoff GND → GND; Sonoff RX → TX adaptateur; Sonoff TX → RX adaptateur; Sonoff 3V3 → 3V3 adaptateur/alimentation (pas de 5 V).
  3. Lecture rapide de la console
    • Terminal à 74880 bauds. Alimentez: copiez le message (nous l’analyserons si vous nous le donnez).
  4. Entrer en bootloader
    • Maintenez le bouton (ou strap GPIO0→GND), appliquez 3,3 V, relâchez après 2–3 s.
  5. Test de la flash
    • esptool.py --port flash_id
    • Si réponse OK: effacez puis flashez.
  6. Reflash propre
    • Effacement: esptool.py --port erase_flash
    • Écriture (ESP8285 accepte souvent le mode DOUT): esptool.py --port write_flash -fm dout 0x0 .bin
    • Pour un test minimal: utiliser une image “minimal” (Tasmota minimal) pour valider le boot.
  7. Vérification
    • Redémarrez sans forcer GPIO0. LED: motif normal/appairage; bouton: de nouveau réactif.
  8. Si échec de connexion ou d’écriture
    • Inverser TX/RX, réduire le débit (115200 → 57600 → 74880), vérifier que GPIO0 est bien bas au power‑on, et que 3,3 V reste >3,25 V pendant l’opération.
    • Toujours KO: suspect matériel (ESP/flash/strap/cristal). Remplacement carte ou rework composant.

Tests additionnels rapides sans reflash:

  • Test bouton: multimètre en mode V sur GPIO0: passe de ~3,3 V à ~0 V en appui. Si non, bouton ou pull‑up défectueux.
  • Ondulation VCC: à l’oscilloscope, ripple <100 mV crête‑à‑crête recommandé pendant les clignotements.
  • Strap pins: GPIO2 ~3,3 V, GPIO15 ~0 V au boot normal.

Possible disclaimers or additional notes

  • Le firmware eWeLink d’origine du Basic R3 n’est généralement pas disponible en téléchargement public. Le reflash de récupération se fait le plus souvent avec Tasmota/ESPHome.
  • Il existe plusieurs révisions matérielles; l’emplacement des pads UART et la sérigraphie peuvent varier.
  • Une flash interne usée (ESP8285) se manifeste parfois par une efface/écriture qui passe mais une vérification/boot qui échoue ensuite.

Suggestions for further research

  • Chercher “ESP8266/ESP8285 boot mode GPIO0 GPIO2 GPIO15” (sélection des modes de démarrage).
  • “esptool.py flash_id / erase_flash / write_flash -fm dout” (procédures et options).
  • “Sonoff Basic R3 UART pads” (cartes et repérages des broches sur votre révision).

Brief summary

  • Les symptômes orientent vers un firmware qui ne démarre plus, pas vers l’alimentation.
  • Procédez par: lecture console 74880 → bootloader via GPIO0 → esptool flash_id → erase_flash + reflash (DOUT recommandé) → test. Si l’accès série est impossible malgré tout, le défaut est matériel (ESP/flash/strap), et le remplacement est à envisager.

Souhaitez‑vous que je vous guide en live sur la lecture du log 74880 et la commande esptool exactes pour votre système (Windows/macOS/Linux) ? Disposez‑vous d’un adaptateur USB‑UART 3,3 V et pouvez‑vous relever la tension sur GPIO0 en appuyant sur le bouton ?

Ask additional question

Wait...(2min)
Disclaimer: The responses provided by artificial intelligence (language model) may be inaccurate and misleading. Elektroda is not responsible for the accuracy, reliability, or completeness of the presented information. All responses should be verified by the user.