New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Physical push button alongside DHT22 sensor? #1172
Comments
Yes, your schema is OK and must work fine |
100nF across the switch will help debounce the switch |
@smadds do you mean the capacitor will be connected to GND and GPIO3/VCC in parallel to the switch? Or where is it located exactly (sorry, I'm a software guy ;-) and currently refreshing my electronics skills). |
It can be either end of the wire - it's just easier to mount it on the back of the switch. Effectively it's between the I/O pin and gnd |
@ionciubotaru @smadds If I get this correct: I should first try with the 4.7k resistor only. |
I dont suppose you have documented how you get the temp readings, I have been trying for ages to get this working without success |
@2e0vet I used a AM2302 sensor connected as follows on the Sonoff: AM2302 pins:
(Pins are numbered from left to right: see this specification document). Connection to the Sonoff:
(See GPIO Locations for Sonoff pins locations) Then of the Tasmota web interface, go to Configuration > Configure Module and set the GPI014 Sensor field to 03 DHT22. Click the Save button and the Sonoff should reboot. After a few seconds (~30s) temperatures and readings should be displayed on the web interface main page. |
My setup (only using a 4.7kΩ resistor) works fine. In Configuration > Configure Module page, I set GPIO3 Serial In to the value 09 Switch1. |
Hello,
I have an already working setup of a Sonoff Basic running Tasmota (v5.2.4) and reading temperature and humidity on a DHT22 connected on GPIO14 (in Module settings page, GPI014 Sensor is set to 03 DHT22). Both relay state and DHT22 values are retrieved on home automation software via MQTT).
I would like to add a push (momentary) button to this setup so that pushing the button toggles the relay (directly but also sends the new state MQTT message).
I know I'll have to configure the SwitchMode and/or SwitchTopic but I am more concerned about how and where connect the push button...
I have found issue #508 (Toggle Switch on GPIO 1(RX) or 3(TX)) which suggest to use GPIO03 (RX) but it uses a toggle/maintained switch not a push/momentary like I want, so I am not sure the following schema works:
(Ignore the gray "F" zones: they symbolizes female pins on a male header I soldered on the Sonoff board)
The text was updated successfully, but these errors were encountered: