Skip to content

Zanduino/Cubigel

Repository files navigation

License: GPL v3 Build Format Wiki Doxygen arduino-library-badge

Cubigel library

Arduino library for communicating with any compressor in the Cubigel family which uses their proprietary FDC1 communication protocol. The library allows reading the programmed compressor settings as well as the data sentences that are sent twice a second from the compressor. Currently the library is limited to accessing 2 devices simultaneously, but it can easily be modified to support more; this limit was chosen to minimize memory usage and simplify implementation; particularly as most installations will have at most 2 compressors - one for the refrigerator and one for the freezer. The library collects data in the background (piggybacking off the TIMER0_COMPA interrupt) and does not require manual polling to function, freeing up the Arduino/Atmel to perform other tasks. The data sentences containing RPM and amperage values are averaged automatically so that the correct value since the last reading is always returned regardless of how long it takes between library calls to retrieve the data.

Communication Protocol

The manufacturer has published several documents regarding communicating with the FDC1 controller on their website. The main FDC1 document is GD30FDC User Manual and the definition of the communication protocol can be found at FDC1 Communication Protocol

Cubigel Documentation

The supporting documents from Cubigel have been copied into the documents folder

Details of library and methods are described on the GitHub Cubigel Wiki pages along with the example sketches.

Zanshin Logo