Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 30
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Matthew T. (35)
Amrit Deshmukh (60)


Next birthdays
05/05 Alexandre (32)
05/07 a.gutzeit (63)
05/08 wpk5008 (34)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Projects
« Previous topic | Next topic »   

Wind data logger

1 2 
Move Thread LAN_403
TheMerovingian
Fri Feb 05 2010, 10:14PM Print
TheMerovingian Registered Member #14 Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
In attempt to rationalize and determine if a given site is fit or not for wind power generation I figured out how to design a system to log the wind speed without the aid of a PC, with solar powering for set-n-forget applications.

I have thought about two possible systems:
-Storing values in a on-board flash memory and downloading it through RS-232 or USB (limited memory and need to design a software to download the data)
-Storing value directly in a SD/MMC memory card (FAT16, max 2GB) in text files readable by excel or origin

I chose the second route mainly because the larger memory space available, the low cost of SD/MMC cards and the ease of interfacing it with a pic microcontroller via SPI interface.

I have already design the hardware and the software for the project and it is in final stage of construction.

Parts:
PIC18F2550 microcontroller
DS1307 real time clock
74HCT125
4050N
LCD 20x4 display with backlight

Wind speed sensing is performed by counting the pulses of the rotation of the anemometer shaft (corresponding to a particular wind speed)

Features:
-Unlimited sampling point capacity (limited by memory of the card and by the importing limit of excel or other softwares)
-Real time quartz clock independent from microcontroller and with separate backup battery
-Programming interface through LCD display
-Sampling and programming control
-All adjustments and calibrations are done through internal interface
-Sampling times: 2s 5s 10s 15s 20s 30s 1m 2m 5m 10m
-Auto reset after 3 SD card errors
-Auto recovery after blackouts/errors
-m/s kmh and knots units selectable
-FAT16 formatted card compatible
-Software controlled PWM backlight
-Low power consumption

I will test it in lab and then in an of-field application fed by a 12V SLA battery charged by a 5W solar panel.

More updates to come
1265408047 14 FT0 Cimg2480

1265408047 14 FT0 Cimg2481

1265408047 14 FT0 Cimg2482

1265408047 14 FT0 Cimg2483
Back to top
klugesmith
Sun Feb 07 2010, 05:49AM
klugesmith Registered Member #2099 Joined: Wed Apr 29 2009, 12:22AM
Location: Los Altos, California
Posts: 1714
Looks like a great project. I didn't know SD cards supported a simple SPI interface -- sounds like an ideal medium for stand-alone dataloggers. Is it easy to buy SD card sockets?

How low is your "low power" goal?
Back to top
Steve Conner
Sun Feb 07 2010, 10:44AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Nice project! smile

Years ago I was involved with doing these wind site surveys. We used a commercial instrument just like this, except that it was made long before SD cards were invented. It stored its results to an EEPROM plugged in a socket, and would run for months off two 9V batteries.

