亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲(chóng)蟲(chóng)首頁(yè)| 資源下載| 資源專(zhuān)輯| 精品軟件
登錄| 注冊(cè)

print-gen

  • Arduino學(xué)習(xí)筆記3_連接HMC5883L三軸電子羅盤(pán)傳感器

    用途:測(cè)量地磁方向,測(cè)量物體靜止時(shí)候的方向,測(cè)量傳感器周?chē)帕€的方向。注意,測(cè)量地磁時(shí)候容易受到周?chē)艌?chǎng)影響,主芯片HMC5883 三軸磁阻傳感器特點(diǎn)(抄自網(wǎng)上): 1,數(shù)字量輸出:I2C 數(shù)字量輸出接口,設(shè)計(jì)使用非常方便。 2,尺寸小: 3x3x0.9mm LCC 封裝,適合大規(guī)模量產(chǎn)使用。 3,精度高:1-2 度,內(nèi)置12 位A/D,OFFSET, SET/RESET 電路,不會(huì)出現(xiàn)磁飽和現(xiàn)象,不會(huì)有累加誤差。 4,支持自動(dòng)校準(zhǔn)程序,簡(jiǎn)化使用步驟,終端產(chǎn)品使用非常方便。 5,內(nèi)置自測(cè)試電路,方便量產(chǎn)測(cè)試,無(wú)需增加額外昂貴的測(cè)試設(shè)備。 6,功耗低:供電電壓1.8V, 功耗睡眠模式-2.5uA 測(cè)量模式-0.6mA   連接方法: 只要連接VCC,GND,SDA,SDL 四條線。 Arduino GND -> HMC5883L GND Arduino 3.3V -> HMC5883L VCC Arduino A4 (SDA) -> HMC5883L SDA Arduino A5 (SCL) -> HMC5883L SCL (注意,接線是A4,A5,不是D4,D5) 源程序: #include <Wire.h> #include <HMC5883L.h> HMC5883Lcompass; voidsetup() { Serial.begin(9600); Wire.begin(); compass = HMC5883L(); compass.SetScale(1.3); compass.SetMeasurementMode(Measurement_Continuous); } voidloop() { MagnetometerRaw raw = compass.ReadRawAxis(); MagnetometerScaled scaled = compass.ReadScaledAxis(); float xHeading = atan2(scaled.YAxis, scaled.XAxis); float yHeading = atan2(scaled.ZAxis, scaled.XAxis); float zHeading = atan2(scaled.ZAxis, scaled.YAxis); if(xHeading < 0) xHeading += 2*PI; if(xHeading > 2*PI) xHeading -= 2*PI; if(yHeading < 0) yHeading += 2*PI; if(yHeading > 2*PI) yHeading -= 2*PI; if(zHeading < 0) zHeading += 2*PI; if(zHeading > 2*PI) zHeading -= 2*PI; float xDegrees = xHeading * 180/M_PI; float yDegrees = yHeading * 180/M_PI; float zDegrees = zHeading * 180/M_PI; Serial.print(xDegrees); Serial.print(","); Serial.print(yDegrees); Serial.print(","); Serial.print(zDegrees); Serial.println(";"); delay(100); }

    標(biāo)簽: Arduino 5883L 5883 HMC

    上傳時(shí)間: 2013-12-16

    上傳用戶:stella2015

  • Arduino應(yīng)用_Arduino連接超聲波傳感器測(cè)距

    超聲波傳感器適用于對(duì)大幅的平面進(jìn)行靜止測(cè)距。普通的超聲波傳感器測(cè)距范圍大概是 2cm~450cm,分辨率3mm(淘寶賣(mài)家說(shuō)的,筆者測(cè)試環(huán)境沒(méi)那么好,個(gè)人實(shí)測(cè)比較穩(wěn)定的 距離10cm~2m 左右,超過(guò)此距離就經(jīng)常有偶然不準(zhǔn)確的情況發(fā)生了,當(dāng)然不排除筆者技術(shù) 問(wèn)題。) 測(cè)試對(duì)象是淘寶上面最便宜的SRF-04 超聲波傳感器,有四個(gè)腳:5v 電源腳(Vcc),觸發(fā)控制端(Trig),接收端(Echo),地端(GND) 附:SRF 系列超聲波傳感器參數(shù)比較   模塊工作原理: 采用IO 觸發(fā)測(cè)距,給至少10us 的高電平信號(hào); 模塊自動(dòng)發(fā)送8個(gè)40KHz 的方波,自動(dòng)檢測(cè)是否有信號(hào)返回; 有信號(hào)返回,通過(guò)IO 輸出一高電平,高電平持續(xù)的時(shí)間就是超聲波從發(fā)射到返回的時(shí)間.測(cè)試距離=(高電平時(shí)間*聲速(340m/s))/2; 電路連接方法   Arduino 程序例子: constintTrigPin = 2; constintEchoPin = 3; floatcm; voidsetup() { Serial.begin(9600); pinMode(TrigPin, OUTPUT); pinMode(EchoPin, INPUT); } voidloop() { digitalWrite(TrigPin, LOW); //低高低電平發(fā)一個(gè)短時(shí)間脈沖去TrigPin delayMicroseconds(2); digitalWrite(TrigPin, HIGH); delayMicroseconds(10); digitalWrite(TrigPin, LOW); cm = pulseIn(EchoPin, HIGH) / 58.0; //將回波時(shí)間換算成cm cm = (int(cm * 100.0)) / 100.0; //保留兩位小數(shù) Serial.print(cm); Serial.print("cm"); Serial.println(); delay(1000); }

    標(biāo)簽: Arduino 連接 超聲波傳感器

    上傳時(shí)間: 2013-10-18

    上傳用戶:星仔

  • Cadence PCB 設(shè)計(jì)與制板

    §1、安裝:    SPB15.2 CD1~3,安裝1、2,第3為庫(kù),不安裝    License安裝:         設(shè)置環(huán)境變量lm_license_file   D:\Cadence\license.dat         修改license中SERVER yyh ANY 5280為SERVER zeng ANY 5280 §2、用Design Entry CIS(Capture)設(shè)計(jì)原理圖   進(jìn)入Design Entry CIS Studio     設(shè)置操作環(huán)境\Options\Preferencses:       顏色:colors/Print       格子:Grid Display       雜項(xiàng):Miscellaneous       .........常取默認(rèn)值

    標(biāo)簽: Cadence PCB

    上傳時(shí)間: 2014-01-25

    上傳用戶:wangcehnglin

  • CTP知識(shí)全解

      1.什么是CTP?   CTP包括幾種含義:   脫機(jī)直接制版(Computer-to-plate)   在機(jī)直接制版(Computer-to-press)   直接印刷(Computer-to-paper/print)   數(shù)字打樣(Computer-to-proof)   普通PS版直接制版技術(shù),即CTcP(Computer-to-conventional plate)   這里所論述的CTP系統(tǒng)是脫機(jī)直接制版(Computer-to-plate)。CTP就是計(jì)算機(jī)直接到印版,是一種數(shù)字化印版成像過(guò)程。CTP直接制版機(jī)與照排機(jī)結(jié)構(gòu)原理相仿。起制版設(shè)備均是用計(jì)算機(jī)直接控制,用激光掃描成像,再通過(guò)顯影、定影生成直接可上機(jī)印刷的印版。計(jì)算機(jī)直接制版是采用數(shù)字化工作流程,直接將文字、圖象轉(zhuǎn)變?yōu)閿?shù)字,直接生成印版,省去了膠片這一材料、人工拼版的過(guò)程、半自動(dòng)或全自動(dòng)曬版工序。

    標(biāo)簽: CTP

    上傳時(shí)間: 2014-01-22

    上傳用戶:魚(yú)哥哥你好

  • Arduino應(yīng)用_Arduino連接超聲波傳感器測(cè)距

    超聲波傳感器適用于對(duì)大幅的平面進(jìn)行靜止測(cè)距。普通的超聲波傳感器測(cè)距范圍大概是 2cm~450cm,分辨率3mm(淘寶賣(mài)家說(shuō)的,筆者測(cè)試環(huán)境沒(méi)那么好,個(gè)人實(shí)測(cè)比較穩(wěn)定的 距離10cm~2m 左右,超過(guò)此距離就經(jīng)常有偶然不準(zhǔn)確的情況發(fā)生了,當(dāng)然不排除筆者技術(shù) 問(wèn)題。) 測(cè)試對(duì)象是淘寶上面最便宜的SRF-04 超聲波傳感器,有四個(gè)腳:5v 電源腳(Vcc),觸發(fā)控制端(Trig),接收端(Echo),地端(GND) 附:SRF 系列超聲波傳感器參數(shù)比較   模塊工作原理: 采用IO 觸發(fā)測(cè)距,給至少10us 的高電平信號(hào); 模塊自動(dòng)發(fā)送8個(gè)40KHz 的方波,自動(dòng)檢測(cè)是否有信號(hào)返回; 有信號(hào)返回,通過(guò)IO 輸出一高電平,高電平持續(xù)的時(shí)間就是超聲波從發(fā)射到返回的時(shí)間.測(cè)試距離=(高電平時(shí)間*聲速(340m/s))/2; 電路連接方法   Arduino 程序例子: constintTrigPin = 2; constintEchoPin = 3; floatcm; voidsetup() { Serial.begin(9600); pinMode(TrigPin, OUTPUT); pinMode(EchoPin, INPUT); } voidloop() { digitalWrite(TrigPin, LOW); //低高低電平發(fā)一個(gè)短時(shí)間脈沖去TrigPin delayMicroseconds(2); digitalWrite(TrigPin, HIGH); delayMicroseconds(10); digitalWrite(TrigPin, LOW); cm = pulseIn(EchoPin, HIGH) / 58.0; //將回波時(shí)間換算成cm cm = (int(cm * 100.0)) / 100.0; //保留兩位小數(shù) Serial.print(cm); Serial.print("cm"); Serial.println(); delay(1000); }

    標(biāo)簽: Arduino 連接 超聲波傳感器

    上傳時(shí)間: 2013-11-01

    上傳用戶:xiaoyuer

  • Arduino學(xué)習(xí)筆記3_連接HMC5883L三軸電子羅盤(pán)傳感器

    用途:測(cè)量地磁方向,測(cè)量物體靜止時(shí)候的方向,測(cè)量傳感器周?chē)帕€的方向。注意,測(cè)量地磁時(shí)候容易受到周?chē)艌?chǎng)影響,主芯片HMC5883 三軸磁阻傳感器特點(diǎn)(抄自網(wǎng)上): 1,數(shù)字量輸出:I2C 數(shù)字量輸出接口,設(shè)計(jì)使用非常方便。 2,尺寸小: 3x3x0.9mm LCC 封裝,適合大規(guī)模量產(chǎn)使用。 3,精度高:1-2 度,內(nèi)置12 位A/D,OFFSET, SET/RESET 電路,不會(huì)出現(xiàn)磁飽和現(xiàn)象,不會(huì)有累加誤差。 4,支持自動(dòng)校準(zhǔn)程序,簡(jiǎn)化使用步驟,終端產(chǎn)品使用非常方便。 5,內(nèi)置自測(cè)試電路,方便量產(chǎn)測(cè)試,無(wú)需增加額外昂貴的測(cè)試設(shè)備。 6,功耗低:供電電壓1.8V, 功耗睡眠模式-2.5uA 測(cè)量模式-0.6mA   連接方法: 只要連接VCC,GND,SDA,SDL 四條線。 Arduino GND -> HMC5883L GND Arduino 3.3V -> HMC5883L VCC Arduino A4 (SDA) -> HMC5883L SDA Arduino A5 (SCL) -> HMC5883L SCL (注意,接線是A4,A5,不是D4,D5) 源程序: #include <Wire.h> #include <HMC5883L.h> HMC5883Lcompass; voidsetup() { Serial.begin(9600); Wire.begin(); compass = HMC5883L(); compass.SetScale(1.3); compass.SetMeasurementMode(Measurement_Continuous); } voidloop() { MagnetometerRaw raw = compass.ReadRawAxis(); MagnetometerScaled scaled = compass.ReadScaledAxis(); float xHeading = atan2(scaled.YAxis, scaled.XAxis); float yHeading = atan2(scaled.ZAxis, scaled.XAxis); float zHeading = atan2(scaled.ZAxis, scaled.YAxis); if(xHeading < 0) xHeading += 2*PI; if(xHeading > 2*PI) xHeading -= 2*PI; if(yHeading < 0) yHeading += 2*PI; if(yHeading > 2*PI) yHeading -= 2*PI; if(zHeading < 0) zHeading += 2*PI; if(zHeading > 2*PI) zHeading -= 2*PI; float xDegrees = xHeading * 180/M_PI; float yDegrees = yHeading * 180/M_PI; float zDegrees = zHeading * 180/M_PI; Serial.print(xDegrees); Serial.print(","); Serial.print(yDegrees); Serial.print(","); Serial.print(zDegrees); Serial.println(";"); delay(100); }

    標(biāo)簽: Arduino 5883L 5883 HMC

    上傳時(shí)間: 2014-03-20

    上傳用戶:tianyi223

  • 一個(gè)用Java實(shí)現(xiàn)的打印程序示例

    一個(gè)用Java實(shí)現(xiàn)的打印程序示例,可以打印文本框里的文字,或整個(gè)顯示框架,還可以打印預(yù)覽,都是Java實(shí)現(xiàn),運(yùn)行命令java -jar print.jar。源文件都在包里。

    標(biāo)簽: Java 打印 程序

    上傳時(shí)間: 2014-01-09

    上傳用戶:tuilp1a

  • PrintNow is a 32-bit application that runs only under Windows 95 or Windows NT 4.0. It allows your

    PrintNow is a 32-bit application that runs only under Windows 95 or Windows NT 4.0. It allows your PrtScr and Alt+PrtScr keys to print a screen capture directly to your printer instead of just copying the image to the Windows clipboard. PrintNow can also print any DIB image in the clipboard, regardless of its original source. PrintNow supports multiple instances, it can print multiple copies of a screen capture to the same printer with different print settings, to several different printers, or any combination thereof, with a single keystroke.

    標(biāo)簽: Windows application PrintNow allows

    上傳時(shí)間: 2015-04-27

    上傳用戶:zhanditian

  • to show the waveform of audio file and play it on computer Purpose: Familiar with WAV file format a

    to show the waveform of audio file and play it on computer Purpose: Familiar with WAV file format and UI design It should have the following functions: Provide a Graphic User Interface for user to browse the file system and select one WAV file Show the waveform of input audio signal Play the selected WAV file Print the parameters of WAV file such as sampling rate, bit-depth, etc

    標(biāo)簽: file Familiar computer waveform

    上傳時(shí)間: 2015-05-07

    上傳用戶:l254587896

  • ARM下 Implement matrix multiplication of 2 square matrices, with data read from an input file and pri

    ARM下 Implement matrix multiplication of 2 square matrices, with data read from an input file and printed both to the console and to an output file. • Assume a file with correct data (no garbage, characters, etc.). • you must check and provide appropriate execution for 2 extra cases, namely when the matrix size given is either “0” , or when the size is greater than the maximum handled of “5” . In these 2 cases you must implement the following behaviour: o If size = 0, then print a message “Size = 0 is unacceptable” and continue by reading the next size for the next 2 matrices (if not end of file). o If size >5, then print two messages: “Size is too big - unacceptable”. Then read and discard the next (size2 ) integers and continue by reading the next size for the next 2 matrices (if not end of file).

    標(biāo)簽: multiplication Implement matrices matrix

    上傳時(shí)間: 2014-08-30

    上傳用戶:dsgkjgkjg

主站蜘蛛池模板: 萍乡市| 呼和浩特市| 新河县| 长乐市| 门源| 明光市| 琼结县| 新宾| 车险| 营山县| 休宁县| 太白县| 扶绥县| 许昌县| 丹阳市| 洞口县| 万年县| 肃南| 晋中市| 黎平县| 含山县| 腾冲县| 霍邱县| 怀远县| 南陵县| 尚义县| 额济纳旗| 辉县市| 天柱县| 涟水县| 杨浦区| 红原县| 翁源县| 大宁县| 泸水县| 维西| 建始县| 华宁县| 迁西县| 巴林左旗| 图木舒克市|