Skip to content

Raspberry Pi Logger for SUN2000 Huawei string PV inverter

License

Notifications You must be signed in to change notification settings

recallfx/sun-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sun logger

Raspberry Pi Logger for SUN2000 Huawei string PV inverter

Setup

  1. Install Raspbian Buster Lite into SD card.
  2. Enable SSH by placing a file named ssh onto the boot partition of the SD card.
  3. Setup WiFi by creating a file on SD card - wpa_supplicant.conf with contents:
country=US # Your 2-digit country code
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
    ssid="YOUR_NETWORK_NAME"
    psk="YOUR_PASSWORD"
    key_mgmt=WPA-PSK
}

More info

  1. Start Raspberry Pi and ssh into it;
  2. Install python dependencies: sudo apt-get install python-pip python3-numpy
  3. Restart: sudo reboot;

Note on UART

I suggest using usb converter instead, but if you really need these steps should help:

  1. Disable bluetooth by adding a line in file /boot/config.txt: dtoverlay=pi3-disable-bt;
  2. Ensure line enable_uart=1 (and core_freq=250?) is in file /boot/config.txt;
  3. Ensure console=serial0,115200 is not present in file /boot/cmdline.txt;
  4. Release GPIOs 14 and 15 by running sudo systemctl disable hciuart;
  5. Refactor code to toggle DERE pin

More info on UART

References

  1. Modbus interface defintions V3.0
  2. Signal cable pinout

About

Raspberry Pi Logger for SUN2000 Huawei string PV inverter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages