Author Topic: Building a 6kw pure sine wave inverter using power jack boards part2 the guts..  (Read 64123 times)

0 Members and 3 Guests are viewing this topic.

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
Clockman,

Installing a 4 line 16 character LCD with the Mega would not  be too difficult, its just I don]'t see the need for it and now that I have acquired a nice piece of 3mm aluminum plate to made a new front cover for the Inspire bolted-together boxes, I really cringe at having to cut holes in it.
I like Oztule's sub panel idea that resolves floating cable issues/

If you need a permanent monitor display at the inverter location then a possible solution I have used elsewhere is to buy one of those ultra-cheap 7inch tablets that seem everywhere now.
In NZ we can get these for under NZ$60. They have wifi web connectivity and run a web browser so simply velcro attaching one to the inverter door would provide the necessary running data display.
(Or I would simply take my Ipad when I go for a visit)

The good thing about the html5 page for data is that I have it running independantly of an internet connection, meaning that there is no link in the page to an offsite location to obtain javascript, jquery libs or anything to enable the graphics or gauges.
This means at your remote location where the inverter is there could be a small LAN (ozilan  :P) with just the inverter, tablet and maybe a WET54G ethernet wifi bridge.
For logging data I could see another Arduino UNO qwerying the Mega and writing to micro SD card, perhaps I2C serial linked to the Mega.

DamonHD's suggestion of ISM band transcievers would resolve the connectivity between locations.
I have also used an ethernet bridge device (the WET54G again or even WRT54G in bridge mode) with tiny yagi in place of the stub antennae to link 200 metre separated buildings.

dgd
Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
Thanks Bruce.

My posts will grow a bit when I start posting html pages and the Arduino code although as it gets near completion I will GITHUB it all.

dgd
Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
Thanks DamonHD for the info on the ISM band transceivers, I will have a look at them.

At present I am installing a fail safe 'bang off', 4 GTI's 4 channel, sequential transceiver control on the 315mhz or 433mhz band. I have to modify each isolated installation with a PSU and a relay which keeps things simple.



   
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
Cheers 'Frackers', I will spend today, Sunday, examining all your links.

But as I have already mentioned this stuff is pushing my electronic understandings another notch.

Mechanical design and manufacturing and mechanical manipulation down to 5 micron, No Problems. But you and your fellow whizz kids may have to look over your shoulders now and then as I grapple on all fours with this stuff, especially as 'dgd' is like Mr Bolt and off like a shot.

PS, Frackers, I keep dreaming about your toroid cores and your winding. I keep waking up with a sweat mumbling "Mass, get the Mass up" that's according to other household members.?    No doubt about it I have the 'Oztules' OzInverter contagious virus,  hehe.

2016 is going to be a real exciting and pleasurable Year, I think?



 
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
Thanks dgd for your understanding and honest reply.

Clockman,

I like Oztule's sub panel idea that resolves floating cable issues/


Yes, that's what I had been using with the rubbish SMA SI6 inverter, it had a box, LCD display, SD card, 20m of cat cable, which I  hung on the back of my battery box cupboard door.


If you need a permanent monitor display at the inverter location then a possible solution I have used elsewhere is to buy one of those ultra-cheap 7inch tablets that seem everywhere now.
In NZ we can get these for under NZ$60. They have wifi web connectivity and run a web browser so simply velcro attaching one to the inverter door would provide the necessary running data display.
(Or I would simply take my Ipad when I go for a visit)

dgd

That 7 inch tablet sounds like a good way to go, but not sure how long they would last? 10 years or so?

Ipad, steady on dgd. my family are real lucky if I ever turn my old 'SonyEricsson J230i' portable phone on.!


The good thing about the html5 page for data is that I have it running independantly of an internet connection, meaning that there is no link in the page to an offsite location to obtain javascript, jquery libs or anything to enable the graphics or gauges.
This means at your remote location where the inverter is there could be a small LAN (ozilan  :P) with just the inverter, tablet and maybe a WET54G ethernet wifi bridge.
For logging data I could see another Arduino UNO qwerying the Mega and writing to micro SD card, perhaps I2C serial linked to the Mega.

dgd

Yes, that sounds immensely logical, as it would stand alone, excellent.

I have already ordered the stuff you mentioned on the Midnite Forum for this project..................

The Arduino parts/specs (ex sensors) I will use are:

http://www.ebay.com/itm/MEGA2560-R3-Board-ATmega2560-16AU-CH340G-Free-USB-Cable-for-Arduino-/261901186104?hash=item3cfa86f438:g:zcQAAOSwkNZUqluP

http://www.ebay.com/itm/Ethernet-Shield-WizNet-W5100-R3-2012-for-Arduino-UNO-Mega-2560-Duemilanove-PoE-/291547954847?hash=item43e19cbe9f:g:MI8AAOSwq7JUEX66

http://www.ebay.com/itm/OE-MAX3232-RS232-Serial-Port-To-TTL-Converter-Module-DB9-Connector-With-Cable-/221850004544?hash=item33a74a6c40:g:bXoAAOSwT6pVyedu

http://www.ebay.com/itm/DIN-Rail-Mount-Adapter-Prototype-PCB-Kit-For-Arduino-UNO-Mega-2560-etc-/201227678125?hash=item2eda1ab1ad:g:5JUAAOxyHIlTXQOa

http://www.ebay.com/itm/Prototype-Screw-Shield-Board-Kit-For-Arduino-UNO-R3-0-1-Mini-Terminal-Block-/131686005367?hash=item1ea918fa77:g:UUMAAOxy~dNTHygV

SD card stuff ?



 
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
Moderators,

 I will be going from scratch to full running mode with this metering system so please bare with me if I ask some idiotic questions now and then.

As I have said before I am putting together a booklet, "How I made a 6kW OzInverter" with hundreds of my colour photos, drawings, diagrams etc, and additions on the No2, Big Ozinverter. It will be a detailed manual on me making a OzInverter with chapters for each distinct construction stages.
 
'Oztules' has now nearly 60,000 words of technical advice which I will include at the relevant stages, and I will do a technical chapter for his in depth explanations.

As I said before this booklet will be 'Not for Profit' concept, printing and postage costs only, in a similar fashion to the '2kW PV Tracker booklet' we here have already produced.  ......... http://www.echorenovate.com/new-book---make-a-solar-tracker.php

Oztules has given his knowledge, "Its all out there now", he said.
 He has genuinely helped me out of hole, and got me a working 6kW Inverter in an 'Open Source' concept.
 Hopefully I can pass on my experiences to the next generation, especially my boys, with this particular printed booklet. 
