Connecting to ABB B23 Modbus energymeter.
I have the USB-RS485 plugged into a Debian Linux pc system (x86_64). I used the ModPoll tool from
modbusdriver.com for basic connection testing. #./modpoll /dev/ttyUSB0 -b 9600 -p none -m rtu -a 1 -r 23296 -t 4:int -c 6
Offset addres 23296 (or hex 0x5B00) should have L1-N voltage.
Read 6 next values also (-c 6)
Gave me L-to-N and L-to-L voltages.
Wrote a small C application to poll every second and write to MariaDB/MySQL database table. Should be possible to recompile for Raspberry-PI (ARM) to.
Uses libmodbus(-dev) and libmariadbclient(-dev).
First switching power supply working.
I have an ARM board to be powered, which draws between 0.5 and 1.5 ampere’s on 5 volt. Tried using an standard 7805 (2 ampere spec), but the system would not boot. VOut dropped to 4.5 volts and 7805 was getting to hot with +/- 24 volt VIn.
So i made an circuit based on the LM2576T-5.
L1: Inductor 100uH
Recoverd from PC PSU
5.0 Amps Schottky Barrier Rectifier
C1: 470uF 35v
Reused from other project
C2: 3300uF 10v
Also recovered from PC PSU
F1: Fuse holder and 400mA
Stock, price n/a
Input voltage is an battery+solar power supply that varies between 23-24 to 29 volts.
Working power supply (left) with active load.
Bad output: (spikes)
What happens if an normal (or to slow) diode is used:
Yellow is regulator V-OUT.
Blue line represents voltage output for load (feedback signal).
Borrowed lm2576 library for
Eagle PCB Design from eaglecentral.ca | LM2576 circuit
Capture inverter data yourself? Or want to process generated data? Instead of using the Omnik Portal App?
I found out that it is possible to configure the wifi kit to send TCP/UDP packets to an remote server. After that i started googling around. With some minimal data i started write a small C program.
Some other related project on the internet:
GitHub – Woutrrr / Omnik-Data-Logger | Language: Python | Found first
GitHub – micromys / Omnik | Language: PHP
GitHub – arjenv / omnikstatus | Language: C | Found after completing my own script 🙁
Those scripts are polling the inverter each few minutes. When my research started, i found out, by configuring the web interface, that Omnik also offers the possibility to push TCP or UDP packets to an specified server. With this enabled i started testing en developing.
Reading the message (which byte means what?) was based on the GitHub projects. So someone else did the hard work 😉
Getting started… (read on)
Dit bericht werd geplaatst in
English, IT-Related, Robin, Solar Energy en getagged met inverter, omnik, omnik inverter, omnik portal, omnik4000tl, OmnikListenerTCP, omniksol, solar energy op . 22 november 2015