how to monitoring microcontroller use matlab
2 ビュー (過去 30 日間)
古いコメントを表示
Hi...i have a little question for every one who know the answer. how to monitoring the gyro output data from my mobile robot use microcontroller (atmega16) with matlab. im planning the interfacing use Xbee pro wireless radio. so matlab can present my mobile robot position with a simple animation in matlab. im very glad if you can help our plroblem. Thanks,..
0 件のコメント
回答 (1 件)
Walter Roberson
2011 年 5 月 14 日
The maximum sample rate that can be achieved while using one A/D line is 1 sample/ms or 1 KHz (Note that the modem will not be able to keep up with transmission when IR & IT are equal to “1” and that configuring the modem to sample at rates greater than once every 20ms is not recommended).
If I read that properly, that implies 50 Hz maximum recommended sample rate. Will that be enough for your purposes? Or are you having something else do the A/D conversion?
Skimming through the manual, it appears that you would treat the Xbee as a serial device: construct a serial object with serial() and fopen() it; send it some AT commands to configure it for A/D use, and then read the frames of data according to the section "I/O Data Format" on page 13 of the above manual.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で View and Analyze Simulation Results についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!