Personal empowerment and self improvement is very much our Philosophy here in Normandy, especially with real hands on cost effective renewable energy creation.

Thank you for your understanding.
Leslie R A Bryan.

   
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

oztules

  • Hero Member
  • *****
  • Posts: 1477
  • Country: aq
  • Village idiot
"Oztules' has now nearly 60,000 w..............."



Ok... it's official... I rabbit on too much.


...............oztules
Flinders Island Australia

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
Code for a simple index.htm html5 file for displaying gauges and some data from the OZ Inverter.
Just to give an idea of whats possible
I just copied a version of my Midnite Classic display page and edited to show inverter data. This could of course be edited to completely customize a web page, different gauges, ranges, sizes, positions used and the SVG data box repositioned, resized, re-graphed etc

The html5 code has the gauge code at top, that compressed several lines or almost unreadable text - this makes the display stand-alone as there is no loading via internet of gauge library, or anything else. These 'canvas gauges' are IMHO very nice, clean and crisp, although available gauges and graphics are many with those from the steel-series amongst the best I have seen/used.
The rest of the code is fairly standard stuff, the function GetOZInverterData reads the XML file for page data refreshing.
The main section of code has the setup info for the gauges, ranges, sizes, colours, limits etc and the SVG box with the various text and data values. The buttons on bottom would load alternate html5 pages to display logging info
I would probably include a SHUTDOWN button, password protected, to remotely shut down the inverter.

As usual any comments or suggestions welcomed. This stuff is easily changed  :)

dgd

Code: [Select]
<!DOCTYPE html>
<!--- index.htm file for OZ Inverter running data    DGD January 2016  dgd@kc.net.nz   ----->
<html>
    <head>
        <title>OZ Inverter gauges</title>
        <script>
var batV_val = 44;
var batA_val  = 0;
                var ACwatts_val = 0;
var ACvolts_val = 200;
var ACamps_val = 0;

