lucasimons / MPPT-4880

Modbus sensor for esphome
1 stars 0 forks source link

Info #1

Open grydo opened 11 months ago

grydo commented 11 months ago

Hi, I wanted to understand how to use esp32, how do I connect it to the charge controller?

lucasimons commented 11 months ago

Hi, you have to use a rs485 converter... This is mine IMG_20231206_071759.jpg

grydo commented 11 months ago

IMG_20231205_192359_824 This?

lucasimons commented 11 months ago

IMG_20231205_192359_824 This?

Yes I use the orange and orange white cable of rj45

grydo commented 11 months ago

pin 1 and pin 2 rj45?

lucasimons commented 11 months ago

Yes t 568B ... The first pin is orange-white and the second is orange, this two pin must be connected to rs485 converter

grydo commented 11 months ago

Thanks, I had it sorted, it happens to me that the next day it displays the incorrect values, restarting the converter everything works correctly.

grydo commented 10 months ago

mppt4880

It happens every day after the night, all the parameters are wrong.

lucasimons commented 10 months ago

mppt4880

It happens every day after the night, all the parameters are wrong.

Can you share your setup? Hardware and software (esphome file.yaml)

grydo commented 10 months ago

My device is atom m5 stack my Yaml

substitutions: device_name: mppt4880 device_description: "Monitor and control a MPPT-4880 via RS485 and send data to Home-Assistant via BT using Atom-M5" friendly_name: "4880-MPPT" name: mppt4880 device_id: mppt4880

esphome: name: ${device_name} platform: ESP32 board: m5stack-atom platformio_options: upload_speed: 115200

Enable logging

logger:

wifi: networks:

web_server: port: 80

If you don't use Home Assistant please remove this api section and uncomment the mqtt component!

api:

mqtt:

broker: 192.168.2.32

client_id: ${device_id}

discovery_retain: false

discovery_object_id_generator: device_name

captive_portal:

light:

binary_sensor:

button:

uart: rx_pin: GPIO22 tx_pin: GPIO19 id: mod_bus baud_rate: 9600 stop_bits: 1

modbus:

flow_control_pin: 23

uart_id: mod_bus id: mod_bus_mppt

modbus_controller:

sensor:

- platform: modbus_controller

modbus_controller_id: mppt

name: Rated Current

address: 10009

register_type: holding

value_type: U_WORD

register_count: 1

filters:

- multiply: 0.1

number:

grydo commented 10 months ago

new?

lucasimons commented 9 months ago

Sorry but i haven t any issue the parameter are all correct, have you some soldered wire? or connector not tightened?