2013年3月29日 星期五

Arduino 入門 LED 閃爍實驗






int ledPin = 10; //定義數位 pin 10 介面

void setup()
{
pinMode(ledPin, OUTPUT);//定義LED為輸出介面
}

void loop()
{
digitalWrite(ledPin, HIGH); //ON LED
delay(1000); //延時1

digitalWrite(ledPin, LOW); //OFF LED
delay(1000); // 延時1
}

Arduino 入門 Hello World!




int val;     //定義變數val
int ledpin=13;   //定義數位介面pin 13

void setup()

Serial.begin(9600);  //設定串列傳輸速率為9600

pinMode(ledpin,OUTPUT);//設定數位13 為輸出介面
}


void loop()
{
val=Serial.read();   //讀取PC 發送給Arduino 的指令或字元
                         //並將該指令或字元賦予val

if(val=='R')   //判斷接收到的指令或字元是否是R

{  //如果接收到是R

digitalWrite(ledpin,HIGH); //ON 數位13 的LED。
delay(500);
digitalWrite(ledpin,LOW);  //OFF 數位13 的LED。
delay(500);
Serial.println("Hello World!"); //顯示「Hello World!」字串
                                      //於Serial Port Monitor 上

}     //end if   

Arduino Uno安裝設定















Arduino Uno板子正面照。















背面上印有"R3"。

USB cable連接板子與電腦後,Windows會出現新增硬體視窗
因為要自行指定驅動程式,所以選「不,現在不要」。


然後選從清單或特定位置安裝(進階)


只勾選「搜尋時包含這個位置」,按下「瀏覽」,

指向Arduino軟體解壓縮後的目錄下的drivers目錄。


然後就會開始安裝了。


安裝時,你可能要按下「繼續安裝」。


DRIVER安裝完成。


接下來,要找出Arduino板子被接到哪一個序列埠上。

雖然用的是USB連接線,其實是將USB模擬成序列埠。


首先到「Tools」-「Board」設定你用的是哪塊板子。
Arduino UNO

然後到「Tools」-「Serial Port」設定的com port 。
COMX

Arduino軟體提供一些寫好的程式範例,我們可以拿來測試看看。
請選「File」-「Examples」-「1.Basics」-「Blink」。



2013年3月21日 星期四

http://booklens.com/u-a-bakshi/


U.a.bakshi

105 books written by U.a.bakshi
  • Electronic Circuits - Ii
    (2010) | 684 pages
    by A.P.Godse, U.A.Bakshi
  • Control Systems
    (2010) | 764 pages
    by U.A.Bakshi, V.U.Bakshi
  • Electromagnetic Fields
    (2010) | 748 pages
    by U.A.Bakshi, A.V.Bakshi
  • Elements Of Electrical Engineering
    (2010) | 620 pages
    by U.A.Bakshi, V.U.Bakshi
  • Linear Integrated Circuits & Applications
    (2010) | 672 pages
    by U.A.Bakshi, A.P.Godse
  • Linear Integrated Circuits
    (2010) | 878 pages
    by U.A.Bakshi, A.P.Godse
  • Measurements and Instrumentation
    (2010) | 644 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electrical Machines I
    (2010) | 716 pages
    by U.A.Bakshi, M.V.Bakshi
  • Electromagnetic Fields
    (2009) | 466 pages
  • Electronic Circuit Analysis
    (2009) | 682 pages
  • Electronics Circuits - I
    (2009) | 816 pages
    by A.P.Godse, U.A.Bakshi
  • Electronic Circuits and Appliations
    (2009) | 936 pages
    by A.P.Godse, U.A.Bakshi
  • Pulse & Digital Circuits
    (2009) | 532 pages
  • Electronics Devices And Circuits
    (2009) | 696 pages
    by A.P.Godse, U.A.Bakshi
  • Electronic Devices
    (2009) | 536 pages
    by A.P.Godse, U.A.Bakshi
  • Basic Electrical Engineering
    (2009) | 764 pages
    by U.A.Bakshi, V.U.Bakshi
  • Electrical Circuits and Elecron Devices
    (2009) | 686 pages
    by U.A.Bakshi, A.P.Godse
  • Basic Electronics Engineering
    (2009) | 688 pages
    by U.A.Bakshi, A.P.Godse
  • Analog And Digital Electronics
    (2009) | 662 pages
    by U.A.Bakshi, A.P.Godse
  • Electrical Engineering
    (2009) | 636 pages
    by U.A.Bakshi, V.U.Bakshi
  • Basic Electronics
    (2009) | 1004 pages
    by A.P.Godse, U.A.Bakshi
  • Electronics Engineering
    (2009) | 746 pages
    by A.P.Godse, U.A.Bakshi
  • Network Analysis
    (2009) | 1053 pages
    by U.A.Bakshi, A.V.Bakshi
  • Circuits And Networks
    (2009) | 904 pages
    by U.A.Bakshi, A.V.Bakshi
  • Network analysis & synthesis
    (2009) | 724 pages
    by U.A.Bakshi, A.V.Bakshi
  • Circuit Analysis - II
    (2009) | 716 pages
    by U.A.Bakshi, A.V.Bakshi
  • Circuit Theory
    (2009) | 536 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electronic Circuit Analysis
    (2009) | 668 pages
  • Transmission And Distribution
    (2009) | 656 pages
    by U.A.Bakshi, M.V.Bakshi
  • Generation, Transmission And Distribution
    (2009) | 568 pages
    by U.A.Bakshi, M.V.Bakshi
  • Power System - I
    (2009) | 572 pages
    by U.A.Bakshi, M.V.Bakshi
  • Switchgear And Protection
    (2009) | 376 pages
    by U.A.Bakshi, M.V.Bakshi
  • Transmission And Distribution Of Electrical Power
    (2009) | 508 pages
    by U.A.Bakshi, M.V.Bakshi
  • Electrical Machines - Ii
    (2009) | 668 pages
    by U.A.Bakshi, M.V.Bakshi
  • Protection of Power System
    (2009) | 264 pages
    by U.A.Bakshi, A.V.Bakshi
  • Power System - II
    (2009) | 456 pages
    by U.A.Bakshi, M.V.Bakshi
  • Electrical Measurements And Measuring Instruments
    (2009) | 720 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electrical Measurements And Instrumentation
    (2009) | 550 pages
    by U.A.Bakshi, A.V.Bakshi
  • Protection And Switchgear
    (2009) | 472 pages
    by U.A.Bakshi, M.V.Bakshi
  • Fundamental Of Network Analysis And Synthesis
    (2009) | 748 pages
    by U.A.Bakshi, A.V.Bakshi
  • Analog and Digital IC - Design and Applications
    (2009) | 920 pages
    by U.A.Bakshi, A.P.Godse
  • Principles Of Control Systems
    (2009) | 912 pages
    by U.A.Bakshi, V.U.Bakshi
  • Automatic Control System
    (2009) | 752 pages
    by U.A.Bakshi, V.U.Bakshi
  • Microprocessor And Control Systems
    (2009) | 644 pages
    by A.P.Godse, U.A.Bakshi
  • Electrical Drives And Control
    (2009) | 380 pages
    by U.A.Bakshi, M.V.Bakshi
  • Electrical Circuits and Machines
    (2009) | 810 pages
    by U.A.Bakshi, V.U.Bakshi
  • Electromagnetic Waves and Radiating Systems
    (2009) | 848 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electromagnetic Wave Theory
    (2009) | 780 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electro magnetic Waves and Transmission Lines
    (2009) | 920 pages
    by U.A.Bakshi, A.V.Bakshi
  • Instrumentation Engineering
    (2009) | 432 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electrical And Electronics Engineering
    (2009) | 640 pages
    by U.A.Bakshi, V.U.Bakshi
  • Linear ICs and Applications
    (2009) | 474 pages
    by U.A.Bakshi, A.P.Godse
  • Digital And Linear Integrated Circuits
    (2009) | 984 pages
    by A.P.Godse, U.A.Bakshi
  • Electrical Machines & Electronics
    (2009) | 864 pages
    by U.A.Bakshi, A.P.Godse
  • Solid State Devices And Circuits
    (2009) | 836 pages
    by A.P.Godse, U.A.Bakshi
  • Electronic circuits
    (2009) | 752 pages
    by A.P.Godse, U.A.Bakshi
  • Fundamentals Of Instrumentation
    (2009) | 424 pages
    by U.A.Bakshi, A.V.Bakshi
  • Analog Electronics
    (2009) | 576 pages
    by U.A.Bakshi, A.P.Godse
  • Electronics Measurements And Instrumentation
    (2009) | 656 pages
    by U.A.Bakshi, A.V.Bakshi
  • Modern control theory
    (2009) | 454 pages
    by U.A.Bakshi, M.V.Bakshi
  • Electrical Technology
    (2009) | 648 pages
    by U.A.Bakshi, V.U.Bakshi
  • Electronic & Electrical Measuring Intruments & Machines
    (2009) | 680 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electrical Instrumentation
    (2009) | 532 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electrical And Electronics Measuring Instruments
    (2009) | 420 pages
    by U.A.Bakshi, A.V.Bakshi
  • Basic System Analysis
    (2009) | 599 pages
    by Dr. J.S.Chitode, U.A.Bakshi
  • Power Devices And Machines
    (2009) | 804 pages
    by Dr.J.S.Chitode, U.A.Bakshi
  • Measurements And Instrumentation
    (2009) | 646 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electronic Instrumentation
    (2009) | 492 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electronic Measurement Systems
    (2009) | 514 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electrical Technology amd Instruments
    (2009) | 732 pages
    by U.A.Bakshi, A.V.Bakshi
  • Antenna And Wave Propagation
    (2009) | 476 pages
    by U.A.Bakshi, A.V.Bakshi
  • D.c. Machines and Synchronous Machines
    (2009) | 636 pages
    by U.A.Bakshi, M.V.Bakshi
  • Basic Electrical and Electronics Engineering
    (2009) | 748 pages
    by U.A.Bakshi, A.P.Godse
  • Synchronous Machines
    (2009) | 328 pages
    by U.A.Bakshi, M.V.Bakshi
  • Power electronics - II
    (2009) | 734 pages
    by U.A.Bakshi, A.P.Godse
  • Telecommunication Engineering
    (2009) | 622 pages
  • Electrical Machines
    (2009) | 796 pages
    by U.A.Bakshi, M.V.Bakshi
  • Linear System Analysis
    (2009) | 692 pages
    by U.A.Bakshi, J.S.Chitode
  • Electromechanical Energy Conversion & D.C. Machines
    (2009) | 372 pages
    by U.A.Bakshi, M.V.Bakshi
  • Electrical Technology
    (2009) | 824 pages
    by U.A.Bakshi, V.U.Bakshi
  • Electromagnetic Theory
    (2009) | 888 pages
    by U.A.Bakshi, A.V.Bakshi
  • Linear Integrated Circuits
    (2009) | 544 pages
    by U.A.Bakshi, A.P.Godse
  • Electronic Devices And Circuits
    (2009) | 968 pages
    by A.P.Godse, U.A.Bakshi
  • Pulse & Digital Circuits
    (2009) | 540 pages
  • Electronic Circuits - Ii
    (2009) | 708 pages
    by U.A.Bakshi, A.V.Bakshi
  • Analog And Digital Electronics
    (2009) | 1036 pages
    by U.A.Bakshi, A.P.Godse
  • Electrical Machines - II
    (2009) | 574 pages
    by U.A.Bakshi, M.V.Bakshi
  • Circuit Analysis
    (2008) | 592 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electrical Network Analysis and Synthesis
    (2008) | 984 pages
    by U.A.Bakshi, A.V.Bakshi
  • Electric Circuits
    (2008) | 844 pages
    by U.A.Bakshi, A.V.Bakshi
  • Control System Engineering
    (2008) | 1046 pages
    by U.A.Bakshi, V.U.Bakshi
  • Electrical Engineering and Control Systems
    (2008) | 724 pages
    by U.A.Bakshi, V.U. Bakshi
  • Electronic Devices and Linear Circuits
    (2008) | 816 pages
    by U.A.Bakshi, A.P.Godse
  • Electrical Networks
    (2008) | 968 pages
    by U.A.Bakshi, A.V.Bakshi
  • Asynchronous Machines
    (2008) | 284 pages
    by U.A.Bakshi, M.V. Bakshi
  • D.C. Machines and Transformers
    (2008) | 602 pages
    by U.A.Bakshi, M.V.Bakshi
  • Magnetic Circuits and Transformers
    (2008) | 332 pages
    by U.A.Bakshi, M.V. Bakshi
  • Electrical Engineering
    (2008) | 696 pages
    by U.A.Bakshi, V.U.Bakshi
  • Electrical Machines - I
    (2006) | 374 pages
  • Protection and Switchgear
    | 404 pages
  • Electrical Machines - i
    | 438 pages
  • Transmission Lines & Waveguides
    | 348 pages
  • Electronic Devices
    | 376 pages
  • Electrical Machines
    | 520 pages
  • Electromagnetic Theory
    | 626 pages


© Booklens 2012

113 學年度第 1 學期 RFID應用課程 Arduino程式

113 學年度第 1 學期 RFID應用課程 Arduino程式 https://www.mediafire.com/file/zr0h0p3iosq12jw/MFRC522+(2).7z/file 內含修改過後的 MFRC522 程式庫 (原程式有錯誤) //定義MFRC522...