<!--- Start of gauge code  --->
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};
while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('t W=v(f){W.2t.3T(A);A.B={Z:2u,19:1q,1h:1q,1J:U,1b:D,K:0,V:[\'0\',\'20\',\'40\',\'2A\',\'2B\',\'D\'],2r:10,2C:M,1E:U,2q:{2D:3,2E:2},2H:M,1c:{2j:10,2m:3y,2O:\'3v\'},J:{2P:\'#4h\',V:\'#31\',2r:\'#3k\',1J:\'#37\',1E:\'#37\',3e:\'#31\',1t:{2s:\'1e(3Y, 3d, 3d, 1)\',3c:\'1e(1Y, 5I, 5E, .9)\'}},1o:[{1n:20,1D:2A,1F:\'#3j\'},{1n:2A,1D:2B,1F:\'#36\'},{1n:2B,1D:D,1F:\'#5n\'}]};t g=0,1p=A,N=0,1S=0,1G=U;A.5d=v(a){N=f.1c?g:a;t b=(f.1b-f.K)/D;1S=a>f.1b?1S=f.1b+b:a<f.K?f.K-b:a;g=a;f.1c?3l():A.1g();C A};A.3m=v(a){N=g=a;A.1g();C A};A.4T=v(){g=N=1S=A.B.K;A.1g();C A};A.4R=v(){C g};A.13=v(){};v 2k(a,b){Q(t i 4P b){z(1H b[i]=="1W"&&!(4O.4y.2V.4p(b[i])===\'[1W 4n]\')&&i!=\'Z\'){z(1H a[i]!="1W"){a[i]={}}2k(a[i],b[i])}O{a[i]=b[i]}}};2k(A.B,f);A.B.K=1R(A.B.K);A.B.1b=1R(A.B.1b);f=A.B;N=g=f.K;z(!f.Z){4m 4j("4g 4d 4b 46 44 41 3Z 3W W 1W!");}t j=f.Z.5K?f.Z:2R.5v(f.Z),q=j.3u(\'2d\'),1i,1y,1A,14,17,u,1d;v 2M(){j.19=f.19;j.1h=f.1h;1i=j.4s(M);1d=1i.3u(\'2d\');1y=j.19;1A=j.1h;14=1y/2;17=1A/2;u=14<17?14:17;1i.2J=U;1d.3P(14,17);1d.G();q.3P(14,17);q.G()};2M();A.4Z=v(a){2k(A.B,a);2M();A.1g();C A};t k={4q:v(p){C p},4e:v(p){C E.1L(p,2)},4c:v(p){C E.1L(p,5)},3v:v(p){C 1-E.1O(E.5C(p))},5k:v(p){C 1-(v(p){Q(t a=0,b=1;1;a+=b,b/=2){z(p>=(7-4*a)/11){C-E.1L((11-6*a-11*p)/4,2)+E.1L(b,2)}}})(1-p)},4S:v(p){C 1-(v(p){t x=1.5;C E.1L(2,10*(p-1))*E.1T(20*E.1a*x/3*p)})(1-p)}};t l=2u;v 3S(d){t e=2v 3R;l=2x(v(){t a=2v 3R-e,1M=a/d.2m;z(1M>1){1M=1}t b=1H d.2g=="v"?d.2g:k[d.2g];t c=b(1M);d.3Q(c);z(1M==1){2b(l)}},d.2j||10)};v 3l(){l&&2b(l);t b=(1S-N),1n=N,29=f.1c;3S({2j:29.2j,2m:29.2m,2g:29.2O,3Q:v(a){N=1R(1n)+b*a;1p.1g()}})};q.5l="3O";A.1g=v(){z(!1i.2J){1d.3M(-14,-17,1y,1A);1d.G();t a=q;q=1d;3L();3K();3I();3H();3F();3D();3z();1i.2J=M;q=a;5G a}q.3M(-14,-17,1y,1A);q.G();q.4a(1i,-14,-17,1y,1A);z(!W.28){t b=2x(v(){z(!W.28){C}2b(b);2K();2L();z(!1G){1p.13&&1p.13();1G=M}},10)}O{2K();2L();z(!1G){1p.13&&1p.13();1G=M}}C A};v S(a){C a*E.1a/4J};v 1l(a,b,c){t d=q.4Y(0,0,0,c);d.1V(0,a);d.1V(1,b);C d};v 3L(){t a=u/D*5g,3x=u-a,2a=u/D*5q,5u=u-2a,1f=u/D*5z,5A=u-1f;3t=u/D*5F;q.G();z(f.2H){q.2o=3x;q.2n=\'1e(0, 0, 0, 0.5)\'}q.P();q.16(0,0,a,0,E.1a*2,M);q.L=1l(\'#42\',\'#43\',a);q.T();q.R();q.P();q.16(0,0,2a,0,E.1a*2,M);q.L=1l(\'#49\',\'#36\',2a);q.T();q.P();q.16(0,0,1f,0,E.1a*2,M);q.L=1l(\'#3j\',\'#3s\',1f);q.T();q.P();q.16(0,0,3t,0,E.1a*2,M);q.L=f.J.2P;q.T();q.G()};v 3H(){t r=u/D*2T;q.2e=2;q.2U=f.J.V;q.G();Q(t i=0;i<f.V.H;++i){t a=45+i*(1U/(f.V.H-1));q.1z(S(a));q.P();q.1K(0,r);q.F(0,r-u/D*15);q.1X();q.R();q.G()}z(f.2C){q.1z(S(2X));q.P();q.16(0,0,r,S(45),S(4N),U);q.1X();q.R();q.G()}};v 3I(){t r=u/D*2T;q.2e=1;q.2U=f.J.2r;q.G();t b=f.2r*(f.V.H-1);Q(t i=0;i<b;++i){t a=45+i*(1U/b);q.1z(S(a));q.P();q.1K(0,r);q.F(0,r-u/D*7.5);q.1X();q.R();q.G()}};v 3F(){t r=u/D*55;Q(t i=0;i<f.V.H;++i){t a=45+i*(1U/(f.V.H-1)),p=1w(r,S(a));q.1x=20*(u/1q)+"2i 2Y";q.L=f.J.3e;q.2e=0;q.2h="2f";q.27(f.V[i],p.x,p.y+3)}};v 3D(){z(!f.1J){C}q.G();q.1x=24*(u/1q)+"2i 2Y";q.L=f.J.1J;q.2h="2f";q.27(f.1J,0,-u/4.25);q.R()};v 3z(){z(!f.1E){C}q.G();q.1x=22*(u/1q)+"2i 2Y";q.L=f.J.1E;q.2h="2f";q.27(f.1E,0,u/3.25);q.R()};v 32(a){t b=f.2q.2E,34=f.2q.2D;a=1R(a);t n=(a<0);a=E.35(a);z(b>0){a=a.5t(b).2V().1j(\'.\');Q(t i=0,s=34-a[0].H;i<s;++i){a[0]=\'0\'+a[0]}a=(n?\'-\':\'\')+a[0]+\'.\'+a[1]}O{a=E.3O(a).2V();Q(t i=0,s=34-a.H;i<s;++i){a=\'0\'+a}a=(n?\'-\':\'\')+a}C a};v 1w(r,a){t x=0,y=r,1O=E.1O(a),1T=E.1T(a),X=x*1T-y*1O,Y=x*1O+y*1T;C{x:X,y:Y}};v 3K(){q.G();t a=u/D*2T;t b=a-u/D*15;Q(t i=0,s=f.1o.H;i<s;i++){t c=f.1o[i],39=(f.1b-f.K)/1U,1P=S(45+(c.1n-f.K)/39),1N=S(45+(c.1D-f.K)/39);q.P();q.1z(S(2X));q.16(0,0,a,1P,1N,U);q.R();q.G();t d=1w(b,1P),3a=1w(a,1P);q.1K(d.x,d.y);q.F(3a.x,3a.y);t e=1w(a,1N),3b=1w(b,1N);q.F(e.x,e.y);q.F(3b.x,3b.y);q.F(d.x,d.y);q.1C();q.L=c.1F;q.T();q.P();q.1z(S(2X));q.16(0,0,b,1P-0.2,1N+0.2,U);q.R();q.1C();q.L=f.J.2P;q.T();q.G()}};v 2L(){t a=u/D*12,1f=u/D*8,1u=u/D*3X,1r=u/D*20,2l=u/D*4,1B=u/D*2,38=v(){q.3f=2;q.3g=2;q.2o=10;q.2n=\'1e(5L, 3h, 3h, 0.45)\'};38();q.G();z(N<0){N=E.35(f.K-N)}O z(f.K>0){N-=f.K}O{N=E.35(f.K)+N}q.1z(S(45+N/((f.1b-f.K)/1U)));q.P();q.1K(-1B,-1r);q.F(-2l,0);q.F(-1,1u);q.F(1,1u);q.F(2l,0);q.F(1B,-1r);q.1C();q.L=1l(f.J.1t.2s,f.J.1t.3c,1u-1r);q.T();q.P();q.F(-0.5,1u);q.F(-1,1u);q.F(-2l,0);q.F(-1B,-1r);q.F(1B/2-2,-1r);q.1C();q.L=\'1e(1Y, 1Y, 1Y, 0.2)\';q.T();q.R();38();q.P();q.16(0,0,a,0,E.1a*2,M);q.L=1l(\'#3s\',\'#36\',a);q.T();q.R();q.P();q.16(0,0,1f,0,E.1a*2,M);q.L=1l("#47","#48",1f);q.T()};v 3i(x,y,w,h,r){q.P();q.1K(x+r,y);q.F(x+w-r,y);q.23(x+w,y,x+w,y+r);q.F(x+w,y+h-r);q.23(x+w,y+h,x+w-r,y+h);q.F(x+r,y+h);q.23(x,y+h,x,y+h-r);q.F(x,y+r);q.23(x,y,x+r,y);q.1C()};v 2K(){q.G();q.1x=40*(u/1q)+"2i 30";t a=32(g),2Z=q.4f(\'-\'+32(0)).19,y=u-u/D*33,x=0,2W=0.12*u;q.G();3i(-2Z/2-0.21*u,y-2W-0.4i*u,2Z+0.3n*u,2W+0.4k*u,0.21*u);t b=q.4l(x,y-0.12*u-0.21*u+(0.12*u+0.3o*u)/2,u/10,x,y-0.12*u-0.21*u+(0.12*u+0.3o*u)/2,u/5);b.1V(0,"#37");b.1V(1,"#3k");q.2U=b;q.2e=0.3n*u;q.1X();q.2o=0.3p*u;q.2n=\'1e(0, 0, 0, 1)\';q.L="#4o";q.T();q.R();q.3f=0.3q*u;q.3g=0.3q*u;q.2o=0.3p*u;q.2n=\'1e(0, 0, 0, 0.3)\';q.L="#31";q.2h="2f";q.27(a,-x,y);q.R()}};W.28=U;(v(){t d=2R,h=d.3r(\'4r\')[0],2S=4t.4u.4v().4w(\'4x\')!=-1,2Q=\'4z://4A-4B.4C/4D/4E/4F-7-4G.\'+(2S?\'4H\':\'4I\'),1I="@1x-4K {"+"1x-4L: \'30\';"+"4M: 2Q(\'"+2Q+"\');"+"}",1s,r=d.3w(\'1v\');r.2N=\'1I/4Q\';z(2S){h.2p(r);1s=r.2I;1s.3A=1I}O{4U{r.2p(d.4V(1I))}4W(e){r.3A=1I}h.2p(r);1s=r.2I?r.2I:(r.4X||d.3B[d.3B.H-1])}t b=2x(v(){z(!d.3C){C}2b(b);t a=d.3w(\'50\');a.1v.51=\'30\';a.1v.52=\'53\';a.1v.1h=a.1v.19=0;a.1v.54=\'56\';a.57=\'.\';d.3C.2p(a);58(v(){W.28=M;a.59.5a(a)},3y)},1)})();W.2t=[];W.2t.5b=v(a){z(1H(a)==\'5c\'){Q(t i=0,s=A.H;i<s;i++){z(A[i].B.Z.18(\'5e\')==a){C A[i]}}}O z(1H(a)==\'5f\'){C A[a]}O{C 2u}};v 3E(a){z(2G.3G){2G.3G(\'5h\',a,U)}O{2G.5i(\'5j\',a)}}3E(v(){v 2F(a){t b=a[0];Q(t i=1,s=a.H;i<s;i++){b+=a[i].1Z(0,1).5m()+a[i].1Z(1,a[i].H-1)}C b};v 3J(a){C a.5o(/^\\s+|\\s+$/g,\'\')};t c=2R.3r(\'5p\');Q(t i=0,s=c.H;i<s;i++){z(c[i].18(\'1k-2N\')==\'5r-5s\'){t d=c[i],B={},1m,w=2c(d.18(\'19\')),h=2c(d.18(\'1h\'));B.Z=d;z(w){B.19=w}z(h){B.1h=h}Q(t e=0,1s=d.3N.H;e<1s;e++){1m=d.3N.5w(e).5x;z(1m!=\'1k-2N\'&&1m.1Z(0,5)==\'1k-\'){t f=1m.1Z(5,1m.H-5).5y().1j(\'-\'),I=d.18(1m);z(!I){2z}5B(f[0]){2y\'J\':{z(f[1]){z(!B.J){B.J={}}z(f[1]==\'1t\'){t k=I.1j(/\\s+/);z(k[0]&&k[1]){B.J.1t={2s:k[0],3c:k[1]}}O{B.J.1t=I}}O{f.5D();B.J[2F(f)]=I}}26}2y\'1o\':{z(!B.1o){B.1o=[]}2w=I.1j(\',\');Q(t j=0,l=2w.H;j<l;j++){t m=3J(2w[j]).1j(/\\s+/),1Q={};z(m[0]&&m[0]!=\'\'){1Q.1n=m[0]}z(m[1]&&m[1]!=\'\'){1Q.1D=m[1]}z(m[2]&&m[2]!=\'\'){1Q.1F=m[2]}B.1o.3T(1Q)}26}2y\'1c\':{z(f[1]){z(!B.1c){B.1c={}}z(f[1]==\'2O\'&&/^\\s*v\\s*\\(/.5H(I)){I=3U(\'(\'+I+\')\')}B.1c[f[1]]=I}26}5J:{t n=2F(f);z(n==\'13\'){2z}z(n==\'V\'){I=I.1j(/\\s+/)}O z(n==\'2C\'||n==\'2H\'){I=I==\'M\'?M:U}O z(n==\'2q\'){t o=I.1j(\'.\');z(o.H==2){I={2D:2c(o[0]),2E:2c(o[1])}}O{2z}}B[n]=I;26}}}}t g=2v W(B);z(d.18(\'1k-3V\')){g.3m(1R(d.18(\'1k-3V\')))}z(d.18(\'1k-13\')){g.13=v(){3U(A.B.Z.18(\'1k-13\'))}}g.1g()}}});',62,358,'||||||||||||||||||||||||||ctx|||var|max|function||||if|this|config|return|100|Math|lineTo|save|length|attrValue|colors|minValue|fillStyle|true|fromValue|else|beginPath|for|restore|radians|fill|false|majorTicks|Gauge|||renderTo||||onready|CX||arc|CY|getAttribute|width|PI|maxValue|animation|cctx|rgba|r2|draw|height|cache|split|data|lgrad|prop|from|highlights|self|200|rOut|ss|needle|rIn|style|rpoint|font|CW|rotate|CH|pad2|closePath|to|units|color|imready|typeof|text|title|moveTo|pow|progress|ea|sin|sa|hlCfg|parseFloat|toValue|cos|270|addColorStop|object|stroke|255|substr||025||quadraticCurveTo|||break|fillText|initialized|cfg|r1|clearInterval|parseInt||lineWidth|center|delta|textAlign|px|delay|applyRecursive|pad1|duration|shadowColor|shadowBlur|appendChild|valueFormat|minorTicks|start|Collection|null|new|hls|setInterval|case|continue|60|80|strokeTicks|int|dec|toCamelCase|window|glow|styleSheet|i8d|drawValueBox|drawNeedle|baseInit|type|fn|plate|url|document|ie|81|strokeStyle|toString|th|90|Arial|tw|Led|444|padValue||cint|abs|ccc|888|shad|vd|pe|pe1|end|128|numbers|shadowOffsetX|shadowOffsetY|143|roundRect|eee|666|animate|setRawValue|05|045|012|004|getElementsByTagName|f0f0f0|r3|getContext|cycle|createElement|d0|250|drawUnits|cssText|styleSheets|body|drawTitle|domReady|drawNumbers|addEventListener|drawMajorTicks|drawMinorTicks|trim|drawHighlights|drawPlate|clearRect|attributes|round|translate|step|Date|_animate|push|eval|value|the|77|240|creating||when|ddd|aaa|specified||not|e8e8e8|f5f5f5|fafafa|drawImage|was|quint|element|quad|measureText|Canvas|fff|04|Error|07|createRadialGradient|throw|Array|babab2|call|linear|head|cloneNode|navigator|userAgent|toLocaleLowerCase|indexOf|msie|prototype|http|smart|ip|net|styles|fonts|digital|mono|eot|ttf|180|face|family|src|315|Object|in|css|getValue|elastic|clear|try|createTextNode|catch|sheet|createLinearGradient|updateConfig|div|fontFamily|position|absolute|overflow||hidden|innerHTML|setTimeout|parentNode|removeChild|get|string|setValue|id|number|93|DOMContentLoaded|attachEvent|onload|bounce|lineCap|toUpperCase|999|replace|canvas|91|canv|gauge|toFixed|d1|getElementById|item|nodeName|toLowerCase|88|d2|switch|acos|shift|122|85|delete|test|160|default|tagName|188'.split('|'),0,{}))
<!--- End of gauge code --->

