Skip to content

Commit 2c24726

Browse files
Merge '/vandaag' and '/verleden' to a single web page. (#4)
1 parent 23a350e commit 2c24726

12 files changed

+1569
-1046
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## About
44

5-
`smartMeterLogger-esp32` connects to a smart meter (slimme meter) and logs the electricity use per minute to an sdcard. Saved data can be viewed in a html5 compatible browser on your phone/laptop/desktop.
5+
`smartMeterLogger-esp32` connects to a smart meter (slimme meter) and logs the electricity use per minute to an sdcard. Saved data can be viewed in a html5 compatible browser on your phone/laptop/desktop.
66

77
Compiles in the Arduino IDE.
88

@@ -18,12 +18,13 @@ Compiles in the Arduino IDE.
1818

1919
## How to use
2020

21-
1. Change your credentials in `wifisetup.h`.
22-
1. (Optional) In `smartMeterLogger-esp32.ino` uncomment `#define SH1106_OLED` if you compile for sh1106 instead of ssd1306 and set the i2c pins (and address) for your oled screen.<br>If you do not use a oled you can leave this setting as it is.
23-
3. Save all files and flash the sketch to your esp32.
24-
4. Connect your esp32 to the smart meter.<br>Take note that to read from the smartmeter the `DATA` signal has to be [inverted and level shifted](#level-shifter--inverter).
25-
5. Switch on the esp32. If you added a ssd1306/sh1106 oled screen, the ip address (or an error) will be visible on the screen.<br>If there is no oled you can check the ip address on the serial port in the Arduino IDE.
26-
6. Browse to the ip address of your esp32 to see your current energy use.
21+
1. Format an sdcard with a fat32 filesystem and insert the card in the reader.
22+
2. Open the sketch and change your credentials in `wifisetup.h`.
23+
3. (Optional) In `smartMeterLogger-esp32.ino` uncomment `#define SH1106_OLED` if you compile for sh1106 instead of ssd1306 and set the i2c pins (and address) for your oled screen.<br>If you do not use a oled you can leave this setting as it is.
24+
4. Save all files and flash the sketch to your esp32.
25+
5. Connect your esp32 to the smart meter.<br>Take note that to read from the smartmeter the `DATA` signal has to be [inverted and level shifted](#level-shifter--inverter).
26+
6. If you added a ssd1306/sh1106 oled screen, the ip address (or an error) will be visible on the screen.<br>If there is no oled you can check the ip address on the serial port in the Arduino IDE.
27+
7. Browse to the ip address of your esp32 to see your current energy use.
2728

2829
If you have a garbled screen you most likely compiled for the wrong oled type.<br>Try to comment/uncomment `#define SH1106_OLED` to solve this.
2930

@@ -41,15 +42,16 @@ The driver library for a ssd1306/sh1106 oled can be installed with the Arduino l
4142

4243
[DSMR v5.0.2 P1 Companion Standard.pdf](https://github.com/matthijskooijman/arduino-dsmr/blob/master/specs/DSMR%20v5.0.2%20P1%20Companion%20Standard.pdf)
4344

44-
## Hardware
45+
## Needed or supported hardware
4546

4647
### ESP32: LilyGo TTGO T7 with external antenna
4748

48-
SmartMeterLogger is developed on LilyGo TTGO T7 boards. The LilyGo TTGO T7 has an external antenna connector and a decent 3.3v LDO.<br>Without an external antenna the WiFi signal tends to be too poor to be of any use over longer distances and/or through several walls. The board will have to modified slightly to enable the external antenna.
49+
SmartMeterLogger is developed on LilyGo TTGO T7 boards. The LilyGo TTGO T7 has an external antenna connector and a decent 3.3v LDO.<br>Without an external antenna the WiFi signal tends to be too poor to be of any use over longer distances and/or through several walls. The board will have to modified slightly to enable the external antenna.
4950

5051
![T7 pic](img/t7.jpg)
5152

5253
Below you can see how to enable the external antenna. Move the zero ohm resistor from position 1-2 to position 3-4. Or remove the resistor and solder position 3-4 closed.
54+
<br>Another nice thing with an external antenna is that the current needed to operate the logger drops below 250mA so the logger can be powered by the smartmeter.
5355

5456
![external-config](https://user-images.githubusercontent.com/17033305/78676790-34fd1080-78e7-11ea-8bb0-aee88efe75a6.jpg)
5557

@@ -60,6 +62,7 @@ See [this LilyGo issue](https://github.com/LilyGO/ESP32-MINI-32-V1.3/issues/4#is
6062
![card reader](img/sdboard.png)
6163

6264
Using the default pins.
65+
Use an EMPTY fat32 formatted sdcard on the first boot.
6366

6467
### Level shifter / inverter
6568

0 commit comments

Comments
 (0)