WiFiPCController-Hardware.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. GPIOs 4 and 5 are the only ones that are always high impedance. All others do have internal pull-ups or are even driven low/high during boot.
  2. GPIOs 3, 12, 13 and 14 pulled HIGH during boot. Their actual state does not influence the boot process.
  3. GPIOs 0, 1, 2 and 15 are pulled HIGH during boot and also driven LOW for short periods.
  4. The device will not boot if 0, 1 or 2 is driven LOW during start-up.
  5. GPIO 16 is driven HIGH during boot, don't short to GND.
  6. http://rabbithole.wwwdotorg.org/2017/03/28/esp8266-gpio.html
  7. GPIO Behaviour Summary
  8. D0 16 High High during boot, falls after ~110ms (to ~1V?) High during boot, falls after ~110ms (to ~1V)
  9. D1 5 Low Low Low
  10. D2 4 Low Low Low
  11. D3 0 Low then oscillates Varies, stabilizes high after ~100ms Varies, stabilizes low after ~110ms
  12. D4 2 Varies, stabilizes high after ~60ms Varies, stabilizes high after ~70ms Varies, stabilizes low after ~110ms
  13. D5 14 High High, then low after ~110ms High, then low after ~110ms
  14. D6 12 High High, then low after ~110ms High, then low after ~110ms
  15. D7 13 High High, then low after ~110ms High, then low after ~110ms
  16. D8 15 Low Low, with glitch ~110ms Low, with glitch ~110ms
  17. D9 3 Low Low until ~50ms then high Low until ~50ms then high until ~110ms then low
  18. D10 1 Low Low until ~50ms then high Low until ~50ms then high until ~110ms then low
  19. Conclusion: GPIOs D1 and D2 are the only safe GPIOs I can use to drive relays if I don’t want them to operate autonomously at boot. I will have to rework my PCB:-(
  20. D3, D4 dürfen während dem boot nicht auf low gezogen werden, sonst bootet der ESP nicht -> nicht als Eingang zu gebrauchen, außer für Taster die während des bootens
  21. ziemlich sicher nicht betätigt werden.
  22. Daher folgende Pin-Zuordnung:
  23. D1/GPIO5 -> power switch
  24. D2/GPIO4 -> reset switch
  25. Ausgangsbeschaltung zur Ansteuerung von POWER und RESET:
  26. GPIO mit active HIGH logik
  27. ext. Pulldown-Widerstand -> Basiswiderstand auf NPN-Transistor
  28. Collector ist Schaltausgang und kommt parallel zum jeweiligen Eingang am Mainboard
  29. sollte bei den beiden "safe" GPIOs kein Problem machen
  30. Eingang von Power-LED:
  31. NPN-Transistor mit Basiswiderstand von POWER_LED, Collector zieht GPIO auf GND wenn LED aktiv