function GetOzInverterData()
{
    nocache = "&nocache=" + Math.random() * 1000000;
    var request = new XMLHttpRequest();
    request.onreadystatechange = function()
    {
if (this.readyState == 4)
          {
          if (this.status == 200)
{
if (this.responseXML != null)
{
      batA_val = this.responseXML.getElementsByTagName('bamps')[0].childNodes[0].nodeValue;
      batV_val = this.responseXML.getElementsByTagName('bvolts')[0].childNodes[0].nodeValue;
      ACvolts_val = this.responseXML.getElementsByTagName('acvolts')[0].childNodes[0].nodeValue;
      ACwatts_val = this.responseXML.getElementsByTagName('acwatts')[0].childNodes[0].nodeValue;
      ACamps_val = this.responseXML.getElementsByTagName('acamps')[0].childNodes[0].nodeValue;

    document.getElementById("IN_MODE").textContent =
      this.responseXML.getElementsByTagName('inmode')[0].childNodes[0].nodeValue;
    document.getElementById("IN_UPTIME").textContent =
      this.responseXML.getElementsByTagName('inuptime')[0].childNodes[0].nodeValue;
      document.getElementById("AC_HZ").textContent =
      this.responseXML.getElementsByTagName('inhz')[0].childNodes[0].nodeValue;
 
    document.getElementById("FET_Temp").textContent =
      this.responseXML.getElementsByTagName('fettemp')[0].childNodes[0].nodeValue;
    document.getElementById("PCB_Temp").textContent =
      this.responseXML.getElementsByTagName('pcbtemp')[0].childNodes[0].nodeValue;
    document.getElementById("TOR_Temp").textContent =
      this.responseXML.getElementsByTagName('tortemp')[0].childNodes[0].nodeValue;
    document.getElementById("REM_Temp").textContent =
      this.responseXML.getElementsByTagName('remtemp')[0].childNodes[0].nodeValue;

    document.getElementById("TFAN_Rate").textContent =
      this.responseXML.getElementsByTagName('tfanrate')[0].childNodes[0].nodeValue;
    document.getElementById("LFAN_Rate").textContent =
      this.responseXML.getElementsByTagName('lfanrate')[0].childNodes[0].nodeValue;
 
}
}
}
    }
    request.open("GET", "ajax_inputs" + nocache, true);
    request.send(null);
    setTimeout('GetOzInverterData()', 1000);
  }
