Classic Software options discussion

Started by TomW, January 18, 2013, 10:16:35 AM

Previous topic - Next topic

TomW

OK, I split this off just hope I didn't orphan comments germane to the original topic!

Tom
Do NOT mistake me for any kind of "expert".

( ͡° ͜ʖ ͡°)


24 Trina 310 watt modules, SMA SunnyBoy 7.7 KW Grid Tie inverter.

I thought that they were angels, but much to my surprise, We climbed aboard their starship and headed for the skies

dgd

#16
Quote from: stephendv on January 18, 2013, 03:08:32 PM
Quote from: Psyfy on January 18, 2013, 02:23:38 PM
Cool, sounds great! So Stephen, when you've a spare minute, can you show me how to implement a 'roll your own' Boost algorithm.

Hehe, does "it's not exposed by the current API" count as an answer?   And just to double check with the midnite guys, would it be possible to implement boost externally through modbus?

HaHa, nice one  ;)  the updated  Classic modbus register listing has not appeared yet... but its unlikely to have boost controls  if the firmware dont already have booster code..  And if it did the MNGP setup would say something. :P

dgd
Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand

Westbranch

Thanks tom, Hopefully this will keep the discussion germane, the topic seems to be split over several different threads.
---------------------------------------------------------------------------------------------------------
On topic.  There are some great ideas here that I hope will allow me to poll the Classic and a Battery monitor for their output.

I have an isolated Off Grid install, that I am expanding and rebuilding.  Now moving from 12 to 24V system.  System will be unattended for up to 4 months over winter.

The non-existing application I would like needs to run on a CPU that has VERY LOW! power consumption while monitoring the daily PV production and use.  I previously used a Vx Palm pilot to poll my XBM battery monitor every 1/2 hour, still operational but mothballed for now. Was powered direct off 12 v.

The main restriction is that we do not have any cell service, telephone line or sat internet and as the install will be 'unmanned' for long periods, I don't think I would want to leave an inverter and modem running and how would one power a cell phone and does it have the memory capacity to hold that many records??? 120 days x 6 hour x 2 samples / hr =1440 samples...

I hope  this discussion can come up with a solution that can operate on a few different platforms .... great.

so I will just sit here lurking and looking for a less 'cutting edge' solution.   
KID FW1811 560W >C&D 24V 900Ah AGM
CL150 29032 FW V.2126-NW2097-GP2133 175A E-Panel WBjr, 3Px4s 140W > 24V 900Ah AGM,
2 Cisco WRT54GL i/c DD-WRT Rtr, NetGr DS104Hub
Cotek ST1500 Inv  want a 24V  ROSIE Inverter
OmniCharge3024  Eu1/2/3000iGens
West Chilcotin 1680+W to come

dgd

#18
Quote from: Westbranch on January 18, 2013, 05:14:54 PM
Thanks tom, Hopefully this will keep the discussion germane, the topic seems to be split over several different threads.

The non-existing application I would like needs to run on a CPU that has VERY LOW! power consumption while monitoring the daily PV production and use.  I previously used a Vx Palm pilot to poll my XBM battery monitor every 1/2 hour, still operational but mothballed for now. Was powered direct off 12 v.

The main restriction is that we do not have any cell service, telephone line or sat internet and as the install will be 'unmanned' for long periods, I don't think I would want to leave an inverter and modem running and how would one power a cell phone and does it have the memory capacity to hold that many records??? 120 days x 6 hour x 2 samples / hr =1440 samples...

I hope  this discussion can come up with a solution that can operate on a few different platforms .... great.

so I will just sit here lurking and looking for a less 'cutting edge' solution.

Seems like a Raspberry Pi would fit the bill perfectly, ultra low power, can ethernet to your Classic. Works from a cell phone charger too.
To power it at via USB  I would use a cigar lighter USB plugin that you can get for 24V DC (for truck) and simply wire it (via a lighter socket?) to
your 24V distribution panel. The Pi uses a flash card with easily enough room for your logged data. Pi also has other inputs, USB and 12 header pins that can attach to other devices/sensors etc..
There are also a few Pi People here who would no doubt share code with you  8)
And of course extremely low cost  :)

