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