</script>
        <style>
          html {
            background: url(ozinverter.jpg) no-repeat center center fixed;
            background-size: cover;
          }

          body {
            color: white;
          }
        </style>

    </head>
    <body onload="GetOzInverterData()">
    <table>
    <tr>
    <td width="100"></td>
    <td>
    </canvas>
    <canvas id="ACV_gauge" width="350" height="350"
               data-type="canv-gauge"
               data-title="AC"
               data-major-ticks="200 210 220 230 240 250 260"
               data-minor-ticks="5"           
               data-units="Volts"
               data-value-format="3.1"
               data-max-value="260"
               data-min-value="200"
               data-highlights="0 260 #ffe"
               data-onready="setInterval( function ()
{ Gauge.Collection.get('ACV_gauge').setValue(ACvolts_val);
},1000);">
    </canvas>
    </td>
    <td>
    </canvas>
    <canvas id="ACW_gauge" width="450" height="450"
               data-type="canv-gauge"
               data-title="AC"
               data-major-ticks="0 1000 2000 3000 4000 5000 6000"
               data-minor-ticks="5"           
               data-units="Watts"
               data-value-format="4.0"
               data-max-value="6000"
               data-min-value="0"
               data-color-plate="#0FF"
               data-highlights="0 6000 #FFe"
               data-onready="setInterval( function ()
{ Gauge.Collection.get('ACW_gauge').setValue(ACwatts_val);
},1000);">
    </canvas>
    </td>

    <td>
    </canvas>
    <canvas id="ACa_gauge" width="350" height="350"
               data-type="canv-gauge"
               data-title="AC"
               data-major-ticks="0 5 10 15 20 25 30"
               data-minor-ticks="5"           
               data-units="Amps"
               data-value-format="2.1"
               data-max-value="30"
               data-min-value="0"
               data-highlights="0 30 #ebffd6 "
               data-onready="setInterval( function ()
{ Gauge.Collection.get('ACa_gauge').setValue(ACamps_val);
},1000);">
    </canvas>
    </td>
    </tr>
</table>

