Simple Arduino Webserver for sucking Classic readings.

Started by phonetic, July 26, 2013, 09:45:22 PM

Previous topic - Next topic

phonetic

I'm looking at using Arduino mega & ethernet board, to get a snap shot of classic readings as a basic website, something basic to allow checking via Android device/smartphone.
I understand Arduino has RS482 & Modbus library's support.
would be great if get some ideas from here :)
Home:
3.04kW Grid Tie.
Weekender:
6.08kW Off Grid. DC & AC coupled
32 of 190W (12+12 Array DC) (8 Array AC)
Midnite Classic 150 & Classic Lite 150
1.5KW AC coupled Grid Inverter
8 of 600 amp hour Surrette S600 flooded cell battery bank 24 volt 1200 amphour
Outback VFX3024E Inverter Charger, Mate 2.

mtdoc

I know almost nothing about Modbus, but I'm working on setting up an Arduino based voltage and current measurement system for my ePanel.  If some one got the Classics Modbus data working on a 'duino that would be awesome!  I look forward to hearing about your progress.
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.

Graham

Quote from: mtdoc on July 27, 2013, 01:59:20 PM
I know almost nothing about Modbus, but I'm working on setting up an Arduino based voltage and current measurement system for my ePanel.  If some one got the Classics Modbus data working on a 'duino that would be awesome!  I look forward to hearing about your progress.

I have a Netduino based monitor on my system (classic lite, VFX3524), it interfaces with the classic lite over Modbus TCP and the Outback Mate over RS232. I made a custom shield that includes an RTC, a watchdog circuit and the RS232 interface (http://netduinosolar.wordpress.com/documentation/making-the-netduinosolar-shield/). This shield is compatible with the arduino. I've had it running at my off grid cabin for several month now, I'm currently adding support for the TriStar for a couple of smaller systems I've installed.
The C# source is available at https://netduinosolar.codeplex.com//.
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

Westbranch

rossgr, I looked around your site, but have trouble finding just which part is and what does a 'shield do?'
thanks, it's an interesting project.
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

Graham

Quote from: Westbranch on July 27, 2013, 10:05:33 PM
rossgr, I looked around your site, but have trouble finding just which part is and what does a 'shield do?'
thanks, it's an interesting project.

A shield is a daughter board that plugs into an arduino or netduino, you can buy a shield for all kinds of projects, see https://www.sparkfun.com/categories/103?page=all.
I used a program called diptrace to create a PCB (printed circuit board) for a custom shield that incorporates the RS232 interface, the RTC and a watchdog circuit needed for my project.


The assembled shield


The prototype

Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

Graham

Some of the images didn't make it up on my last post

PCB


Side view of shield and netduino
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

boB


Ryan, do you think we can UP the allotment for image size a little bit more ?

I think it's 300K total or something small like that.  Maybe more like 1 MegaByte might
be better ?  Then we could have a better view.

boB
K7IQ 🌛  He/She/Me

phonetic

Looking at the specs of the netduino 2 card, looks interesting, price wise a Raspberry-Pi looks more bang for buck, I got mega arduino card has 32k RAM and 256k flash, to support networking, basic arduino card..not enough RAM to manage a TCP/IP stack & misc buffers.

Home:
3.04kW Grid Tie.
Weekender:
6.08kW Off Grid. DC & AC coupled
32 of 190W (12+12 Array DC) (8 Array AC)
Midnite Classic 150 & Classic Lite 150
1.5KW AC coupled Grid Inverter
8 of 600 amp hour Surrette S600 flooded cell battery bank 24 volt 1200 amphour
Outback VFX3024E Inverter Charger, Mate 2.

mtdoc

rossgr-  You're netduino solar monitor looks great.   Thanks for sharing! :)

Unfortunately netduino requires programming in the .NET framework - which i don't have the time or inclination to learn.  :'(

I can do Arduino or Labview only  :-[
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.

Graham

Quote from: mtdoc on July 28, 2013, 01:56:15 AM
rossgr-  You're netduino solar monitor looks great.   Thanks for sharing! :)

Unfortunately netduino requires programming in the .NET framework - which i don't have the time or inclination to learn.  :'(

I can do Arduino or Labview only  :-[

I've also posted another open source project you might find useful, it's a modbus master and slave tool, using the master , you can read the modbus data off the classic and export it to a file which you can then import into the slave. I've used this to test my monitor when I don't have access to my solar equipment.
It's available at http://modbustool.codeplex.com/
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

boB


I installed the modbus master on my windows 7 laptop but it has an error.  Some kind of memory
bounds error.  I also tried compatibility mode but no go.

Anybody else have a problem with win 7 and Ross's app ?

boB
K7IQ 🌛  He/She/Me

RossW

Quote from: boB on July 28, 2013, 07:42:26 PM
Anybody else have a problem with win 7 and Ross's app ?

I do....  (I've never compiled it for doze so be curious to know how you run it!)
3600W on 6 tracking arrays.
7200W on 2 fixed array.
Midnite Classic 150
Outback Flexmax FM80
16 x LiFePO4 600AH cells
16 x LiFePO4 300AH cells
Selectronics SP-PRO 481 5kW inverter
Fronius 6kW AC coupled inverter
Home-brew 4-cyl propane powered 14kVa genset
2kW wind turbine

boB

Quote from: RossW on July 28, 2013, 09:40:04 PM
Quote from: boB on July 28, 2013, 07:42:26 PM
Anybody else have a problem with win 7 and Ross's app ?

I do....  (I've never compiled it for doze so be curious to know how you run it!)

I just ran the pre-compiled setup.exe from the code download site.

It installed OK but had the error when trying to run the installed version

I might try the .msi installer but I would think they'd end up being the same.
Maybe not ?

boB
K7IQ 🌛  He/She/Me

RossW

Quote from: boB on July 28, 2013, 10:41:09 PM
Quote from: RossW on July 28, 2013, 09:40:04 PM
I do....  (I've never compiled it for doze so be curious to know how you run it!)

I just ran the pre-compiled setup.exe from the code download site.

ok, my bad. Wrong Ross!
3600W on 6 tracking arrays.
7200W on 2 fixed array.
Midnite Classic 150
Outback Flexmax FM80
16 x LiFePO4 600AH cells
16 x LiFePO4 300AH cells
Selectronics SP-PRO 481 5kW inverter
Fronius 6kW AC coupled inverter
Home-brew 4-cyl propane powered 14kVa genset
2kW wind turbine

mtdoc

Quote from: boB on July 28, 2013, 07:42:26 PM

I installed the modbus master on my windows 7 laptop but it has an error.  Some kind of memory
bounds error.  I also tried compatibility mode but no go.

Anybody else have a problem with win 7 and Ross's app ?

boB

Yep. Screen shot of error below:

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.