|
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.
These sequences are used sample received amplified analog
signal. From here
measurement starts. Then set our global variable flag X_PWM_SET Y_PWM_SET state. measure always channel
3, it’s configured configuring step here.set for both and then are enabled their outputs.5 PWM prepare function
Function called inside first condition main function.4.
The last adc_init function.
Then test which axis will measured.
Illustration 4.
The last order enable all interruption. enable PWM for set axis, clear interrupt
status flag for digital input pins where expect interruption and enable interruption
on pins level here.
25
.
After that cleared ADC interrupt status flag for all sequences and all are enabled.
Then configured step ADC sequence and step sequence
1 and configure channel and ADC interrupt status flag set when last sample
is done. Flag set hear its first state
X_PWM. set maximum sampling frequency
500 kSa/s capture analog received signal every μs. enable ADC peripheral, configure sequence 3
to triggered processor. Sequence will capture samples when triggered, and
2 will capture samples.7: Flowchart Initializations
4.
At first set 2,5 time discount from timer load constant and timer enabled. Sequence used for temperature measurement