dgd
Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand

TomW

Quote from: dgd on January 18, 2013, 05:53:13 PM

Seems like a Raspberry Pi would fit the bill perfectly, ultra low power, can ethernet to your Classic. Works from a cell phone charger too.
To power it at via USB  I would use a cigar lighter USB plugin that you can get for 24V DC (for truck) and simply wire it (via a lighter socket?) to
your 24V distribution panel. The Pi uses a flash card with easily enough room for your logged data. Pi also has other inputs, USB and 12 header pins that can attach to other devices/sensors etc..
And of course extremely low cost  :)

dgd

Yes, that is where I am headed, I hope. Been looking for an elegant logging / control system for years and have used Laptops, EEEPC's, Linksys Slugs, Guruplugs, CAI Webcontrol boards, etc all with varying levels of success and reliability. Pi is just the next step. So far I am just looking at new ways as they pop up. No reliable cell service here at the farm so I never tried phones and the like.

The Pi runs off a 5 VDC power supply to a microusb port, preferably over an amp output. I have the Pi Plate breakout board so I can sense input and control TTL signals operating relays or SSRs, etc. Plus the USB, Ethernet and HD and video out are built in.

But I need to get it working with modbus rather than using the serial register dump stream which limits me to logging & processing output and controlling other devices.

So here I am out in the wilderness of new devices and software hunting down a solution.

Tom

Do NOT mistake me for any kind of "expert".

( ͡° ͜ʖ ͡°)


24 Trina 310 watt modules, SMA SunnyBoy 7.7 KW Grid Tie inverter.

I thought that they were angels, but much to my surprise, We climbed aboard their starship and headed for the skies

mtdoc

Quote from: TomW on January 18, 2013, 06:07:59 PM
I have the Pi Plate breakout board so I can sense input and control TTL signals operating relays or SSRs, etc. Plus the USB, Ethernet and HD and video out are built in.


Tom,

Does the Pi Plate have any A/D capability?

I've been thinking a Pi +  Arduino might make a nice low cost, low power combo for whole system monitoring and control....but other options..??
Array 1: Sanyo HIT225 X 8 on Wattsun tracker. Array 2: Evergreen ES-E-225 X 12 on shed roof. Midnite e-panel with Outback GVFX3648, FNDC and Classic 150 X 2. 436 AH AGMs. Honda eu2000i X 2.

TomW

Quote from: mtdoc on January 18, 2013, 06:32:18 PM

Tom,

Does the Pi Plate have any A/D capability?

I've been thinking a Pi +  Arduino might make a nice low cost, low power combo for whole system monitoring and control....but other options..??

mtdoc;

Nope, its just TTL levels. Some outputs from the Pi can be run in an PWM mode, I think, but haven't dug that deep yet. The Pi Plate is just a breakout board, no active components but has a built in protoboard of sorts so you can build circuits on that.

The CAI Webcontrol has A/D capability as well as 1 wire temp sensor bus and a humidity sensor input, however it has proprietary firmware.

Time will tell where I end up.

Tom
Do NOT mistake me for any kind of "expert".

( ͡° ͜ʖ ͡°)


24 Trina 310 watt modules, SMA SunnyBoy 7.7 KW Grid Tie inverter.

I thought that they were angels, but much to my surprise, We climbed aboard their starship and headed for the skies

mtdoc

Quote from: TomW on January 18, 2013, 06:42:23 PM
Quote from: mtdoc on January 18, 2013, 06:32:18 PM

Tom,

Does the Pi Plate have any A/D capability?

I've been thinking a Pi +  Arduino might make a nice low cost, low power combo for whole system monitoring and control....but other options..??

mtdoc;

Nope, its just TTL levels. Some outputs from the Pi can be run in an PWM mode, I think, but haven't dug that deep yet. The Pi Plate is just a breakout board, no active components but has a built in protoboard of sorts so you can build circuits on that.

The CAI Webcontrol has A/D capability as well as 1 wire temp sensor bus and a humidity sensor input, however it has proprietary firmware.


