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