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