Sorry, your browser does not support JavaScript!

Quickstart manual for SCR-485,step by step tutorial

Device Power-Up

Input: Connect 220V voltage input

Output: Connect to the resistive load, such as the heater of the tank boiler.

image-20240605081243969

FAN Power Supply: The fan requires 220V power supply, directly connected to the input voltage.

image-20240605082020285

ESPHome

Installing ESPHome

If you have already installed Home Assistant, you can add the ESPHome add-on within Home Assistant. We will introduce how to add and edit SCR-485 devices in Home Assistant in another document.

If you are not familiar with Home Assistant, you can install ESPHome directly. Refer to the link below.

https://esphome.io/guides/installing_esphome

If you have already installed Python, the whole process is very simple, just one command:

pip install esphome

image-20240605083123292

Running ESPHome

We choose to use ESPHome in dashboard mode. If you are using a Windows system, the steps are as follows:

  1. Enter cmd (please do not use PowerShell).
  2. Create a folder named esphome_config (name is arbitrary, but will be used in the command below).
  3. Run esphome dashboard esphome_config.

image-20240605083816741

  1. Access http://localhost:6052/, and you will see the following page.

image-20240605083851888

If you are using other systems, the method is similar; please search on your own.

Updating YAML Files

  1. Access http://localhost:6052/. The first time, you need to add a device as shown in the following image: image-20240605084753651
  2. Get the latest YAML file from https://github.com/lewei50/Solar-PV-Monitoring/blob/master/ESPHome/scr-485.yaml

image-20240605084119225

  1. Click edit, copy the latest YAML file into it. Click Save, then Install.

image-20240605085148386

  1. After clicking "Install," a menu will pop up, select "Wirelessly".

image-20240605085245601

  1. Wait for the upload to complete, then click "Close".

image-20240605085531241

Using SCR-485

Configuring WLAN

  1. Search for the WLAN AP, link to Scr-485.

image-20240605091725463

  1. Enter the WLAN's SSID and password, then click Save.

image-20240605092139918

Parameter List

Access http://scr-485.local/ to directly set related parameters

image-20240605092226636

Parameter list:

Name Comment
1 Start Time Set: Automatic mode start time (only effective when automatic mode is on)
2 End Time Set: Automatic mode end time (only effective when automatic mode is on)
3 Auto Mode Switch Set: Automatic mode switch, turns on to automatically adjust power output based on grid power
3 With Battery Set: Indicates if the system has a battery, turns on to adjust power output based on grid power and battery power (only effective in automatic mode)
Battery Power Display value: Battery power
Grid Power Display value: Grid power
Hysteresis Set: Automatic control hysteresis value (only effective in automatic mode)
Max Power Set the maximum power load (if the maximum power load is 3600W, this needs to be set to 3600)
Restart
Set Power Set: Current set power of SCR-485
Threshold Set: Automatic mode set point power (only effective in automatic mode)
scr_485_adc_read Display value
scr_485_set_adc Display value

Example 1: Manually Controlling Boiler Heater Power

Starting from a simple example, suppose you have a boiler heater with a maximum power of 3.5 kW, and you want to limit its set power to 1500W using SCR-485.

You just need to do the following:

  1. Set "Auto Mode Switch" and "With Battery" to "off".
  2. Set "Max Power" to 3500.
  3. Set "Set Power" to 1500.

image-20240605102723555

Of course, you might find it difficult to set precise values by dragging on the webpage. So, you could consider setting via API API of ESPHome

Invoke the following addresses through HTTP Get:

http://scr-485.local/number/max_power/set?value=3500

http://scr-485.local/number/set_power/set?value=1500

image-20240605103217497

Example 2: Controlling Boiler Heater Power Based on Grid Power

This example is a bit more complex as it requires specifying the source of grid power. It boils down to three steps:

How to Obtain Grid Power

Here, we use the IAMMETER series of meters as an example, because the IAMMETER energy meters provide this API MonitorJson API, allowing SCR-485 to obtain real-time power readings via this API.

Modifying the YAML File

Due to ESPHome functionality limitations, it's not possible to set the source of grid power from the front-end page; it can only be achieved by modifying the YAML file (if you know a way to accomplish this, please let us know).

Log into the ESPHome Dashboard and click "Edit"

http://localhost:6052/

image-20240605112553365

Modify the IP address, enter the IP of the meter measuring grid power here.

image-20240605120330226

If using a three-phase meter to measure grid power, specify the corresponding phase in the YAML.

image-20240605120403007

Click the top right "save", "Install", "Wirelessly", wait for the end, then click "Close"

image-20240605121747631

Please note: After each modification and upload of YAML, you need to reconfigure the Wi-Fi parameters of SCR-485 (reconnect to the Scr-485 AP)

Access http://scr-485.local/ to set parameters

image-20240605123743941

If you cannot set precise parameters by dragging, you can directly call the following two APIs to complete the settings:

http://scr-485.local/number/threshold/set?value=-50

http://scr-485.local/number/hysteresis/set?value=25

The settings shown in the above image are equivalent to the following strategy:

  • Turn on automatic mode
  • Set the control point power to -50W (negative grid power represents power feeding to the grid, positive grid power represents power consumption from the grid), hysteresis at 25W
  • This automatic strategy is effective from 9 am to 4 pm every day.

That is, when grid power is greater than -25W (threshold+hysteresis), SCR-485 will reduce power output, the reduction amount being grid power - threshold.

When grid power is less than -75W (threshold-hysteresis), SCR-485 will increase power output, the increase amount being threshold-grid power.

Automatic Control Logic

This is the entire device's automatic control logic diagram, using the most basic high-low level control logic. If interested, you can learn more. If you have better ideas, feel free to discuss at https://imeter.club/

automation_scr_grid_power

References

Activities - Apply for the Linear Power Controller (SCR-485)

Control a boiler heater using a Wi-Fi SCR module automatically

ESP32 + SCR module: Linearly adjust the power output of resistive loads, such as heaters

A smart Thermostat “Helper” with Linear Power Adjustment, “Wi-Fi Voltage Controller”

IAMMETER`s products

Top