Author Topic: What do you use to log amps? weather?  (Read 2201 times)

0 Members and 1 Guest are viewing this topic.

(unknown)

  • Guest
What do you use to log amps? weather?
« on: December 07, 2009, 11:08:52 AM »
Hey all,


   I'm making good progress on my wind turbine (a prototype on a 8' high post spun yesterday and my ghurd controller is also working.. yay!), so now I'd like to know what you guys use for data logging?  


   thanks!

« Last Edit: December 07, 2009, 11:08:52 AM by (unknown) »

SparWeb

  • Global Moderator
  • Super Hero Member Plus
  • *****
  • Posts: 5452
  • Country: ca
    • Wind Turbine Project Field Notes
Re: What do you use to log amps? weather?
« Reply #1 on: December 07, 2009, 11:50:02 AM »
If you really want to DIY the datalogger, try this:


http://www.thebackshed.com/windmill/PicLog.asp


I made one myself a year and a half ago, and still use it to this day.  

« Last Edit: December 07, 2009, 11:50:02 AM by SparWeb »
No one believes the theory except the one who developed it. Everyone believes the experiment except the one who ran it.
System spec: 135w BP multicrystalline panels, Xantrex C40, DIY 10ft (3m) diameter wind turbine, Tri-Star TS60, 800AH x 24V AGM Battery, Xantrex SW4024
www.sparweb.ca

JeffD

  • Jr. Member
  • **
  • Posts: 50
Re: What do you use to log amps? weather?
« Reply #2 on: December 07, 2009, 03:08:13 PM »
I can also vouch for the piclog project.  I didn't use the picax chip but went with an Atmel AVR based microcontroller but all the rest of the electronics was the same as the piclog project.


Here is a picture of the 20 character by 4 line LCD display that gives access to 7 screens of data.  The picture shows the wind turbine real time data display.




« Last Edit: December 07, 2009, 03:08:13 PM by JeffD »

willib

  • SuperHero Member
  • ******
  • Posts: 2414
  • Country: us
Re: What do you use to log amps? weather?
« Reply #3 on: December 07, 2009, 05:27:09 PM »
Hi Jeff


What do you think of the AVR chips?

I have tried the pic chips but it is sort of hard to get your head around them?

So i was thinking of switching to the Atmel.

long shot question here , would you have or know where to get the timing diagram for the programming process? Reason i'm asking is a while ago i built a pic programmer hooked to a pc ISA bus ,and a handfull of chips,

Using Pascal i was able to get the program into them .Then i hit a road block when trying to program them.

There are so many exceptions to try and do anything with them . (grrr hate um)

I think Aussie Bryan might remember the circuit?

« Last Edit: December 07, 2009, 05:27:09 PM by willib »
Carpe Ventum (Seize the Wind)

JeffD

  • Jr. Member
  • **
  • Posts: 50
Re: What do you use to log amps? weather?
« Reply #4 on: December 08, 2009, 12:06:40 AM »
 It was very close between picaxe and the AVR when I was deciding what to use for the logger.  The article on the piclog was very clear and made the picaxe look perfect for the role.  I had never worked with micro-controllers before and the picaxe seemed right for me.  The picaxe seemed to be easier to program compared to what I had read about the AVR but the AVR was potentially faster and could have more I/O depending on which chip you used.  When I walked into Jentronics I was all set to order the picaxe chip since I figured I would start simple and then go to AVR once I needed more processing power.  The game plan changed when the counter salesman informed me that the picaxe was $4 but had to be shipped in at a charge of $8 shipping and $5 handling. I asked what the cost of the ATmega328 was and he said $7.  Then he said there was no shipping or handling since they carried them in store.  That is all it took to convince me that I was going with Atmel chips even if it was a steeper learning curve.  I went with the Atmel AVR line of micro-controllers because of economics.


I run Linux and it turns out that all the dev tools for avr chips work on Linux.  I used the AVR GCC tool chain along with code::blocks IDE for coding in c/c++ and compiling.  Its the first micro-controller I have programmed so can't compare it to anything else (ie picaxe). In the end I didn't find it hard since tons of free info/tutorials are available on the web for it but did have to do a lot of reading.


  I don't know anything about the timing used for programming but programming was easy once I understood it :).  I used a home made parallel port dongle and the avrdude command line utility to do the in service programming.  Actually I cheated.  I programmed the Arduino bootloader using ISP then used the usb port to upload my hex files each time I made updates.


  After mucking around on breadboard for a while I eventually bought a Freeduino board to mount the ATMega328.  Still at the beginning stages in printed circuit board making.


   Once I got the basic system working based on piclog I started doing a lot more on chip processing/analysis which I don't think I could have done with the picaxe.


  The ATmega328 has 32K flash for program storage, 2K ram, 1K EEPROM. I use all 6 analog input ports and 5 of the digital I/O ports.  One digital output channel is configured for PWM for the dump load.  I was using another PWM channel for the turbine boost controller but ended up going with a dedicated analog PWM controller(TL494) for that function.  Currently 6.47K is used for program and static text data and about 0.7K for dynamic data in ram.  About 0.4K of the EEPROM is used for user settings, and history. I utilize the USB interface to connect to a cheap ($100 second hand) netbook to store data on the 160 gig hard drive for long term storage and further analysis ie making pretty power curve graphs.


Parameters that are monitored and can be displayed on the LCD screen are:

Turbine: RPM, Amps, Watts, TSR, 24hr hourly log of watt hour history

Wind: Speed, 24hr hourly log of avg and peak history

Solar: Amps, Watts, 24hr hourly log of watt hour history

Battery: Volts, Total amps in, amps out, SOC, temperature, absorption voltage temp comp, float voltage temp comp, absorption time left, time since last full charge, dump load %

System: time on displayed as days, hours, minutes, seconds, burn date and revision.


I was monitoring wind direction but had some problems with the sensor that need to be fixed so its on the back burner for now.


  I went with a 3 stage battery charge control algorithm ie boost, absorption, float.  One of the analog inputs is used to sense battery temperature so that temperature compensation can be performed.  Time since last full charge, absorption time left, float voltage, absorption voltage and state of charge are calculated on the microcontroller.

« Last Edit: December 08, 2009, 12:06:40 AM by JeffD »

morglum

  • Guest
Re: What do you use to log amps? weather?
« Reply #5 on: December 08, 2009, 06:59:33 AM »
Cheers all for the replies.


I assume not going the DIY route means getting the whole  controller (which I dont need) ?


Or are there any cheap loggers?

« Last Edit: December 08, 2009, 06:59:33 AM by morglum »

willib

  • SuperHero Member
  • ******
  • Posts: 2414
  • Country: us
Re: What do you use to log amps? weather?
« Reply #6 on: December 09, 2009, 04:12:52 PM »
Wow thanks ,

i wasnt expecting such a long reply :)

For your anemometer  did you ever try a cpu box fan , a small one with three wires ?

The third wire is the output for the digital cpu monitoring hardware.

Once you dissamble it , ie take out the armatures it will spin freely..

and you have a very compact wind gauge!

The fan electronics run on 12V normally, and with the armatures removed will run nicely with 5V applied.

And when you spin it by hand it will either put out 2 or 4 alternating 0 to 5V pulses per revolution.


.

Bill

.

« Last Edit: December 09, 2009, 04:12:52 PM by willib »
Carpe Ventum (Seize the Wind)