Ultrazvukový anemometr

| Kategorie: Diplomové, bakalářské práce  | Tento dokument chci!

Práce popisuje principy a problémy při realizaci ultrazvukového anemometru. Je popsán princip výpočtu rychlosti větru a následné korekce výpočtu. Pro realizaci jsou využity ultrazvukové sensory a microcontrolér ARM Cortex-M3. Práce se zabývá generováním PWM signálu, jeho analogovou filtrací, zesílením a odvysíláním. Na přijímací straně jeto nízkonapěťový zesilovač a komparátor. Vyvíjený kód je popsán pomocí vývojového diagramu.

Vydal: FEKT VUT Brno Autor: Michael Dvořácek

Strana 29 z 49

Vámi hledaný text obsahuje tato stránku dokumentu který není autorem určen k veřejnému šíření.

Jak získat tento dokument?






Poznámky redaktora
Flowchart take account whole code inside anemometer file, which was created for this application. First function preparing PWM for measurement chosen axis. contain basic description all peripherals programming API. the beginning initialization functions takes place. It let know every time what was done and what has done. Then interrupt handler functions can found.3 Code development Code was developed Code composer studio 4. On the bottom the code main function with its infinite while loop. 4. [15] Within development code Stellaris peripheral driver library user's guide was great aid [14]. After this initialization main function called. permit us using drive Stellaris driver API functions. Every part will be described separately below. Variable flag has defined all its states above. Its value 31250 refers 2,5 with 12,5 MHz clock speed. These conditions test flag global variable and inside each concretes functions are called. All code was written into anemometer file. Variable adc_array is used save here samples from converter. It’s divided few section the beginning. CCS was installed from kit included CD. For creation this diagrams LibreOffice Draw was used. Code continue with a component functions. After release notes include files, global variable with its defines can found. Below interrupt handler functions the rest of functions can found. All them are called from main function, where the program starts. All orders, processes and functions are accompanied with lot comments. Behind that while loop start. also includes example use every peripherals.4.4.4 Flowcharts To describe how works our anemometer flowchart was created.1 Header files, Global variable and Defines Included header files are chosen for used peripherals and microcontroller. Constant variable timer_load_set used to set time for timer interruption. Their behavior controlled with flag global variable with its definitions for every value. the beginning the main are local variables with calling initialization function. 4. From time time function calculate temperature called. After digital input port interruption ADC sample function called. 21 . There are few condition inside. Then function capture time from timer called. Then after timer interrupt function inform that measurement hasn’t done and sets flag start again. It’s divided into sections and functions was illustrated above. also contain programming examples, driver libraries and and header files, which form application programming interface API.2 TI. The rest are function calculate peak peak value from ADC sequence, function make averages peak peak values and wind calculation function