Skip to content

minou65/ESP32-Powerbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PVPowerbox

Table of contents

Desription

The PVPowerbox allows loads to be switched on or off depending on the power available from the photovoltaics. In the picture you can see how the loads (red) are switched on and off, depending on the power (green) that is available. The regular peaks are from the heat pump, which is not controlled via the PVPowerbox

alt text Home page

Librarys

ModbusClientTCP
AsyncTCP

Received Signal Strength Indicator (RSSI)

The RSSI is displayed in dBm at the top right. RSSI, is a measurement of how well your device can hear a signal from an access point or router.

  • Required for Amazing Signal Strength: Around -30 dBm. Achievable only when the client device is very close to the access point (AP).
  • Very Good Signal Strength: Approximately -67 dBm. Suitable for applications like VoIP/VoWi-Fi and streaming video.
  • Moderate Signal Strength: Around -70 dBm.

Settings

Inverter

IPAddress

IP address of the inverter

Port

Register Input power

Register where the Input power is sored. See inverter documentation

Data Length

How many bytes should be read. See inverter documentation.

Gain

The gain setting is used to adjust the output power. See inverter documentation.

Interval (seconds)

This setting specifies the time interval in seconds between each polling of the inverter.

Relay

Designation

Description of the output

Power (W)

What power from the photovoltaic system is necessary for the output to be activated

GPIO

Default GPIO's are

  • Relay 1 = 22
  • Relay 2 = 21
  • Relay 3 = 17
  • Relay 4 = 16

Shelly

Designation

Description of the output

Power (W)

What power from the photovoltaic system is necessary for the output to be activated

URL on

URL to turn on Shelly

URL off

URL to turn off Shelly

minimum on time (minutes)

Switch-off delay when the power falls below the power setting

Do not enable before

Here you can define a time. The Shelly will not be switched on before this time

WiFi

Default Password

When not connected to an AP the default password is 123456789

Default IP address

When in AP mode, the default IP address is 192.168.4.1

OTA

OTA is enabled, use default IP address or if connected to a AP the correct address. Port is the default port.

Configuration options

After the first boot, there are some values needs to be set up. These items are maked with * (star) in the list below.

You can set up the following values in the configuration page:

  • Thing name - Please change the name of the device to a name you think describes it the most. It is advised to incorporate a location here in case you are planning to set up multiple devices in the same area. You should only use english letters, and the "_" underscore character. Thus, must not use Space, dots, etc. E.g. lamp_livingroom *
  • AP password - This password is used, when you want to access the device later on. You must provide a password with at least 8, at most 32 characters. You are free to use any characters, further more you are encouraged to pick a password at least 12 characters long containing at least 3 character classes. *
  • WiFi SSID - The name of the WiFi network you want the device to connect to. *
  • WiFi password - The password of the network above. Note, that unsecured passwords are not supported in your protection. *

Blinking codes

Prevoius chapters were mentioned blinking patterns, now here is a table summarize the menaning of the blink codes.

  • Rapid blinking (mostly on, interrupted by short off periods) - Entered Access Point mode. This means the device create an own WiFi network around it. You can connect to the device with your smartphone (or WiFi capable computer).
  • Alternating on/off blinking - Trying to connect the configured WiFi network.
  • Mostly off with occasional short flash - The device is online.

Reset

When CONFIG_PIN is pulled to ground on startup, the Thing will use the initial password to buld an AP. (E.g. in case of lost password)

Reset pin is D3 / IO17

About

A project to read an inverter and switch loads on and off depending on the available power

Resources

License

Stars

Watchers

Forks

Packages

No packages published