Readme files updates
This commit is contained in:
@@ -1,48 +1,35 @@
|
||||
# Daikin Chiller (RTU) Emulator
|
||||
# EQUIPMENT_TYPE MANUFACTURER MODEL RTU
|
||||
|
||||
This project is an Arduino-based emulator for a Daikin Chiller unit, communicating over Modbus RTU. It is designed to be a flexible template that can be adapted to simulate different types of chillers by modifying the configuration and state logic.
|
||||
## Brief Introduction
|
||||
Equipment specifc details that make it different from other devices
|
||||
|
||||
The emulator operates on a state machine with three core states:
|
||||
* **Standby**: The chiller is idle but ready.
|
||||
* **Running**: The chiller is active and operational.
|
||||
* **Fail**: The chiller has encountered a fault condition.
|
||||
|
||||
## Features
|
||||
|
||||
* **Modbus RTU Communication**: Emulates a Modbus slave device.
|
||||
* **State Machine Logic**: Simulates different operational states (Standby, Running, Fail).
|
||||
* **Dynamic Value Simulation**: Uses "Strategies" (e.g., PID, Ramp) to generate realistic, changing values for Modbus points.
|
||||
* **Configurable Modbus Map**: The entire Modbus register map is defined in a single, easy-to-modify file (`config.h`).
|
||||
* **Extensible Design**: The structure allows for the addition of new states and behaviors.
|
||||
## List of Equipmentt
|
||||
This cofiguration has been used for these models:
|
||||
* **Model**: 09-15-22
|
||||
* **Model**: 09-15-23
|
||||
* **Model**: 09-15-25
|
||||
|
||||
## Hardware Prerequisites
|
||||
|
||||
The code is written for an ESP8266/ESP32-style microcontroller with WiFi capabilities and at least one hardware serial port for RS485 communication.
|
||||
|
||||
* **Microcontroller**: ESP8266, ESP32, or similar.
|
||||
* **RS485 Transceiver**: A module like the MAX485 to interface with the Modbus RTU bus.
|
||||
|
||||
## Software Dependencies
|
||||
|
||||
This project relies on a Modbus library. Ensure you have the correct library installed in your Arduino IDE.
|
||||
|
||||
* **Modbus Library**: The code uses a library that provides `ModbusRTU.h` and optionally `ModbusIP_ESP8266.h`.
|
||||
* **Microcontroller**: [Firebeetle 2 ESP32.](https://www.dfrobot.com/product-2231.html)
|
||||
* **RS485 Transceiver**: [RS485 Shield for Arduino.](https://www.dfrobot.com/product-1024.html)
|
||||
|
||||
---
|
||||
|
||||
## How to Customize for a New Chiller
|
||||
## States and Strategies
|
||||
Provide a brief description of what variables and strategies were used in this configuraiton
|
||||
|
||||
To adapt this template for a new chiller, follow these steps.
|
||||
### Standby State
|
||||
* **Equipment running**: set to 0
|
||||
* **Common Alarm**: set to 0
|
||||
* **SAT temperature**: set to 85
|
||||
|
||||
### 1. Configure Device-Specific Parameters (`config.h`)
|
||||
### Running State
|
||||
* **Equipment running**: set to 1
|
||||
* **SAT temperature**: **Ramp Strategy** set to 65 deg setpoint
|
||||
|
||||
Open `CH_Daikin_AWV026B_RTU/config.h`. This is the main file for device-specific settings.
|
||||
|
||||
#### Modbus RTU Settings
|
||||
Update the following constants for your device's serial communication setup.
|
||||
```c++
|
||||
const int BAUDRATE = 19200; // The serial communication speed
|
||||
const int RX_PIN = 17; // The GPIO pin for receiving data (RX)
|
||||
const int TX_PIN = 16; // The GPIO pin for transmitting data (TX)
|
||||
const int RST_PIN = 4; // The GPIO pin for RS485 direction control
|
||||
const int MODBUS_ID = 1; // The unique slave ID for this device
|
||||
### Fail State
|
||||
* **Commong Alarm**: set to 1
|
||||
* **SAT temperature**: **Ramp Strategy** set to 105 deg setpointset
|
||||
|
||||
Reference in New Issue
Block a user