Ok. thanks.  I know the GertBoard for the Pi has lots of A/D capability but it's a bit overkill and not cheap.

What I like about the Arduino is it's A/D capability and flexibility (and low cost!).   People are combining Arduino's with Pi for all sorts of cool projects - I haven't yet  seen a RE monitor and control example yet..

Quote

Time will tell where I end up.

Tom


Yeah - me too.  But at the pace I'm going it may be a while.  Got another full time job - speaking of which I better get back to it now.... ::)
Array 1: Sanyo HIT225 X 8 on Wattsun tracker. Array 2: Evergreen ES-E-225 X 12 on shed roof. Midnite e-panel with Outback GVFX3648, FNDC and Classic 150 X 2. 436 AH AGMs. Honda eu2000i X 2.

Psyfy

Quote from: stephendv on January 18, 2013, 03:08:32 PM
Hehe, does "it's not exposed by the current API" count as an answer?   And just to double check with the midnite guys, would it be possible to implement boost externally through modbus?

Yep, answers my question, like a boomerang...

Thinking about it all from a dev's POV... Limited MCU resources? A MODBUS I/F? (or even I2C, 1wire etc.) Dude, it's cooking already!

So, design an expansion PCB with MCU (enough resources to futureproof, whatever that is.) and a MODBUS I/F on board. Code modularized functionality like the 'Boost feature', flash it to the expansion MCU. $29.95 - $49.95 for key functionality additions... Or, go USB (ext) to MODBUS (int) on plugin hardware modules. Buy the 'extensibility module' (say FTDI for example) then buy the 'Boost' module to suit (or other h/w widget), plug it in, config the system. Entry? One to get in, one to play the game.
Separate MCU, separate code, separate development chain. You get the picture.

I conceed though, would require a major topology rethink & code rewrite... but with direction (& ongoing revenue stream). The existing MCU becomes defined as the base functionality core and also the extensibility arbitrator. Spaghetti code always at the beginning has someone scratching something, somewhere.  ;) Been there, done that, could write a book on the subject.


stephendv

I'm very happy with Mango for the software side, the scripting ability means it can do everything I wanted it to do, without requiring too much coding effort on my part.  The Raspberry pi is also almost a perfect monitoring system because of it's low power and low cost. 

Below a screenshot of the variables I'm monitoring with Mango and a chart of the current.

I just received the relay and wireless modules I need to remotely turn on my water pump from the rpi: http://shop.ciseco.co.uk/xrf-wireless-rf-radio-uart-rs232-serial-data-module-xbee-shape-arduino-pic-etc/

That company has a bunch of other modules which might be of interest, like their RF board + arduino for about the same price as a normal arduino: http://shop.ciseco.co.uk/radio-arduino-compatible-starter-kit-lowest-cost-in-the-world/
And a GPIO expander for the raspberry pi for under 10 USD: http://shop.ciseco.co.uk/k002-slice-of-pi-o/

TomW

Stephen;

Now that is what I am talking aboout!

I see  you got mine to run.  ;D

I think there is a huge potential here and appreciate you bringing Mango up and helping me with mine.

Now for a savvy individual to sort out a stripped down version of Linux to run it with plenty of overhead on resources.

Thanks a bunch for the thread & help.

Tom
Do NOT mistake me for any kind of "expert".

( ͡° ͜ʖ ͡°)


24 Trina 310 watt modules, SMA SunnyBoy 7.7 KW Grid Tie inverter.

I thought that they were angels, but much to my surprise, We climbed aboard their starship and headed for the skies

mtdoc

#26
Quote from: stephendv on January 19, 2013, 03:18:02 AM
I'm very happy with Mango for the software side, the scripting ability means it can do everything I wanted it to do, without requiring too much coding effort on my part.  The Raspberry pi is also almost a perfect monitoring system because of it's low power and low cost. 

Below a screenshot of the variables I'm monitoring with Mango and a chart of the current.



Stephen - Awesome stuff!

