Updated PZEM004T, Wemos D1 Mini and a 1602 I2C display (markdown)

Michael Ingraham 2019-02-12 13:10:27 -05:00
parent 266afa12c5
commit c251d55bea
1 changed files with 6 additions and 7 deletions

@ -29,7 +29,7 @@ To compile (I used Core 2.3.0), edit these files:
## Tasmota config parameter
Set module as GENERIC (18), then GPIOs as in image:
Set module as GENERIC (18), then GPIOs as in the image below:
<img src="https://user-images.githubusercontent.com/21192010/51801083-671dd780-2239-11e9-885d-ac338d739441.png" height="400" />
@ -38,23 +38,23 @@ Set module as GENERIC (18), then GPIOs as in image:
- set "**DisplayModel 1**", and "**DisplayMode 0**"
- finally, add a Rule to display values (I choose these ones):
```
rule1 on tele-ENERGY#Power do DisplayText [z] [x1y0]%value%W endon on tele-ENERGY#Today do DisplayText [x8y0]%value%Wh endon on tele-ENERGY#Voltage do DisplayText [x1y1]%value%V endon on tele-ENERGY#Current do DisplayText [x8y1]%value%A endon
Rule1 ON Tele-ENERGY#Power DO DisplayText [z] [x1y0]%value%W ENDON ON Tele-ENERGY#Today DO DisplayText [x8y0]%value%Wh ENDON ON Tele-ENERGY#Voltage DO DisplayText [x1y1]%value%V ENDON ON Tele-ENERGY#Current DO DisplayText [x8y1]%value%A ENDON
```
- remember to enable the rule, with "**rule1 1**"
- remember to enable the rule, with "**Rule1 1**"
## Images and Wiring diagram
**DANGER - MAINS VOLTAGE**. Be sure to crimp connectors and use heat-shrinking tube wherever possible/needed, and tightly secure any screw.
<img src="https://user-images.githubusercontent.com/21192010/51847810-bb4db800-231c-11e9-9d25-b93591115351.png" height="400" />
<img src="https://user-images.githubusercontent.com/21192010/51847810-bb4db800-231c-11e9-9d25-b93591115351.png" height="400" /><br><br>
How it looks, from web gui:
<img src="https://user-images.githubusercontent.com/21192010/51801658-2924b180-2241-11e9-8bc0-b456ac3c234f.png" height="400" />
<img src="https://user-images.githubusercontent.com/21192010/51801658-2924b180-2241-11e9-8bc0-b456ac3c234f.png" height="400" /><br><br>
How it looks, from closed box (set contrast using the little trimmer/pot on back of display, and i cut a bit of corners from display to have it flush with border, and used 2 exagonal plastic standoffs with nuts and bolts to secure it to trasparent top):
<img src="https://user-images.githubusercontent.com/21192010/51847823-c3a5f300-231c-11e9-8755-a7787327e5c5.png" height="400" />
<img src="https://user-images.githubusercontent.com/21192010/51847823-c3a5f300-231c-11e9-8755-a7787327e5c5.png" height="400" /><br><br>
Mains IN, mains OUT, all sealed:
@ -64,7 +64,6 @@ Mains IN, mains OUT, all sealed:
* Check images below for more information about the 1Kohm resistor needed to reduce voltage from 5V to 3V3 for the PZEM-04T serial connection.
* **ALTERNATIVE**: No modification required on the PZEM-04T. Rather than using the 3.3V output from the Wemos D1 Mini to power the PZEM-04T, use the same 5V buck converter output (also used to supply power to the display and the Wemos D1 Mini) to power the PZEM-04T. This eliminates the need for the resistor and the need to modify the PZEM-04T at all.
<img src="https://user-images.githubusercontent.com/21192010/51847858-d4eeff80-231c-11e9-9c13-41172a6924ee.png" height="400" />
## Calibration