Browse Source

add new esp-env stuff

Thomas Buck 2 years ago
parent
commit
70a7ad284b

+ 43
- 4
input/projects/smarthome/espenv.md View File

1
 title: ESP-Env
1
 title: ESP-Env
2
-description: ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
2
+description: ESP32 / ESP8266 & BME280 / SHT2x / CCS811 sensor / actor with InfluxDB support
3
 parent: smarthome
3
 parent: smarthome
4
 git: https://git.xythobuz.de/thomas/esp-env
4
 git: https://git.xythobuz.de/thomas/esp-env
5
 github: https://github.com/xythobuz/esp-env
5
 github: https://github.com/xythobuz/esp-env
6
 position: 100
6
 position: 100
7
 date: 2020-01-06
7
 date: 2020-01-06
8
-update: 2022-05-26
8
+update: 2022-08-21
9
 comments: true
9
 comments: true
10
 ---
10
 ---
11
 
11
 
55
     [ "img/espenv_2.png", "Temperature data from ca. 7 months" ]
55
     [ "img/espenv_2.png", "Temperature data from ca. 7 months" ]
56
 ])
56
 ])
57
 %-->
57
 %-->
58
-
59
-Here are some more photos of the PCBs I made.
60
 All of the boards, except one, work fine.
58
 All of the boards, except one, work fine.
61
 The non-working one is just not connecting to WiFi, regardless of which specific ESP8266 I plug in there.
59
 The non-working one is just not connecting to WiFi, regardless of which specific ESP8266 I plug in there.
62
 I have no explanation for this, unfortunately.
60
 I have no explanation for this, unfortunately.
63
 
61
 
62
+<div class="collapse">Some more photos of the PCBs I made.</div>
63
+<div class="collapsecontent">
64
 <!--%
64
 <!--%
65
 lightgallery([
65
 lightgallery([
66
     [ "img/esp_env_relais_1.jpg", "Bathroom Relais in Box" ],
66
     [ "img/esp_env_relais_1.jpg", "Bathroom Relais in Box" ],
80
     [ "img/espenv_18.jpg", "SHT21 kitchen, back" ]
80
     [ "img/espenv_18.jpg", "SHT21 kitchen, back" ]
81
 ])
81
 ])
82
 %-->
82
 %-->
83
+</div>
83
 
84
 
84
 The source code can be found [on my Gitea server](https://git.xythobuz.de/thomas/esp-env).
85
 The source code can be found [on my Gitea server](https://git.xythobuz.de/thomas/esp-env).
85
 
86
 
87
+## Relais Update (August 2022)
88
+<a class="anchor" name="relais_update"></a>
89
+
90
+After successfully using the first [4x relais board](https://amzn.to/3FQdOXB) I ordered to control my bathroom lights and fan for a couple of months, I decided to use two more of the same boards for my livingroom lights.
91
+This turned out to be quite the feat however.
92
+
93
+I initially set up the devices as before without issues, fixing and cleaning up some stuff in the code along the way.
94
+When connecting the load, in my case LED driver modules, the issues started to appear however.
95
+
96
+<!--%
97
+lightgallery([
98
+    [ "img/esp_env_relais_scope_1.bmp", "Scope trace of Vcc and RST spikes" ],
99
+    [ "img/esp_env_relais_scope_2.bmp", "Scope trace of Vcc and RST spikes" ],
100
+    [ "img/esp_env_relais_scope_3.bmp", "Scope trace of Vcc and RST spikes" ],
101
+    [ "img/esp_env_relais_scope_4.bmp", "Scope trace of Vcc and RST spikes" ],
102
+    [ "img/esp_env_relais_scope_5.bmp", "Scope trace of Vcc and RST spikes" ],
103
+])
104
+%-->
105
+
106
+The ESP8266 simply reset nearly everytime it tried to switch a load.
107
+Investigating with an oscilloscope, it turns out there were nasty spikes on both the supply voltage and the reset pin.
108
+Keep in mind, for the screenshots above I already added a bunch of capacitors (100uF, 100nF, 22pF) to both lines, without any change.
109
+I tried out literally every option I could find suggested in online discussions, like connecting GND of the circuit to PE, switching neutral instead of the phase, adding pull-ups for RST, adding capacitors.
110
+I even bought a filter module for 220V to put in front of the drivers.
111
+Nothing helped.
112
+
113
+<!--%
114
+lightgallery([
115
+    [ "img/esp_env_relais_test_1.jpg", "One of the two new relais setups, with power supply." ],
116
+    [ "img/esp_env_relais_test_2.jpg", "Close-up of ESP-01 with capacitors for testing." ],
117
+])
118
+%-->
119
+
120
+Getting kinda desperate, I remembered someone online mentioned that "ESP-01s" modules are not only equipped with more memory, they also have better EMV resistance for some reason.
121
+This sounded strange to me, but nonetheless I ordered some ESP-01s modules instead of the ESP-01 I had before.
122
+And it worked!
123
+No problems at all with the new ESPs.
124
+
86
 ## License
125
 ## License
87
 
126
 
88
     ----------------------------------------------------------------------------
127
     ----------------------------------------------------------------------------

+ 2
- 1
input/projects/smarthome/mqtt_web.md View File

29
 
29
 
30
 <!--%
30
 <!--%
31
 lightgallery([
31
 lightgallery([
32
-    [ "img/mqtt_lights_web.png", "Screenshot of Lights Control" ],
32
+    [ "img/mqtt_lights_web_2.png", "Screenshot of Livingroom controls" ],
33
+    [ "img/mqtt_lights_web.png", "Screenshot of Bathroom controls" ],
33
 ])
34
 ])
34
 %-->
35
 %-->
35
 
36
 

BIN
static/img/esp_env_relais_scope_1.bmp View File


BIN
static/img/esp_env_relais_scope_1_small.bmp View File


BIN
static/img/esp_env_relais_scope_2.bmp View File


BIN
static/img/esp_env_relais_scope_2_small.bmp View File


BIN
static/img/esp_env_relais_scope_3.bmp View File


BIN
static/img/esp_env_relais_scope_3_small.bmp View File


BIN
static/img/esp_env_relais_scope_4.bmp View File


BIN
static/img/esp_env_relais_scope_4_small.bmp View File


BIN
static/img/esp_env_relais_scope_5.bmp View File


BIN
static/img/esp_env_relais_scope_5_small.bmp View File


BIN
static/img/esp_env_relais_test_1.jpg View File


BIN
static/img/esp_env_relais_test_1_small.jpg View File


BIN
static/img/esp_env_relais_test_2.jpg View File


BIN
static/img/esp_env_relais_test_2_small.jpg View File


BIN
static/img/mqtt_lights_web_2.png View File


BIN
static/img/mqtt_lights_web_2_small.png View File


Loading…
Cancel
Save