Aidaohuakai( 樓主 ) 2013-8-22 11:45:24 只看該作者23307 | 41倒序瀏覽 論壇上對mpu6050的資料和討論并不多,很多壇友都說驅動失敗,老是顯示0. 以下就談談我的一些血與淚的教訓: 昨天開始接觸mpu6050,在網上查了很多資料,下載程序,準備一展身手。首先看了mpu6050中文資料,之后又看了那個mpu6050的測試程序,把這些看明白之后就開始寫程序了。我不是直接把程序復制過去,只是復制mpu6050的地址和初始化,IIC并沒有復制,就復制我上次寫的24C02的那個程序,想不到,這給了我血與淚的教訓,我原來是直接把IIC復制過來的,并沒有多留意。之后初始化mpu6050,寫入地址,讀出數據,下載到單片機之后,LCD上顯示000001,我感到郁悶,之后又調試,以為是顯示不對,又寫顯示,之后又下載,結果還是老樣,這樣半天就過去了。驅動沒成功,又懷疑芯片或引腳有問題,繼續調試,也沒成功。就一一對應地看了地址,又看了初始化,發現沒錯,調試還是不成功。最后干脆不接IIC總線,竟然發現了個天大的秘密,接不接IIC,LCD都顯示000001,我又用示波器測試波形,發現波形正確。在網上又查了別人的資料,在論壇上也很少有關于mpu6050的資料,也看了比別人的一些討論。很多壇友都說驅動失敗,老是顯示0. 沒辦法,一天就這樣過去了,今天早上,我又仔細看了程序,出乎我的想象,竟然是IIC的那個地址沒改,原來寫24C02的那個地址是a0,還是原封不動,把我嚇了一跳。把這些改過來之后,一切正常,能顯示加速度和陀螺儀。血與淚的教訓啊,是自己不細心造成的,忘記改地址!今天早上竟然花了不到2個鐘就調出來了,驚喜之時就寫了這個分享,希望對大家有用。
標簽: 圓點博士小四軸
上傳時間: 2015-04-14
上傳用戶:wusheng4495
[開源 綠色軟件] [運行環境 Windows XP/7/8/10] [語言 簡體/繁體/English/Unicode] A cool music player. Powered by Bass and BassVis. 極簡本地音樂播放器,透明、純文本界面。支持輕媒體庫、歌詞、可視化。最小化到托盤,占用資源少,適合邊聽音樂邊工作。 應網友要求,加入了Tag編輯、自動切換列表、播放隊列、鼠標手勢、均衡器、音頻設備選擇、全局音量滾輪(托盤區域)、字體設置、極簡模式、鼠標穿透、嵌入桌面、簡單布局等功能。 homepage> mcool.appinn.me ==================================================== 音頻格式APE、FLAC、WavPack、MP3、OGG、TTA、TAK、Musepack、AAC、AC3、WMA、Wav、CD、ALAC、Aiff、mod、CUE ==================================================== 更新歷史: 3336 -2016.3.25 點睛之筆:任意布局(追上foobar2000)。Arbitrary layout (all in one). 3330 -2016.3.10 一體布局之比例調節(初具foobar2000風貌)。Ratio adjust (all in one). 3308 -2015.11.28 歌詞微調(在選項>常規>鼠標手勢里設置)。Adds function of lyrics tuning. 3306 -2015.11.15 電臺模式(整點時切換歌曲或列表,并非在線音樂),以及多聲卡支持。Adds radio mode, and multi sound card support. 3300 -2015.10.15 完善細節,修復切歌卡住bug。完美版。Fixes some bugs. 3280 -2015.8.1 簡單布局功能。Layout (all in one) function. 3260 -2015.6.1 Win10模式。Win10 mode. 3252 -2015.5.10 任務欄進度條。Taskbar progress display. 3236 -2015.4.10 點睛之筆:透明度調節。Adds function of transparency tuning. 3232 -2015.3.25 自定義軟件名(請在mcool.ini中手動修改)。Adds function of customizing app name. 3230 -2015.3.12 Airplay復刻界面。Airplay interface copy. 3218 -2015.1.20 桌面歌詞。Desktop lyrics. 3216 -2015.1.12 一體化界面(學習Foobar2000和豆瓣FM)。All in one interface. 3212 -2015.1.6 新增Winamp音效插件支持(學習千千靜聽),以及滾輪穿透功能(學習Airplay3)。Adds Winamp DSP plugins support, and adds function of wheel transparent. Winamp音效插件下載:http://uploadgeneration.info/Winamp/www.winamp.com/plugins/dsp-effect/5/top-rated.html 3210 -2014.12.28 重要更新:本地音量調節、自定義鼠標鍵/手勢。Adds local volume control, and adds fuction of customizing mouse control / gesture. 3208 -2014.11.25 簡化右鍵菜單,常規項目移到選項窗口。Simplifies the popup menu, moves the general items to option window. 3206 -2014.11.22 新增文本對齊選項,重新設計導航按鈕。Adds option of text alignment, and redesigns the buttons of playback. 3202 -2014.11.10 新增播放記憶、片段循環(Hotkey: Ctrl+1/2)和貼邊隱藏功能。Adds functions of playback memory, AB repeat and screen side hide. 3200 -2014.11.5 新增無界面選項(先去掉托盤圖標,然后Ctrl+Alt+W隱藏界面,Ctrl+Alt+X關閉)。Adds option of no interface. 3191 -2014.8.26 嵌入桌面。Pins to desktop. 3190 -2014.8.19 音樂管理第一步:列表分組。Playlists grouping. 3186 -2014.8.10 基于列表的分級系統(Hotkey:0..5)。Rating system based on playlist. 3181 -2014.8.1 啟用新圖標(由虹吸墨作者BGLL友情制作)。Uses the new icon. 3180 -2014.7.22 新增Win7任務欄特效。Adds windows 7 taskbar effect. 3166 -2014.6.29 重要更新:自動下載專輯封面(源于歌詞迷)。Downloads album covers from geci.me. 3160 -2014.6.1 重要更新:新增極簡模式,以及OGG/Opus內置封面顯示功能。Adds minimalist mode, and adds function of displaying cover embedded in OGG/Opus. 3152 -2014.5.18 添加托盤右鍵菜單,新增MP4/M4A(ALAC)內置封面顯示功能。Adds systray popup menu, and adds function of displaying cover embedded in MP4/M4A(ALAC). 3151 -2014.5.1 重新設計可視化效果,新增示波器效果。Redesigns visual effects, and adds oscilloscope effect. 3150 -2014.4.20 采用歌詞迷API下載歌詞。Downloads lyrics from geci.me. 3136 -2014.3.30 加入可選的按鈕,以及鼠標穿透功能。Adds function of transparent window. 3132 -2014.3.6 簡化界面,向Foobar2K看齊;增加正在播放面板。Simplifies the interface, and adds now playing panel. 3130 -2014.2.26 重要更新:按照專輯分組。Grouping by album. 3120 -2014.2.18 優化字體渲染(Windows7/8下)。Optimizes font rendering in Windows 7/8. 3110 -2014.1.26 點睛之筆:自定義字體顏色。Adds function of customizing font color. 3108 -2013.11.16 Last.fm同步功能(請到主頁下載插件)。Last.fm scrobbler support. 3106 -2013.11.8 可回溯的隨機播放(學習Airplay 2)。Random playback can be traced back. 3103 -2013.10.12 優化右鍵菜單。Optimizes popup menu. 3102 -2013.9.30 修改滾動條樣式,增加音頻緩沖選項。modifies style of scroll bar, and adds option of audio buffer length. 3100 -2013.9.10 無邊框設計;迷你模式也可以不置頂(Hotkey:T)。Borderless designs. 3086 -2013.8.20 增加歌詞面板功能。Adds function of lyrics panel. 3082 -2013.8.08 增加在可視化界面顯示歌詞功能。Adds function of displaying lyrics on visual interface. 3080 -2013.8.01 新增設置字體功能,恢復簡單的自動關機功能。Adds function of setting font, and re-adds simple function of auto shutdown. 3060 -2013.6.26 修復在迷你模式停止響應的Bug,去掉自動關機、歌詞調整功能。Fixes bug of stop responding in mini mode, and removes functions of auto shutdown and lyrics trimming. 3050 -2013.5.23 增加手勢功能。Adds gesture function. 3030 -2013.3.10 增加Aero磨砂玻璃效果[如需源碼請聯系我],XP/Win7/8無差別顯示,按Insert鍵開啟。Adds aero glass effect. 3020 -2013.2.23 增加簡易Tag編輯功能(選中并單擊即可,相當于資源管理器中的重命名,按照[歌手 - 歌名][專輯]格式進行編輯)。Adds function of editing audio tags (select and click, edit with [artist - title][album] format). 3010 -2013.1.23 應網友要求,加入讀取內嵌CUE、歌詞及專輯封面功能。Adds function of reading CUE, LRC and album cover built in media. 3002 -2012.11.03 無按鈕設計;微調進度條尺寸。Buttonless design; modifies the size of the progress bar. 3001 -2012.10.15 重要改進,界面即按鈕:單擊 - 播放/暫停,按住 - 前進。Important update, the interface is a button: Click - Play/Pause, Hold Down - Next. 3000 -2012.9.28 增加Win8模式。Adds Win8 mode option. 2982 -2012.8.26 在Win8下使用微軟雅黑字體。Uses Microsoft YaHei font in Windows 8 CHS. 2981 -2012.8.20 視頻以插件提供(請到主頁下載),增加單曲循環功能。Adds function of repeat track. 2980 -2012.7.26 簡化代碼,去掉視頻和MIDI支持。Removes the video and MIDI support. 2970 -2012.7.20 增加媒體信息顯示功能。Adds function of displaying media info. 2960 -2012.6.28 增加專輯封面顯示功能(Hotkey:Ins)。Adds function of displaying album cover. 2956 -2012.6.01 再次簡化界面。Simplifies the interface again. 2952 -2012.4.28 增加音頻設備選擇功能:DS、ASIO、WASAPI。Adds function of selecting playback device. 2950 -2012.3.30 *增加滾輪調節音量功能(在托盤,中鍵靜音)和媒體鍵支持。Adds function of setting volume by mouse wheel (over systray, middle click to mute), and adds multimedia keys support. 2936 -2012.3.17 微調界面,修復物理刪除失效的BUG。Fine-tunes the interface, and restores the physical delete function. 2930 -2012.2.27 增加TAK格式支持。Adds TAK format support. 2923 -2012.2.12 緊急修復上一版出現的字體模糊BUG(Vista/Win7下),增加在任務欄顯/隱圖標功能(Ctrl+T)。Fixes font vague bug for Vista/Win7, and adds showing/hiding icon on taskbar function. 2920 -2012.2.08 微調界面,優化CPU占用(啟用背景圖片時)。Fine-tunes the interface, and optimizes CPU utilization (while enable background image). 2912 -2012.1.12 增加播放隊列功能。Adds playback queue function. 2910 -2011.12.25 改進迷你模式,增加查找功能。Improves mini mode, and adds find function. *注:此功能對殺毒軟件過敏,開啟方法:按F1進入選項,勾選全局快捷鍵。The feature is allergic to the anti-virus software.
上傳時間: 2016-06-10
上傳用戶:fanghua
三種SMA接口pcb封裝 捕獲1.PNG (16.1 KB, 下載次數: 86) 捕獲2.PNG (17.35 KB, 下載次數: 39) 捕獲3.PNG (19.16 KB, 下載次數: 37)
上傳時間: 2017-03-06
上傳用戶:qjjjjwqvc
#include <stdio.h> #include <stdlib.h> ///鏈式棧 typedef struct node { int data; struct node *next; }Node,*Linklist; Linklist Createlist() { Linklist p; Linklist h; int data1; scanf("%d",&data1); if(data1 != 0) { h = (Node *)malloc(sizeof(Node)); h->data = data1; h->next = NULL; } else if(data1 == 0) return NULL; scanf("%d",&data1); while(data1 != 0) { p = (Node *)malloc(sizeof(Node)); p -> data = data1; p -> next = h; h = p; scanf("%d",&data1); } return h; } void Outputlist(Node *head) { Linklist p; p = head; while(p != NULL ) { printf("%d ",p->data); p = p->next; } printf("\n"); } void Freelist(Node *head) { Node *p; Node *q = NULL; p = head; while(p != NULL) { q = p; p = p->next; free(q); } } int main() { Node *head; head = Createlist(); Outputlist(head); Freelist(head); return 0; } 2.順序棧 [cpp] view plain copy #include <iostream> #include <stdio.h> #include <stdlib.h> ///順序棧 #define MaxSize 100 using namespace std; typedef
上傳時間: 2018-05-09
上傳用戶:123456..
The investigation of the propagation channel is becoming more and more important in mod- ern wireless communication. The demand for spectral efficiency motivates exploitation of all channels that can possibly be used for communications. Nowadays, a common trend for designing physical layer algorithms is to adapt the transceiving strategy, either by maximizing the diversity gains or by utilizing the coherence of the channels to improve the signal-to-noise power ratio.
標簽: Characterization Propagation Channel
上傳時間: 2020-05-31
上傳用戶:shancjb
mod(模式選擇)mod 輸入,可以選擇工作模式直接模式如果mod 輸入沒有連接(懸空) ,或連接到VCC,選擇直接模式,死區時間由控制器設定。該模式下,兩個通道之間沒有相互依賴關系。輸入INA 直接影響通道1,輸入INB直接影響通道2。在輸入( INA 或INB )的高電位, 總是導致相應IGBT 的導通。每個IGBT接收各自的驅動信號。半橋模式如果mod 輸入是低電位(連接到GND),就選擇了半橋模式。死區時間由驅動器內部設定, 該模式下死區時間Td 為3us。輸入INA 和INB 具有以下功能: 當INB 作為使能輸入時, INA 是驅動信號輸入。當輸入INB 是低電位,兩個通道都閉鎖。如果INB 電位變高,兩個通道都使能,而且跟隨輸入INA 的信號。在INA 由低變高時,通道2 立即關斷, 1 個死區時間后,通道1 導通。只
上傳時間: 2022-06-21
上傳用戶:
電子工程師常用的手機APP軟件,部分功能是:LED發光二極管限流電阻值、三極管偏置電壓計算、三極管開關飽和度計算、運算放大器低通濾波器、運放高通濾波器計算、帶通濾波器設計計算、R-C濾波器截止頻率計算‘電容串聯計算、并聯電阻計算、惠斯登電橋計算、恒流源計算、變壓器設計 、電感設計、電容設計、環路控制 、導線計算 、電阻計算、散熱器計算等等。下載前如需了解請訪問:http://bbs.21ic.com/forum.php?mod=viewthread&tid=2634010&page=1&extra=#pid9957716
標簽: 電子工程師
上傳時間: 2022-07-27
上傳用戶: