Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

LilyGO / T-CAN485 - connection to DEYE

Featured Replies

Hi, 

I once found on github information on how to connect a LilyGO / T-CAN485 device with DEYE. Unfortunately, I can't figure out how to do it. I changed GPIO to 21 and 22 but it still doesn't connect. Is there something else I should change in the code? 

Thanks for your reply!

  • Author

 


I managed to solve the problem. You should add 5V power supply to the rs485 chip to the code. 

output:
  - platform: gpio
    id: ENABLE_PIN # Enable the chip
    pin:
      number: GPIO19
      inverted: true
  - platform: gpio
    id: SE_PIN # Enable autodirection
    pin:
      number: GPIO17
      inverted: true
  - platform: gpio
    id: ENABLE_5V_PIN # Enable 5V pin for RS485 chip
    pin:
      number: GPIO16
      inverted: true

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

 

  • 1 month later...
On 2023/10/09 at 1:28 PM, Dariusz said:

 


I managed to solve the problem. You should add 5V power supply to the rs485 chip to the code. 

output:
  - platform: gpio
    id: ENABLE_PIN # Enable the chip
    pin:
      number: GPIO19
      inverted: true
  - platform: gpio
    id: SE_PIN # Enable autodirection
    pin:
      number: GPIO17
      inverted: true
  - platform: gpio
    id: ENABLE_5V_PIN # Enable 5V pin for RS485 chip
    pin:
      number: GPIO16
      inverted: true

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

 

hi @Dariusz

i am in the same situation as you in my case i have a deye 8k that i would connect via can and then a bms jk that manages some 16s x 304ah cells. 
have you been able to connect it at this moment with a bms or how do you use the lilygo ?

 

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.