Well, except for the time somebody smashed it open and stole the two 9V batteries. :(

SD cards mainly use a 4-bit parallel interface for speed, but are required to support SPI as a fallback mode for low-end devices. It's in the SD card standard. The sockets are available from most big electronics suppliers, and probably Sparkfun too. But they're surface mount.

Another device I like is the "Vinculum" from FTDI, that converts USB memory sticks to RS232 or SPI, and has a built-in FAT32 driver. Saves huge amounts of time and effort because the filesystem driver is done for you.
Back to top
Bjørn
Sun Feb 07 2010, 11:52AM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Futurlec has a quite nice SD card socket, but may or may not send you what you ordered: Link2
Sparkfun do send you what you ordered, but as usual they are very expensive: Link2

For most simple uses there is no need to use a full file system. You can write the data directly on the card and dump it on a PC, or you can create the files on a PC then write the data to the correct address without knowing anything about the file system.

There are also cheap Flash chips with SPI interface if you only need a few megabytes of storage: Link2
Back to top
TheMerovingian
Sat Feb 13 2010, 08:07PM
TheMerovingian Registered Member #14 Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
Klugesmith wrote ...

Looks like a great project. I didn't know SD cards supported a simple SPI interface -- sounds like an ideal medium for stand-alone dataloggers. Is it easy to buy SD card sockets?

How low is your "low power" goal?


Bought mine on Link2, cheap and with on-board decoupling capacitors and pull-ups.

Bjørn wrote ...

For most simple uses there is no need to use a full file system. You can write the data directly on the card and dump it on a PC, or you can create the files on a PC then write the data to the correct address without knowing anything about the file system.

There are also cheap Flash chips with SPI interface if you only need a few megabytes of storage: Link2

The use of a "complete" file system is simpler for users that want to mess with raw data readers and so on. I make two copies of it, one for me and one for another person (it must be reliable at 200%).

About power consumption here is the table i wrote on my manual of the logger

STATE Backlight OFF Backlight MIN Backlight 50% Backlight 100%
IDLE 31.8 mA 32.8 mA 44.8 mA 58.7 mA
WAITING 31.6 mA 33.0 mA 45.0 mA 58.6 mA
SAMPLING 32.7 mA 33.5 mA 45.5 mA 59.2 mA
CARD ACCESS 41.4 mA 42.7 mA 55.5 mA 68.8 mA (low duty cycle)

the backlight goes automatically at MIN after 15 seconds (if you dont press any keys) so a realistic long-term power consumption is around 33mA , the voltage is 7.5V-16V (the 5V and 3.3V regulators don't have a heatsink)
The unit can be powered by a 2200mAh 8cell Ni-MH stack or a 2200mAh 12V SLA with a 2-5W solar panel, around 22Euros in my area)

I will post the photos after a while... wait for updates

UPDATE:
THe logger now logs also gust speed, useful to determine the survival speed of a turbine.

EDIT: (Images)


1266093695 14 FT0 Cimg2542

1266093695 14 FT0 Cimg2543

1266093695 14 FT0 Cimg2544

1266093695 14 FT0 Cimg2545

1266093695 14 FT0 Cimg2546

1266093695 14 FT0 Cimg2547



PS: I ordered many and many parts from futurlec (including the parts for two windloggers) and never had problems with them except some mistakes in the dimensions of LCD and holes spacing in the datasheets.
Back to top
TheMerovingian
Sun Feb 21 2010, 06:18PM
TheMerovingian Registered Member #14 Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
Added also gust wind speed logging along with the average of wind during the integration time
Back to top
TheMerovingian
Sun Feb 28 2010, 11:40PM
TheMerovingian Registered Member #14 Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
The project is in final stage, the anemometer is mounted and his sensor is potted in polyester resin (to be waterproof), and awaiting calibration. The pulses for complete rotation are 20, giving me a resolution between 0.35-0.50 Kmh for 1 second integration time
1267400413 14 FT83766 Cimg2559

1267400413 14 FT83766 Cimg2558

1267400413 14 FT83766 Cimg2557

1267400413 14 FT83766 Cimg2556
Back to top
DivisionByZero
Mon Mar 01 2010, 03:03AM
DivisionByZero Registered Member #2690 Joined: Sat Feb 20 2010, 04:58AM
Location:
Posts: 2
Very nice.

I have been considering a general data-logging project using PICs, but it's terra incognita for me. Do you have any suggestions on where to start learning PIC stuff and data handling?
Back to top
TheMerovingian
Tue Mar 02 2010, 11:25AM
TheMerovingian Registered Member #14 Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
hmmm let me think. Most of the data and information comes from the datasheed, as each PIC is different from the others. For the rest, since i used PicBasic, comes from the picbasic manual. I started with PIC16f84As lighing leds and so on, then moving on more and more compicated things (such as coilgun timing, ADC etc)
Back to top
TheMerovingian
Sat Mar 20 2010, 03:55PM
TheMerovingian Registered Member #14 Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
Final assembly of the system

1269100506 14 FT83766 Cimg2591

1269100506 14 FT83766 Cimg2592

1269100506 14 FT83766 Cimg2593

1269100506 14 FT83766 Cimg2595
Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.