ESP8266: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 4: | Zeile 4: | ||
Links: | Links: | ||
* http://www.instructables.com/howto/ESP8266/ | * http://www.instructables.com/howto/ESP8266/ | ||
== 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 | |||
|} | |||
== [[MicroPython]] == | == [[MicroPython]] == |
Version vom 1. Januar 1970, 01:00 Uhr
ESP8266
Allgemeines
Links:
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 |
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
x