ESP8266: Unterschied zwischen den Versionen

Aus Shea Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
 
(Änderung 408 von Suelmann (Diskussion) rückgängig gemacht.)
Markierung: Rückgängigmachung
 
(15 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
__NOTOC__
__NOTOC__
= ESP8266 =
= ESP8266 =
== Allgemeines ==
* [https://wiki.wemos.cc/tutorials:get_started:get_started_in_arduino WEMOS - Get started in Arduino]
* [https://wiki.wemos.cc/products:d1:d1_mini WEMOS D1 mini]
* [https://wiki.wemos.cc/products:d1:d1_mini_pro WEMOS D1 mini Pro]
* [https://wiki.wemos.cc/products:d1_mini_shields:battery_shield WEMOS Battery Shield]
* http://www.instructables.com/howto/ESP8266/
== IRRemote ==
* [http://marc.merlins.org/perso/arduino/post_2017-04-03_Arduino-328P-Uno-Teensy3_1-ESP8266-ESP32-IR-and-Neopixels.html IRRemote + Neopixels]
== MH-Z19B ==
{| border="1" cellpadding="2" cellspacing="0"
| Nr
| Pin
| Funktion
|-
| 1
| Vo
| Analog output (0.4~2V) or (0~2.5V)
|-
| 2
| Rx
| UART(RXD)TTL Level data input
|-
| 3
| Tx
| UART(TXD)TTL Level data output
|-
| 4
| SR
|-
| 5
| HD
| HD(zero calibration,low level lasting for over 7s under low level is effective)
|-
| 6
| Vin
| Vin(4.5~5.5V DC)
|-
| 7
| GND
| Ground
|-
| 8
| AOT
|-
| 9
| PWM
| PWM
|}
* https://revspace.nl/MHZ19
* [http://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh-z19b-co2-ver1_0.pdf User's Manual]
== Wemos D1 Mini Pins ==
{| border="1" cellpadding="2" cellspacing="0"
| Pin
| Function
|-
| TX
| TXD
|-
| RX
| RXD
|-
| A0
| Analog input, max 3.3V input
|-
| D0
| IO
|-
| D1
| IO, SCL
|-
| D2
| IO, SDA
|-
| D3
| IO, 10k Pull-up
|-
| D4
| IO, 10k Pull-up, BUILTIN_LED
|-
| D5
| IO, SCK
|-
| D6
| IO, MISO
|-
| D7
| IO, MOSI
|-
| D8
| IO, 10k Pull-down, SS
|-
| G
| Ground
|-
| 5V
| 5V
|-
| 3V3
| 3.3V
|-
| RST
| Reset
|}
== USB-Serial-Kabel ==
{| border="1" cellpadding="2" cellspacing="0"
| Kabel
|-
| schwarz
|-
| rot
|-
| grün
|-
| weiß
|}


== [[MicroPython]] ==
== [[MicroPython]] ==
Flashen mit
Links:
* [https://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/index.html Tutorial]
* [http://micropython-on-wemos-d1-mini.readthedocs.io/en/latest/index.html Workshop]
* [http://micropython.org/webrepl/ WebREPL]
 
Flashen:
 
 
<pre><nowiki>
cd ~/MicroPython
esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_mode=dout --flash_size=detect 0 esp8266-20171101-v1.9.3.bin
</nowiki></pre>
 
Verbindung aufbauen:
 
 
<pre><nowiki>
picocom /dev/ttyUSB0 -b115200
</nowiki></pre>


----
----
[[KategorieWissen]]
[[KategorieWissen]]

Aktuelle Version vom 20. Dezember 2021, 13:54 Uhr

ESP8266

Allgemeines

IRRemote

MH-Z19B

Nr Pin Funktion
1 Vo Analog output (0.4~2V) or (0~2.5V)
2 Rx UART(RXD)TTL Level data input
3 Tx UART(TXD)TTL Level data output
4 SR
5 HD HD(zero calibration,low level lasting for over 7s under low level is effective)
6 Vin Vin(4.5~5.5V DC)
7 GND Ground
8 AOT
9 PWM PWM

Wemos D1 Mini Pins

Pin Function
TX TXD
RX RXD
A0 Analog input, max 3.3V input
D0 IO
D1 IO, SCL
D2 IO, SDA
D3 IO, 10k Pull-up
D4 IO, 10k Pull-up, BUILTIN_LED
D5 IO, SCK
D6 IO, MISO
D7 IO, MOSI
D8 IO, 10k Pull-down, SS
G Ground
5V 5V
3V3 3.3V
RST Reset

USB-Serial-Kabel

Kabel
schwarz
rot
grün
weiß

MicroPython

Links:

Flashen:


cd ~/MicroPython
esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_mode=dout --flash_size=detect 0 esp8266-20171101-v1.9.3.bin

Verbindung aufbauen:


picocom /dev/ttyUSB0 -b115200

KategorieWissen