Skip to content

Superbrida/TRANE_CH530_Emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 ESP32 RS485 Sensor Emulator

Alt text

Welcome to the coolest ESP32 project on the block! 🎉 This project has been successfully tested for communication between a centrifugal chiller control panel Trane CH530 and a temperature sensor, using the LLID bus communication protocol over RS485.

It records data from the sensor for 1 minute, then emulates it for another minute, allowing you to download the recorded data via a web server. All in just 2 minutes – because who has time to wait? ⏱️

🏭 Supported Trane Chillers

The Tracer® CH530 controller is used in various Trane chillers, including:

📌 Centrifugal Chillers:

•	CVGF – Multistage centrifugal chillers with direct drive compressors.

•	CVGF Series R – High-efficiency centrifugal chillers.

•	CDHF/CDHF+ – Large-capacity centrifugal chillers.

•	RTCF – Centrifugal chillers with variable-speed control.

📌 Screw Chillers:

•	RTWD/RTUD 060-250 – Water-cooled screw chillers.

•	CGWN/CCUN 205-215 – Compact water-cooled chillers.

•	RTAC – Air-cooled screw chillers for large capacities.

📌 Scroll Chillers:

•	CGAN/CXAN 209-214 – Air-cooled scroll chillers.

•	CGCL 200-600 – Modular scroll chillers.

•	CGWH/CCUH 115-250 – Heat pump and cooling-only models.

•	RAUL 190-800 – Large-capacity air-cooled chillers.

📦 What’s Inside?

•	📡 RS485 Communication: Seamlessly talking to the Trane CH530 and sensor.
•	💾 Data Recording: Capturing sensor data for 1 minute via LLID bus.
•	🎭 Sensor Emulation: Mimicking the sensor behavior for analysis.
•	🌐 Web Server: Download the recorded data straight from your browser.
•	📶 Wi-Fi Connectivity: No cables, just pure convenience.

📚 Required Libraries

To compile and run this project on your ESP32, make sure to install the following libraries:

1.	HardwareSerial – For serial communication with RS485 devices.

2.	FS (File System) – For file handling operations on SPIFFS.

3.	SPIFFS (SPI Flash File System) – Used to store and retrieve sensor data.

4.	WiFi – To connect the ESP32 to a wireless network.

5.	WebServer – To host the web interface for downloading recorded data.

🛠️ Hardware Requirements

To get started, you’ll need the following hardware components:

•	🧠 ESP32 (for the brains of the operation)

•	🔌 2x MAX485 modules (to handle RS485 communication)

•	🛠️ Wiring essentials (jumper wires, breadboard, power supply)

🛠️ Wiring Configuration

To properly connect the ESP32 with the MAX485 modules, follow these wiring instructions:

•	RS485 Master (connected to CH530 panel):

•	Connect GPIO14 of the ESP32 to the RO (Receiver Output) pin of the MAX485.

•	Connect GPIO27 of the ESP32 to the DI (Driver Input) pin of the MAX485.

•	RS485 Sensor (connected to the temperature sensor):

•	Connect GPIO25 of the ESP32 to the RO (Receiver Output) pin of the second MAX485.

•	Connect GPIO33 of the ESP32 to the DI (Driver Input) pin of the second MAX485.

•	Power Connections:

•	Connect the VCC pin of both MAX485 modules to the 3.3V pin of the ESP32.

•	Connect the GND pin of both MAX485 modules to the GND pin of the ESP32.

Explanation:

•	The first MAX485 module handles communication with the CH530 control panel (RS485 Master).

•	The second MAX485 module handles communication with the temperature sensor (RS485 Sensor).

•	Ensure correct power supply connections to avoid damage to the components.

⚡ Quick Start Guide

1.	Flash the code onto your ESP32 (you got this 💪).
2.	Connect to Wi-Fi (update your SSID & password in the code).
3.	Let it do its thing!
•	First minute: Sensor data is being recorded.
•	Second minute: Sensor emulation starts.
4.	Download your data:

Open your browser and go to http:///download to retrieve the logs.

🚦 Status LEDs (for those who love blinky things)

•	🔴 Recording mode: ESP32 is listening to the sensor.
•	🟡 Emulation mode: ESP32 is acting as the sensor.
•	🟢 Ready: Web server is live and waiting for you.

🚀 Future Improvements

•	Expand support for additional sensors and devices.
•	Improve data visualization through a web interface.
•	Optimize power consumption for standalone deployments.

🙌 Contributing

Feel free to open an issue or submit a PR – the more, the merrier! 🎉

🛠️ Made with love for ESP32 ❤️ – because it’s awesome. Now go ahead and give it a try! 🚀

About

Sketch for recording and emulating data between Trane CH530 and temperature sensor with ESP32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages