HI all, need some pointers to get me going!
My pet project is to control my Lyndorf SDAI 2175 amplifier over the serial interface it has (RS232) using a ESP32. I have managed to set up the ESP32 using ESPHome, also configured UART with the RX/RT pins U2RX/U2TX.
So what would be the next step here? I have the manual for the amplifier RS232 codes, done the cabling to connect to the amp from the pins on the ESP32, but no clue as to what to do next.
Not a dev, so skills are limited regarding coding and also new to both HASSIO and ESPHome, but really want to make this work.
Have the following setup:
Raspberry PI3 running HASSIO OS 9.3
ESPHome 2022.11.3
ESP-32 Dev Kit C V4 ( ESP32 Dev Kit C V4 Nodemcu WiFi Development Board – AZ-Delivery)
ESP config:
esphome:
name: esp-stereo
build_path: .esphome/build/esp-stereo
platformio_options: {}
includes: []
libraries: []
name_add_mac_suffix: false
min_version: 2022.11.3
esp32:
board: esp32dev
framework:
version: 1.0.6
source: ~3.10006.0
platform_version: platformio/espressif32 @ 3.5.0
type: arduino
variant: ESP32
logger:
baud_rate: 115200
tx_buffer_size: 512
deassert_rts_dtr: false
hardware_uart: UART0
level: DEBUG
logs: {}
uart:
- baud_rate: 57600
tx_pin:
number: 17
mode:
output: true
input: false
open_drain: false
pullup: false
pulldown: false
inverted: false
rx_pin:
number: 16
mode:
input: true
output: false
open_drain: false
pullup: false
pulldown: false
inverted: false
rx_buffer_size: 256
data_bits: 8
parity: NONE
stop_bits: 1
debug:
direction: BOTH
dummy_receiver: false
after:
delimiter: !!binary |
Cg==
bytes: 150
timeout: 100ms
sequence:
- then:
- lambda: !lambda |-
UARTDebug::log_string(direction, bytes);
api:
encryption:
key: xxxxxxxx
port: 6053
password: ''
reboot_timeout: 15min
ota:
password: xxxxxxx
safe_mode: true
port: 3232
reboot_timeout: 5min
num_attempts: 10
wifi:
ap:
ssid: xxxxxxxx
password: xxxxxxxxx
ap_timeout: 1min
domain: .local
reboot_timeout: 15min
power_save_mode: LIGHT
fast_connect: false
networks:
- ssid: !secret 'wifi_ssid'
password: !secret 'wifi_password'
priority: 0.0
use_address: esp-stereo.local
captive_portal: {}
Link to Lyngdorf manual with RS232 documentation: RS232 Command Codes - User.pdf - Google Drive
Any help and pointers would be appreciated.
Br
/Micke