RepositoryC++
unreality

unreality/FujiHeatPump

Control Fujitsu AirConditioners with your Arduino board

109stars
22forks
14issues
0views

Featured achievements

The project's latest awards

6
TINIX TRENDING·Topic: arduino

#6 Repository of the week

7
TINIX TRENDING·Topic: esp32

#7 Repository of the week

10
TINIX TRENDING·Topic: esp32

#10 Repository of the month

FujiHeatPump

Allows Arduino boards to communicate with Fujitsu AirConditioners (Heatpumps) via the 3-wire remote interface or RX/TX lines on the indoor unit. Supports acting as a Primary or Secondary controller.

Using the 3-wire interface requires a LIN tranceiver (such as MCP2025-330) or building your own. Supports running as a Primary or Secondary controller.

Quick start

Controlling the heat pump

#include "FujiHeatPump.h"

FujiHeatPump hp;

void setup() {
  hp.connect(&Serial2, true); // use Serial2, and bind as a secondary controller
}

void loop() {
  if(hp.waitForFrame()) {   // attempt to read state from bus and place a reply frame in the buffer
    delay(60);              // frames should be sent 50-60ms after recieving - potentially other work can be done here
    hp.sendPendingFrame();  // send any frame waiting in the buffer
  }
  
  //do an update
  if(weWantToUpdate) {
    hp.setOnOff(true);
    hp.setMode(static_cast<byte>(FujiMode::COOL));
    hp.setFanMode(4);
    hp.setTemp(18);
  }
  
  //get the current status
  hp.getOnOff();
  hp.getMode();
  hp.getFanMode();
  hp.getTemp();
}

See the API Reference for more details.

Installation

  • Clone repository
  • Move contents into Arduino library directory
  • Restart IDE

Secondary Mode Notes

This library supports connecting as a primary or secondary remote control. If using it in secondary mode, there are some timing requirements that you need to be aware of. The primary controller will only send ONE frame to check whether there is a secondary controller. This occurs approx 4 seconds after the unit is switched on. If this frame is missed, you cannot join the bus as a secondary controller.

Example Circuit

Notes

  • Tested with ESP32
  • Tested with TeensyLC/Teensy3.5

Further Work

  • Errors are sent by the AC in various states, these are currently ignored.
  • Several bits in messages serve unknown purposes.

Parts Required

========================================
Special thanks to Jaroslaw Przybylowicz, who decoded the protocol initially (https://github.com/jaroslawprzybylowicz/fuji-iot)

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
espressif/arduino-esp32

Arduino core for the ESP32 family of SoCs

17.8k
Dec 1, 2026
RepositoryC++
MarlinFirmware/Marlin

Marlin is a firmware for RepRap 3D printers optimized for both 8 and 32 bit microcontrollers. Marlin supports all common platforms. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.

17.7k
Nov 30, 2026
RepositoryC++
justcallmekoko/ESP32Marauder

A suite of WiFi/Bluetooth offensive and defensive tools for the ESP32

13.3k
Dec 2, 2026
RepositoryC++
FastLED/FastLED

The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements.

7.5k
Dec 2, 2026
RepositoryC++
bblanchon/ArduinoJson

📟 JSON library for Arduino and embedded C++. Simple and efficient.

7.3k
Nov 19, 2026
RepositoryC++
blinker-iot/blinker-library

An IoT Solution,Blinker library for embedded hardware. Works with Arduino R4, ESP32.

5.2k
Nov 11, 2026
RepositoryC++
cifertech/ESP32-DIV

ESP32DIV is a multi-purpose wireless offensive and defensive toolkit powered by an ESP32

4.4k
Sep 22, 2026
RepositoryC++
Blynk-Technologies/blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, etc.

4.0k
Oct 6, 2026
RepositoryC++
M-Abozaid/esp32-c3-adblock

Pi-hole-class DNS ad-blocker on a $2 ESP32-C3 (no PSRAM): 537k domains as 40-bit FNV-1a hashes in flash, binary-searched. UDP DNS sinkhole + web dashboard. https://youtube.com/shorts/RaxszOUMi8E?feature=share

3.7k
Nov 6, 2026