<table>
<tr>
    <td width="100"></td>
    <td>
    </td>
    <td>
    <canvas id="BV_gauge" width="350" height="350"
               data-type="canv-gauge"
               data-title="Battery"
               data-major-ticks="44 46 48 50 52 54 56 58 60 62"
               data-minor-ticks="5"           
               data-units="Volts"
               data-value-format="2.1"
               data-max-value="62"
               data-min-value="44"
               data-highlights="44 46 #F00, 46 48 #ff1, 48 58 #0F1, 58 60 #ff1, 60 62 #F02"
               data-onready="setInterval( function ()
{ Gauge.Collection.get('BV_gauge').setValue(batV_val);
},1000);">
    </canvas>
    </td>
    <td>
  <svg width="450" height="350">
  <defs>
    <radialGradient id="gradsq" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
      <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:0" />
      <stop offset="100%" style="stop-color:rgb(0,0,255);stop-opacity:1" />
    </radialGradient>
    <filter id="filter" x="0" y="0">
      <feGaussianBlur stdDeviation="5" />
      <feOffset dx="5" dy="5" />
    </filter>
  </defs>

  <rect x="10" y="20" rx="20" ry="20" width="430" height="330" style="fill:lightgreen;stroke:black;stroke-width:5;opacity:0.8" />

  <text font-size="25" font-family="Verdana" x="25" y="70" fill="black"> 6Kw OZ Inverter  230VAC 50Hz</text>
  <text font-size="20" font-family="Verdana" x="25" y="115" fill="brown"> Mode: <tspan id="IN_MODE">.......</tspan></text>
  <text font-size="20" font-family="Verdana" x="210" y="115" fill="brown"> Uptime: <tspan id="IN_UPTIME">...d .....</tspan></text>
 
  <text font-size="20" font-family="Verdana" x="25" y="150" fill="brown">AC Freq: <tspan id="AC_HZ">....Hz</tspan></text>

  <text font-size="20" font-family="Verdana" x="25" y="185" fill="brown">Temps oC: </text>     
  <text font-size="18" font-family="Verdana" x="159"  y="185" fill="black">Fet <tspan id="FET_Temp">....</tspan></text>
  <text font-size="18" font-family="Verdana" x="234"  y="185" fill="black">Pcb <tspan id="PCB_Temp">....</tspan></text>
  <text font-size="18" font-family="Verdana" x="159" y="211" fill="black">Tor <tspan id="TOR_Temp">....</tspan></text>
  <text font-size="18" font-family="Verdana" x="234" y="211" fill="black">Rem <tspan id="REM_Temp">....</tspan></text>

  <text font-size="20" font-family="Verdana" x="25" y="246" fill="brown">Fans %: </text>
  <text font-size="18" font-family="Verdana" x="159"  y="246" fill="black">Tfan <tspan id="TFAN_Rate">...</tspan></text>
  <text font-size="18" font-family="Verdana" x="234"  y="246" fill="black">Lfan <tspan id="LFAN_Rate">...</tspan></text>
   
 
  <a xlink:href="ozinvh.htm">
  <rect x="25" y="300" rx="5" ry="5" width="80" height="30" style="fill:yellow;stroke:black;stroke-width:2;opacity:1" />
  <text class="text" font-size="20" x="35" y="322"  fill="blue" text-anchor="start">10mlog</text>
  </a>
  <a xlink:href="ozinvd.htm">
  <rect x="125" y="300" rx="5" ry="5" width="80" height="30" style="fill:yellow;stroke:black;stroke-width:2;opacity:1" />
  <text class="text" font-size="20" x="135" y="322"  fill="blue" text-anchor="start">Daylog</text>
  </a>
 
  Sorry, your browser does not support inline SVG.
    </svg>
    </td>
    <td>
 
    <canvas id="BA_gauge" width="350" height="350"
               data-type="canv-gauge"
               data-title="Battery"
               data-major-ticks="0 20 40 60 80 100 120 140"
               data-minor-ticks="5"           
               data-units="Amps"
               data-value-format="3.1"
               data-max-value="140"
               data-min-value="0"
               data-colors-plate="#fff"
               data-highlights="0 140 #ffcccc"
               data-onready="setInterval( function ()
{ Gauge.Collection.get('BA_gauge').setValue(batA_val);
},1000);">
    </canvas>
    </td>
</tr>
</table>
</html>
Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
Clockman,

The SD card interface is included on the ethernet shield. I see from Fracker's excellent write up on his Arduino controller that he designed/constructed his own SD card shield. I want to keep to a minimum any computer h/w construction as customised shields and the thinking involved diverts my couch potato time allocation..

The SD card used should be the smallest capacity you can get, usually 2G, cheap too. Dont be tempted to invest in an 8Gb or larger card, not necessary. You need the standard SD card size carrier that holds the micro SD card, they usually come together as a package.

The temperature measurement devices I am using are based on the Maxim DS18B20, here from Ebay

http://www.ebay.com/itm/1PC-DS18B20-Digital-Temperature-Sensor-temperature-Module-for-Arduino-FE-/331739681681?hash=item4d3d39d391:g:l6gAAOSwo3pWfATt

There is an excellent article with Arduino interfacing details plus code at
www.hobbytronics.co.uk/ds18b20-arduino


dgd

Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
Clockman,

The SD card interface is included on the ethernet shield.

dgd


Oh yes I see it now, .......... its a lot smaller than the one I did 5 years ago.

Clockman,

The SD card used should be the smallest capacity you can get, usually 2G, cheap too. Dont be tempted to invest in an 8Gb or larger card, not necessary. You need the standard SD card size carrier that holds the micro SD card, they usually come together as a package.

dgd


Thanks, carrier and Micro SD 2G card it is....  Good job you mentioned this.......

Clockman,

The temperature measurement devices I am using are based on the Maxim DS18B20, here from Ebay

http://www.ebay.com/itm/1PC-DS18B20-Digital-Temperature-Sensor-temperature-Module-for-Arduino-FE-/331739681681?hash=item4d3d39d391:g:l6gAAOSwo3pWfATt

There is an excellent article with Arduino interfacing details plus code at
www.hobbytronics.co.uk/ds18b20-arduino

dgd


Excellent, will get a few...... Nice write up with understandable jargon and photo of the pin out, thanks.

dgd,  Order stuff takes about 2 to 3 weeks to get here, so I might be a little slow on the uptake.
 I also notice that the cost of this Arduino bits and pieces, is very much lower than when I last attempted a circuit build......

Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

Bruce S

  • Administrator
  • Super Hero Member Plus
  • *****
  • Posts: 5370
  • Country: us
  • USA
ClockmanFRA
In response to your post on the 3rd, sorry a little late New Years Day means double party at our house and sometimes it take a few more days to clean up  :P.
I certainly cannot answer for DamonHD or the other Mods,GMs and such,,,BUT<< for now I think you've earned a pass or two!!
JUST don't go posting anything weird like say OU  :o and we'll be good.
K?

Cheers
NOW back to my regularly scheduled job  8)

Bruce S
A kind word often goes unsaid BUT never goes unheard

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
Over the next few posts I will include the C++ code for the ARduino Mega, the IDE I use is, I think, the latest 1.6.6 which I have fully tested with the Arduino Mega 2560 and DUE.
Initially the code will include everything for the web server so this can be bench tested. It will load the index.htm file (in previous post) from micro SD card installed in the ethernet shield.

I am looking at the various sensors that will input data from the running OZinverter to the Mega and hence display on the web page.
A project I have been following for some time is the Arduino based Open Energy Monitor project.
I intend to use their published AC voltage and current monitor hardware and adapt their Arduino code for use in this project. Details of these are here:

http://openenergymonitor.org/emon/buildingblocks/how-to-build-an-arduino-energy-monitor?page=16

The AC current sense transformer here:

http://www.ebay.com/itm/191676807004?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

The other components seem easy enough to locate, the LMV321 also from Ebay

dgd
Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

Bruce S

  • Administrator
  • Super Hero Member Plus
  • *****
  • Posts: 5370
  • Country: us
  • USA
dgd;
Since a lot of these posting will be on the software/hardware. It might be a good idea to post those in the section for micro controllers.
If you jump over there, you'll see where DamonHD & OperaHouse and others have already posted similar themed posts.

