This project is about a Raspberry Pi hat/standalone interface to communicate over the proprietary Daikin P1/P2 power-line bus.
Instead of a MAX22088 it uses a Raspberry Pi Pico and LM4871 audio amplifier as modem.
For more details on P1/P2 bus check out https://github.com/Arnold-n/P1P2Serial.
It features:
- Galvanic isolation
- 115200baud ASCII UART interface
- 3 Status LEDs
- Autonomous mode to emulate "External controller" on address F0h
- Bus idle/busy detection
- Collision detection on TX
- Easy to solder: no QFN parts, only SOIC-8
- Cost around 20€ (PCB + parts)
- Raspberry Pi hat compatible (powered from +5V)
- Micro-USB for standalone mode (powered over USB)
The board can be powered over Micro-USB only and doesn't need a Raspberry Pi baseboard. The communication then will be done over the virtual USB UART.
This project is not an offical Daikin product. Use own your own risk!
It has been tested on a Daikin EJHA04AAV3.
- User handbook
- The electronics in detail
- Ti LM4871 vs STM TS4990
- Emulating a differential ADC
- Protocol used by the UART
- Decoding the LED status
- Hardware off-load the P1/P2 encoding using PIO0
- Hardware off-load inversing ADC channel1
- The hardware can be found here: kicad
- The software can be found here: pico
- The host software can be found here: siro20/P1P2decoder
There are 3 connectors on the Pi hat:
- Rasperry Pi 40-pin header
- Provides power
- Connects to the UART on GPIO14/GPIO15
- Connects CTS/RTS on GPIO16/GPIO17
- Signals a bus collision on GPIO22
- P1/P2 bus connector
- P1
- P2
- Earth
- Micro USB
- Allows to update the Pico firmware
- Powers the board when used in standalone mode
- Optional when using the 40-pin header
Buttons:
-
A. Reset button
-
B. Boot-mode button
Hold button B and press button A to enter the Raspberry Pico USB bootloader.
THE OPEN SOURCE SOFTWARE/HARDWARE IN THIS PROJECT IS DISTRIBUTED
IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY, WITHOUT
EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE.
The "Daikin P1/P2 Raspberry Pi hat" has been designed and tested with
Daikin's P1/P2 bus. You must not use this project to interface any
other electrical bus.