mirror of https://github.com/arendst/Tasmota.git
Updated Expanding Tasmota (markdown)
parent
6915d825dd
commit
c8965dc92a
|
@ -1,14 +1,7 @@
|
|||
You can wire peripherals (sensors, displays, switches, LED lights, ...) to available pins of the [ESP8266](https://en.wikipedia.org/wiki/ESP8266) chip that controls these devices.
|
||||
|
||||
> To make a link between the different naming schemes the [Pin Definition overview](https://github.com/esp8266/esp8266-wiki/wiki/Pin-definition) in the ESP8266 wiki is quite helpful.
|
||||
|
||||
# :red_circle: Restrictions
|
||||
|
||||
If you can avoid it, don't use GPIOs: **0, 1, 2, 6-11, 15 and 16**. That leaves **4, 5, 12, 13, 14** as GPIOs without any constraints. **3** being RX is also good to avoid (PWM is not working on this GPIO).
|
||||
|
||||
Others ***can*** be used but you have to mind the constraints outlined in [this document](https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html).
|
||||
|
||||
### Examples
|
||||
## Examples
|
||||
#### Connect switch
|
||||
If you take a Sonoff Basic and connect a switch between pin4 (GND) and pin5 (GPIO14) of the 5 pin programming header you now have a second switch connected to the device. You can set this through the module config page as option `Switch1 (9)` or from the command line with `gpio14 9`.
|
||||
|
||||
|
@ -25,7 +18,13 @@ R3 pin4 | 3.3V
|
|||
|
||||
You can then plug a sensor into the jack like you would to a [Sonoff TH](Sonoff-TH) and define what sensor you have connected to GPIO14.
|
||||
|
||||
# :red_circle: Electrical considerations
|
||||
# :red_circle: Restrictions
|
||||
|
||||
If you can avoid it, don't use GPIOs: **0, 1, 2, 6-11, 15 and 16**. That leaves **4, 5, 12, 13, 14** as GPIOs without any constraints. **3** being RX is also good to avoid (PWM is not working on this GPIO).
|
||||
|
||||
Others ***can*** be used but you have to mind the constraints outlined in [this document](https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html).
|
||||
|
||||
### Electrical considerations
|
||||
When you switch a GPIO pin to an input and hang a long wire off of it, that wire can pick up stray signals and cause the voltage on the GPIO pin to vary. This can cause the system to think the switch has changed.
|
||||
|
||||
To fix this, there are several things you can do.
|
||||
|
|
Loading…
Reference in New Issue