A few questions.  Is all the data  coming into your rPI in serial form?    I agree that rPI seems ideal for a low power low cost monitoring system  but I'm interested in taking analog voltage data from various sensors (CTs, DC shunt, thermistor, etc) as well as serial data from the Classic and being able to log and display this sensor and classic data and I don't think the PI can do any A/D  (which is where an Arduino might be useful)  - but maybe I'm wrong. Is there an inexpensive add on A/D board for the rPI?

I'm just trying to get a handle on how best to accomplish what I'm after.   I can program in Labview and take raw sensor data (via Arduino A/D or other low cost DAQ board)  and serial data - log, display, control, etc  but LabView will not run on a rPI or any other super low power, low cost platform. (best I can do is run it on a small netbook).

A Mango Pi (!) may be a better solution.... :D

Also - I like the Mango graphs but what are those spikes down? Some look like loads but others look very brief. Maybe it's just the time frame. Are some of those artifact or is your current really doing that?

Thanks for all your help - you seem to have developed some great tools very quickly!
Array 1: Sanyo HIT225 X 8 on Wattsun tracker. Array 2: Evergreen ES-E-225 X 12 on shed roof. Midnite e-panel with Outback GVFX3648, FNDC and Classic 150 X 2. 436 AH AGMs. Honda eu2000i X 2.

stephendv

#27
Quote from: mtdoc on January 19, 2013, 02:44:36 PM
Is all the data  coming into your rPI in serial form?    I agree that rPI seems ideal for a low power low cost monitoring system  but I'm interested in taking analog voltage data from various sensors (CTs, DC shunt, thermistor, etc) as well as serial data from the Classic and being able to log and display this sensor and classic data and I don't think the PI can do any A/D  (which is where an Arduino might be useful)  - but maybe I'm wrong. Is there an inexpensive add on A/D board for the rPI?

The data from the classic comes into the pi via the ethernet cable, and the sunny island data comes in directly from an sql database which get there through another program, but I won't get into that.  AFAIK, the GPIOs on the rpi don't have an ADC so you're probably on the right track with an attached arduino to talk to sensors.  Another option might be the phidgets system: www.phidgets.com, but the boards and sensors tend to be quite a bit more expensive than an arduino. 
If you had a serial connection between the rpi and arduino, then you could run a modbus slave on the arduino and talk to it from the rpi through mango, for example.  There seem to be a view modbus libraries for arduino, but you'd still have to write the software using these libraries to read data from your sensors and present them over modbus.

Quote from: mtdoc on January 19, 2013, 02:44:36 PM
Also - I like the Mango graphs but what are those spikes down? Some look like loads but others look very brief. Maybe it's just the time frame. Are some of those artifact or is your current really doing that?
Thanks for all your help - you seem to have developed some great tools very quickly!

The spikes in the graph are real, we've had some terrible weather these days.  Getting going quickly is thanks to using someone else's software, ie. Mango  ;)
The only bits of code I've had to write are the python script to send commands to the classic, like force float and force EQ which I now control from the rpi, and the short pieces of JavaScript used by the "scripting" module in mango.  Attached is my end amps script which forces float on the classic based on the charging current read by the Sunny Island's shunt.

If you just want to trigger events based directly on a single value, then you don't need a script, another example attached which sends me an email if the battery soc is below 50%.



mtdoc

Thanks for all the info Stephen.  I think I'm getting a handle on my options.

The first thing I need to get going is reading sensor data.  Then I need to do some learning about modbus -so I can handle the Classic interface..

Ultimately I may end up on a rPI but I'll probably start on my windoze box since I'm running some other monitoring stuff that requires it (Wattplot for my Outback stuff and Cumuius for my weather station).  Once I get to the point that I can handle the serial data from my Outback Mate I could move a Linux system.

For now I'm actually pretty happy with what I can monitor and control with the Local Ap, Wattplot and Cumulus and using VNC for remote access,  but there's so much potential to do more as you are proving.   It's really all just hobby fun for me - and I'm in no hurry.

Thanks again.
Array 1: Sanyo HIT225 X 8 on Wattsun tracker. Array 2: Evergreen ES-E-225 X 12 on shed roof. Midnite e-panel with Outback GVFX3648, FNDC and Classic 150 X 2. 436 AH AGMs. Honda eu2000i X 2.