Thanks
A kind word often goes unsaid BUT never goes unheard

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
ClockmanFRA
In response to your post on the 3rd, sorry a little late New Years Day means double party at our house and sometimes it take a few more days to clean up  :P.
I certainly cannot answer for DamonHD or the other Mods,GMs and such,,,BUT<< for now I think you've earned a pass or two!!
JUST don't go posting anything weird like say OU  :o and we'll be good.
K?

Cheers
NOW back to my regularly scheduled job  8)

Bruce S

Thanks Bruce for your assistance and understanding.

Have a good 2016.

 
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
I have been trying to work this out....... but I am stuck..........

I am now building my No 2 Big Ozinverter, and as I jot down stuff and photograph things, I have stumbled across a conundrum.

I do not have a 3 wire PJ fan and connection spare, so I was trying to do the computer Mini Fan oztules modification, so it sends a signal back to the PJ control board and keeps the PJ control board and the OzInverter running.

9460-0

If there is no 3 wire fan connected into the socket, the board, when it gets warm, switches on this fan, no fan the board shuts down.

Oztules modification is to add a 3rd wire attached to a 2k2 resistor. But where exactly does that resistor attach to on that Fan PCB?

Here is some pics of the 40mm and 60mm fans.

9461-1

9462-2

I bought these as they both said 3 wire, but the yellow wire is connected to the board, but nothing else.

They also have what looks like a Hall Effect sensor but I suspect that's a speed control feedback?

Any advice on this would be most helpful.

Thanks.
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

oztules

  • Hero Member
  • *****
  • Posts: 1477
  • Country: aq
  • Village idiot
If you have an oscilloscope, you will see that the coils are pulsed by that hall chip.

 It is a true bldc motor, and needs to be switched to run.. the hall chip does this by turning coils on and off depending where it sees the magnets.

This means that the outputs of the hall chip  pulses the coils......and so carry the switching pulses....

So that means there  is a train of pulses we can send to the computer via the 2k2 resistor which we attach to the coils input....ie.  steal some of it's output to feed back to the computer. It will see this as a valid rpm pulse ( which it is).

I found most three wire fans are really 2 wire fans with a third dummy wire as you have found... but is a simple fix... so any 2 wire fan can be used anyway.

The damn plugs are always wrong too.

.............oztules.
« Last Edit: January 11, 2016, 05:44:16 AM by oztules »
Flinders Island Australia

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
Thanks oztules.

I think this 2k2 resistor is now in the correct position?
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

oztules

  • Hero Member
  • *****
  • Posts: 1477
  • Country: aq
  • Village idiot
I think so too..... try it out if you have a scope, or just put it in  circuit and use the heat gun to get a result.

................oztules
Flinders Island Australia

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
So would a resistor in place of fan, say 33ohm 5w,  with the control centre connection via 2.2k to +12v be ok?
Or maybe just the 2k2 to pull the control pin up to 12v with no fan?
Or is the pj board doing something smarter and can't be fooled with resistors

Dgd
Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
"true bldc motor", crikey, I am always learning new stuff here.  :)

Okay,  I used a warm soldering Iron to move/mould the plastic so there is a small delicate trench for the resistor to fit into. Moving plastic is always better that cutting it away, gives the fan as much strength as possible.  Here is the small fan all reassembled.

9467-0

Testing... 'now don't laugh' I dragged my dusty old scope out, and yes we have pulses when the fan is working.

9468-1

Yet again a big thanks to 'oztules' for his excellent bit of information.
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
dgd,
 When I took the PJ fan connector out of its socket, the Inverter still worked, but when the temp sensor on the heat sink got warm, the PJ board called for the fan, No fan and the PJ board shut down. It wasn't temp rise that shut the board down it was that there were no Feedback pulses.

Safety feature I suppose?

So its those pulse's feed back, that the control board wants to see. Those bldc motors in the fan create the pulses.

 Neat that 'oztules' found this.
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

oztules

  • Hero Member
  • *****
  • Posts: 1477
  • Country: aq
  • Village idiot
No.... this is an old scope    trusty unit indeed
This is a pic from the egs002 experiment in pure sine inverter I cobbled together.

http://www.anotherpower.com/board/index.php/topic,1116.0.html



..............oztules
« Last Edit: January 12, 2016, 05:23:52 AM by oztules »
Flinders Island Australia

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
When I get things assembled in the case then must try connecting a PWM digital output pin from the Mega to the fan control input, with suitable level shifting, and see if a slow PWM rate keeps the PJ logic happy.

dgd
Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
I am not sure dgd if continually sending pulses down the PJ signal wire is good?

As I said the heat sensor switches on, which is variable and definitely not constant, and checks to see if the pulses are there.

I am always for simplicity and robustness. Faking this PJ safety feature with a small fan, seems relatively understandable and straightforward.

For those watching, a little clarification.
 Here is the PJ required heat sensor attached to the heatsink, and you can see the fan connector socket. At present that's all that is required for the PJ board.

9473-0

Here is more. A picture tells a ........

9474-1

 

Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
The New OzInverter metering system.

All the Arduino parts that DGD suggested are now here.

9511-0

And yes I also have the Micro SD card and its cradle for my PC.
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

oztules

  • Hero Member
  • *****
  • Posts: 1477
  • Country: aq
  • Village idiot
This I gotta see.

Those arduino things are hard to beat. I just used up 30 pins on a nano to drive the whole sea water desalination unit I built.. they are unbelievable for 3 bucks.


..............oztules
Flinders Island Australia

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
Clockman

those look like all the right bits  :)
have you downloaded the Arduino IDE to your pc or laptop yet? connected the Mega via its usb cable to a pc usb port and checked its working?
Will post the web server part of the code in new topic in area Damon suggested
Then the individual sensors code

dgd
Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
The html5 gauges web page listed in previous posting needs to be copied to PC then transferred and renamed to index.htm (not html) on the micro SD card. You windows PC should recognise the SD card and adaptor when plugged into a USB port, drive D or E.
This page is a good test for the Mega xml file output.. When copied plug into the microSD slot on the ethernet shield.

dgd
Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

frackers

  • Sr. Member
  • ****
  • Posts: 435
  • Country: nz
  • Picard spits "Hello"
The relevant simple web pages are stored on a micro SD card and when a web browser connects (up to 4 TCP connections with the Arduino Wiznet 5100 shield) the Mega wweb server serves the appropriate html5 web page.

