Overview
The Windmeter is an anemometer designed to measure and record wind speed distribution from 0 to 17+ meters per second. It was designed for high reliability, ease of construction, and for a wide environmental range. Data is logged over a period of 30.46 days (1/12 of a year), and then saved for 11 months. The data can be retrieved with a laptop computer any time within the 12 months of logging. The Windmeter is self-powered by a solar pannel and battery. Calibration of the Windmeter can be done against a car's speedometer or better yet a GPS receiver. The Windmeter should cost you under $300 Can. to make.
Skills Required:
- General Electronic Knowledge
- SMD Soldering
- PCB Prototyping (Single layer)
- General Mechanical Knowledge
- Wood working / power tool / hand tool usage
Mechanics of the Windmeter / Anemometer
Description
The Windmeter / Anemometer is constructed from common parts and supplies. The design is simple and easy to build. The internal frame is made of wood and the external moving parts are plastic and metal. All electronics are housed inside the Windmeter and thus protected from weather. The only difficult part to get is the MAXI Kinder surprises. They are available at Christmas and Easter or all year from a specialty store listed in the parts list. The rotating assembly rides on two standard shielded NOT sealed roller blade bearings. Shielded bearings have less friction than sealed. Replacement roller blade bearings are available at most sports stores.Assembly
Read the entire document before beginning construction. Complete the circuit board first before the making and assembling the mechanical parts of the Windmeter. If serious problems arise during construction, re-read the entire document again. If this fails to solve your problem you can email me at "drwho at infidigm dot net". I may not respond to all questions.Parts List
Quantity | Description | Supplier | Part No. |
1 | 5 min Epoxy | Home Depot | B 110-607 |
1 | 3" ABS Pipe - 6' length | Home Depot | A 120-784 |
1 | 4" PVC Pipe Cap | Home Depot | 650-580 |
1 | 2'x2' - 1/2" plywood | Home Depot | C 434-561 |
1 | 1/2" wood dowel - 2' length | Home Depot | A 115-256 |
1 | 5/16" Steel Shaft - 36" length | Home Depot | 142-006 |
1 | 1/4" Steel Shaft - 36" length | Home Depot | 142-004 |
1 | 8-1.25" wood screws (10) | Home Depot | 846-052 |
2 | M8 1.25mm Nuts | Home Depot | (BIN# 128522) 670-008 |
2 | M8 Washers | Home Depot | (BIN# 128558) 730-008 |
2 | 5" 1/4"-20 bolts | Home Depot | (BIN# 124228) 275-326 |
2 | 1/4"-20 nuts | Home Depot | (BIN# 131585) 083-114 |
3 | Maxi Kinder Surprise Shells | Mike's General Store - Winnipeg | 2002 CHRISTMAS KINDER MAXI EGG |
1 | 3/16"x1" balsa wood - 6" length | Hobby store | |
1 | 608 bearings (Roller blade) - shielded | Sports Center |
Tools Needed
Here is a list of the major tools that were used to make the mechanical parts of the Windmeter.- Small Drill Press or Drill
- 1/2" Drill bit
- 1/4" Drill bit
- 5/16" Drill bit
- 11/32" Drill bit
- 1/4" Drill Bit
- 7/8" Wood Drill Bit
- Hack-saw
- Jigsaw
- M8-1.25mm die
Electronics for the Windmeter / Anemometer
Circuit Description
SchematicThe circuit for the Windmeter is self powered. A 12v solar cell array provides power to the circuit and charges the battery during the day. At night the 12v battery is used to power the circuit. Operation for many days without sunlight is required, so the circuit operates at 3.3v and uses a high efficiency switching power supply. The circuit draws 1.35 mA at 12v. The circuit should operate for over 50 days without sunlight from a fully charged battery. The solar cell will take 3 days to fully charge a dead battery. The circuit should never loose power.
Power enters the circuit through L7 and D1 to prevent reverse battery connection. C10 is used as a input filtering capacitor while C11 is used as a input de-coupling capacitor. U3, L1, D2, and C12 form the switching power supply. R3, R6 and R7 form the low battery power down.
A magnet and Hall effect sensor are used to measure RPM of the rotating cups. One pulse per revolution is produced. The sensor is on the back of the PCB and the magnet is attached to the rotating shaft. Microcontroller U2 is used to calculate wind speed from the pulses produced by the Hall sensor. The micro also records the varying speeds and provides a interface to a Laptop / computer. U1, a low power RS232 1 channel driver, is used to join the PC serial port and the micro's UART. C2 - C5 are used by the RS232 Driver IC to form charge pumps. C1, C6, C7, C13 are used as bypass / de-coupling capacitors throughout the circuit. C8, C9 are used to help start oscillation. The crystal of 4.096 Mhz was selected for easy and accurate time measurement. R1, R2 are used to form a voltage divider which feeds ADC channel 0 to measure Supply voltage. Q1 and Q2 control the power applied to R1 and R2 to improve power consumption.
Assembly
The PCB Gerber files are provided. Use Bare Bones PCB to manufacture the circuit board for you. It cost less than $100. Here are instructions for using Bare Bones PCB serviceOnce you have received the PCB, population is next. Please review the Top Parts Placement diagram and the Bottom Parts Placement diagrambefore beginning and throughout assembly. Begin by soldering U1 and U2. U2 is a 0.031" pitch and U1 is a 0.0255 pitch. Please see Infidigm's soldering guide for instructions on soldering small pitches. Next solder U3 which is a SO8 package. Continue by soldering L1, D2 and D1. Solder all resistors, capacitors and ferrite chips being mindful of Polarized Caps C10 (Bar = Neg-) and C12(Bar = Pos+) polarity. Solder the crystal, connector and the programming connector on the top side of the board. Place hall effect sensor, C8 and C9 on the back side of the board and solder in place. Fold the hall effect sensor so that it is flat against the circuit board as shown.
Programming
Programming the microcontroller is the next step. The micro is a AVR ATmega88 made by ATMEL. An AVR ISP (Incircuit Serial Programmer) compatible programmer is required. Here is a list of programmers.- STK500 Development board (Search for STK500) .
- AVRISP In system programmer (Search for ATAVRISP2) .
For STK-500 and ATAVRISP2
- Brown-out detection level at VCC = 2.7V;
- Ext. Crystal Osc.; Frequency 3.0-8.0Mhz; Start-up time: 16K CK/ 14 CK + 65ms;
The Program
Only read this section if you wish to modify the program!The program is written in C. It consists of one C file and was written to be complied under the free AVR-GCC C compiler (WinAVR 3.4.6 April 21, 2006). Read the beginners guide to learn how to install GCC. Once you have GCC working, download the Project Files for Programmers NotePad. and unzip them to a directory of your choosing. Run Programmers NotePad ( /WinAVR/pn/pn.exe). In PN go "File-->Open Project(s)" and select "windmeter.pnproj" in the directory where you unzipped "windmtr.zip". Open "windmtr.c by double clicking on it. Click "Tools-->Make All" to test the Compiler. The program is well documented and self explanatory.
Parts List
The list includes all parts for the Windmeter electronics. All part numbers are for Digikey unless their is a link to another supplier.Quantity | Value | Description | Digikey Part No. | Component |
1 | ATmega8 | Microprocessor | ATMEGA88-20AU-ND | U2 |
1 | Max3221 | 1-CH RS-232 | 296-9595-1-ND | U1 |
1 | MA785 | Schottky | MA2Z78500LCT-ND | D1 |
1 | DN6852 | Hall Effect Sensor | DN6852A-ND (testing 620-1043-ND) | U4 |
1 | LTC1474IS8-3.3 | Voltage Regulator | LTC1474IS8-3.3#PBF-ND | U3 |
1 | MBR0520L | Schottky 20v, 0.4A | MBR0520LCT-ND | D2 |
1 | UNR2111 | PNP 100mA preset gain | UNR211100LCT-ND | Q1 |
1 | UNR2211 | NPN 100mA preset gain | UNR221100LCT-ND | Q2 |
1 | 220uF | Electrolytic Cap | EEU-FC1H221 | C10 |
7 | 0.1uF | SMD Cap | PCC1828CT-ND | C1-5,C7,C13 |
1 | 330uF | Niobium Oxide Cap | 478-1830-1-ND | C12 |
1 | 1UF | Ceramic Cap | 490-1800-1-ND | C6 |
1 | 4.7UF | Ceramic Cap | 478-1570-1-ND | C11 |
2 | 22pF | SMD Cap | PCC220CNCT-ND | C8,C9 |
2 | 1nF | SMD Cap | 445-1337-1-ND | C14,C15 |
1 | 22K | SMD Res | RHM22.0KCCT-ND | R1 |
1 | 3.3K | SMD Res | RHM3.30KCCT-ND | R2 |
1 | 100K | SMD Res | RHM100KCCT-ND | R3 |
1 | 220K | SMD Res | RHM220KCCT-ND | R6 |
1 | 33K | SMD Res | RHM33.0KCCT-ND | R7 |
2 | 1K | SMD Res | RHM1.00KCCT-ND | R4,R5 |
1 | 100uH | SMD Inductor | 308-1503-1-ND | L1 |
1 | 6 pin | 0.1" Terminal Block | 277-1277-ND | Connector |
6 | 2.7K@100Mhz | Ferrite Chip | 490-1051-1-ND | L2-7 |
1 | 4.096 Mhz | Crystal | 300-8471-ND | Y1 |
1 | 6 pin | 0.1" header 2x3 | WM6636-ND | Prog Port |
1 | 9 pin | DB-9 Connector | A23108-ND | |
1 | 12v, 2.2Ahr | Sealed Lead Battery | P171-ND | |
1 | Manufactured Circuit board | Advanced Circuits | Bare Bones PCB | |
1 | 2.2 Watt, 12v | Solar 12v panel | 11-1883-6 | Canadian Tire |
1 | ~ 8mm dia | N - S Magnet |
Tools and Supplies for circuit assembly
- Soldering Iron (35 watt) with fine tip.
- Solder Sucker
- Solder (Better quality than Radio Shack)
- AVR ISP Programmer
Files
Windmeter SchematicPCB Gerbers
Top Parts Placement diagram
Bottom Parts Placement diagram
All Program Project Files.
C Source Code
Hex file for ATmega88
ATmega88 Data Sheet (Microprocessor)
MAX3221 Data Sheet (RS232 Line driver)
Switching Regulator Data Sheet
Calibration and Usage
Usage
Once the Windmeter is fully assembled, connect it to a laptop or computer via the 9-pin serial port. Open the program Hyper Terminal. Set up a Direct connection for the COMM port that the Windmeter is connected to for 9600-8-N. Go File-->Properties-->Settings Tab-->ASCII Setup Button, and under ASCII receiving click 'Append line feeds to incoming line ends'. 'OK' back to the main screen. Pressing any key will cause the menu to appear. The menu has 7 options. Each option is selected by pressing the corresponding key. Be sure that Caps Lock is turned off.- [g]et data Pressing 'g' will prompt for which month to get the data for. Use the arrow keys to select the appropriate month and then press Enter. The recorded speed distribution for the corresponding month is displayed as well as with the maximum speed for that month.
- [c]lear data Pressing 'c' will prompt to confirm deleting all recorded data over the past 12 months.
- [s]et month Pressing 's' will prompt for which month to begin logging at. Use the arrow keys to select the appropriate month and then press Enter. What ever data is in the month that is selected is cleared to zero. This function is used to sync the Windmeter with the calendar.
- [i]nfo Pressing 'i' will display a list of items.
- Firmware version
- "Logging Month" is the month that the windmeter is currently logging to.
- "Days logged" is the aproximate day of the month
- "# of resets" is the number of times the micro has reset since the month was set (pressing 's') Reset notification is necessary because thier is some data lost if a reset has occurred. Resets are caused by power loss or by a very close lightning strike.
- Current wind speed
- Shows the supply voltage from the battery and solar cell. A fully charged battery should measure around 12.85v (in the dark). A very low charge is 11.50 or less. In the sunlight, the supply voltage can measure between 12.5 - 17 volts.
- Current programmed Offset (b)
- Current programmed slope (m)
- [m]slope Pressing 'm' allows programming of the slope variable. It is used by the Windmeter to calculate speed. This allows calibration. The value of m can be determined in the Calibration section. m is written to EEPROM so it's value is preserved during power loss.
- [b]offset Pressing 'b' allows programming of the offset variable. It is used by the Windmeter to calculate speed. This allows calibration. The value of b can be determined in the Calibration section. b is written to EEPROM so it's value is preserved during power loss.
- [t]toggle calibration mode Pressing 't' will toggle calibration mode ON and OFF. When in calibration mode a 5 digit number is displayed once per revolution of the Windmeter. This number represents the time it takes for one revolution. The data is used in the Calibration section for determining variables m and b.
- [r]eset Pressing 'r' resets the device thus restarting the program.
Calibration
Calibration of the Windmeter requires two people and a few steps. It can be done with a car or truck on a day with no wind. If possible check the speedometer of your vehicle with a GPS receiver. Begin by mounting the Windmeter 1 meter/yard above the top of the vehicle. This will avoid effects from the vehicles aerodynamics. Connect the Windmeter to a laptop and put it into calibration mode. Get one person to drive and the other to record data (A good safety consideration). Bring the vehicle to 10 km/hr and wait for the Windmeter readings to stabilize. Record three samples in the provided Excel Spreadsheet. Bring the vehicle to 15 km/hr and repeat until the spreadsheet is filled.Once the spreadsheets is filled out, 'm' and 'b' can be determined. The entered data should have formed something close to a straight line. Start by adjusting 'm' on the spreadsheet so that the slope of the ideal line and the measured line are the same. Next adjust 'b' so that the measured line moves overtop of (eclipses) the ideal line. The goal of this process is to align the measured line with the ideal line as close as possible. Repeatedly adjust 'm' and 'b' until you are satisfied. Program 'm' and 'b' into the Windmeter and turn Calibration mode off. The Windmeter is now ready for installation.
Once the Windmeter is installed, (1) clear all the data, and (2) set the appropriate month. If possible set the month at the very beginning of the calendar month. This will aligned the windmeter to the calendar day of the month.
No comments:
Post a Comment