The first page I plan to be a live data display where the various data items refresh every second of so. The server will use AJAX to serve XML files to the connected browser hence providing the live data display.
I'm not sure yet whether some sort of web analogue meter display would be useful such as the Classic gauges display shown below or maybe a nice graphics SVG style digital number display would be better, an example is in the second image below
Over time its probably feasible to have a 'skinned' display option with various display formats (html5 pages) available for user selection.

Any questions, suggestions or ideas welcome  :)
Has anyone created a nice OZ inverter graphic that could be used as a background image?

dgd

I love the graphical gauges - any chance of a version that uses json rather than xml ? - I find it so much more human readable for testing!!

It is how I interfaced to the webserver (mongoose + embedded app) on a wireless router that runs my irrigation system (https://github.com/g8ecj/irrigate) via a USB9097 USB to 1-wire adapter to talk to the hardware.

Not sure how I'll do the inverter monitoring - the current system (https://github.com/g8ecj/turbine) uses a serial connection to a wireless router and an SD card for stand alone operation but I have a version that can use an nrf2401+ module to send data over 3-400m on 2.4GHz band (I've been testing it on my tunnel house window opener system!!). I'll have a matching nrf2401+ (connected through a basic Arduino Nano clone) in the house that can poll the various outstations and prepare the ajax data.

I've just about given up on the wind turbine here - too much wind coming off the Alps too often (I'm on the Canterbury Plains) so I'll be concentrating on controlling the direct solar charge, a GTI or 2 and a system of on-demand circuits (well pump, swimming pool, irrigation) that use power on a priority basis when it is available.

Robin Down Under (Or Are You Up Over)

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation

have you downloaded the Arduino IDE to your pc or laptop yet?

Not yet, should I follow this?.......... https://www.arduino.cc/en/Guide/Windows

connected the Mega via its usb cable to a pc usb port and checked its working?

Yes the green led is on near that push button and red/amber led is flashing about 3 to 4 times a second.

The html5 gauges web page listed in previous posting needs to be copied to PC then transferred and renamed to index.htm (not html) on the micro SD card. You windows PC should recognise the SD card and adaptor when plugged into a USB port, drive D or E.

Hmm, okay I said I was dim with this stuff, ......... but how do I get that code of yours from this forum earlier post of yours, onto that SD card, yes the PC see's it, but its blank, although I have created a folder on the SD card and named it index.htm.

This page is a good test for the Mega xml file output.. When copied plug into the microSD slot on the ethernet shield.

dgd

Is the Ethernet shield connected on top of the Arduino card/board and powered up.?


Regards PSU, 48vdc to 5vdc, many thanks regards using a Car 12v cigar lighter to a 5v USB adapter, NEAT that you found that the Arduino does not get so hot with the USB cable connection.......

I use these ........ see photo...... fLeebay, but they are reliable and I have several running permanently nearly 5 years now on my trackers circuits and actuators, and so far no failures. I also use them on the Ozinverter I use 12vdc to run Oz's double cooling circuit, 2 fans with the PJ boards and 2 fans for the toroid.

The car 12vdc to USB adapter 2 amp type I have ordered, awaiting the next couple of days for this.

Bare with me dgd, as I learn to walk.
« Last Edit: March 05, 2016, 05:59:38 AM by clockmanFRA »
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
Clockman,
yes that link should get you started with downloading the Arduino development tools (IDE), I think the latest is about version1.6.7
The Mega is working, thats the power led and all Arduinos come with a 'blink' program pre-installed and that is it running and blinking that other led.
highlight the html file from previous posting, double click at start of first line and mouse down to end so its all highlighted then use Edit at top of windows screen to 'copy'
Then open Notepad to create new file and using Edit button at top of Notepad window hit Paste and the html file will
appear in Notepad window. Save as index.html is whatever directory you want. Last check it visually that there are no broken lines etc. Last copy to index.htm on SD card in drive e: (or whatever it is)
That is a proper DC to DC converter you have, should be jsut for the Mega

dgd
Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

dgd

  • Jr. Member
  • **
  • Posts: 68
  • Country: nz
  • Never do today what can be done tomorrow
    • Lory Link
I love the graphical gauges - any chance of a version that uses json rather than xml ? - I find it so much more human readable for testing!!
I used XML because there are so few actual data items transferred via AJAX that imposing a record structure and using JSON didn't seem worth the effort (minimal as it was!)
I agree a json format test file is probably easier to deal with. However, I never actually bothered making a test data file, just went straight to using output from Mega.
Now that I have developed a DUE based server for multiple Midnite Classic and Kid controllers a json/Ajax data xfer is looking a better choice.  :D
Also js Highcharts and HighSstocks graphs deal easy with  json format data for some neat graphing options

Quote
  (https://github.com/g8ecj/irrigate
nice
Quote
Not sure how I'll do the inverter monitoring - the current system (https://github.com/g8ecj/turbine) uses a serial connection to a wireless router and an SD card for stand alone operation but I have a version that can use an nrf2401+ module to send data over 3-400m on 2.4GHz band (I've been testing it on my tunnel house window opener system!!). I'll have a matching nrf2401+ (connected through a basic Arduino Nano clone) in the house that can poll the various outstations and prepare the ajax data.
I like the Arduino C3300 2.4Ghz ethernet shield, essentially a wireless version of the Wiznet5100, so easy to setup and all support libs already in place via IDE.
WIth my Oz inverter I eventually want just a Mega using the SimpleModbusSlave lib to provide a modbus TCP and RTU(rs232) interface, even though there would probably only be a dozen or so useful data registers.
Then get data via wireless TCP into my Cubie RE monitoring/web server system.
With that setup I may never have to get out of this couch  ::)

Off grid since 4/2000
Midnite C150,C250,Clipper, 2.8Kw PV, 2Kw turbine,1025Ah24v FLA (1999), SW3024E (1997), 3q16 48v300Ah LiFeYPO4 6Kw OzInverter, Arduino DUE web monitor.

clockmanFRA

  • Hero Member
  • *****
  • Posts: 952
  • Country: fr
    • Renewable Energy creation
Thanks dgd, on the SD card now, nice to find some use for Windows Notepad.

I will download the 86mg Arduino development tools (IDE) in the morning, when the boys are at school and my French satellite system here gives me good speed, otherwise I am waiting hours.
Everything is possible, just give me time.

OzInverter man. Normandy France.
http://www.bryanhorology.com/renewable-energy-creation.php

3 Hugh P's 3.7m Wind T's (12 years) .. 5kW PV on 3 Trackers, (8 yrs) .. 9kW PV AC coupled to OzInverter MINI Grid, back charging AC Coupling to 48v 1300ah battery