“Buzzer”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
(insert link to code)
第16行: 第16行:
  
 
*Other Hardware Equipment  
 
*Other Hardware Equipment  
**USB cable   One
+
**1x USB cable  
  
 
==Program==
 
==Program==
  
 
You can find the code here: [https://github.com/Microduino/Microduino_Tutorials/blob/master/mCookie_sensor/MicroduinoBuzzer/MicroduinoBuzzer.ino Buzzer]  
 
You can find the code here: [https://github.com/Microduino/Microduino_Tutorials/blob/master/mCookie_sensor/MicroduinoBuzzer/MicroduinoBuzzer.ino Buzzer]  
Copy it to your Microduino IDE environment.
 
  
 
==Debugging==
 
==Debugging==
  
Step 1:
+
Step 1: Connect Microduino buzzer to D6 pin of Microduino buzzer.
 
[[File:MicroduinoBuzzerSensor.png|600px|center|thumb]]
 
[[File:MicroduinoBuzzerSensor.png|600px|center|thumb]]
Connect Microduino buzzer to D6 pin of Microduino buzzer.  
+
   
  
Step 2:  
+
Step 2: Connect the Microduino-CoreUSB to your PC with the USB cable and upload the code.
Connect your PC with USB cable, download code and burn it to Microduino-CoreUSB.
 
 
[[File:MicroduinoBuzzerSensor1.png|600px|center|thumb]]
 
[[File:MicroduinoBuzzerSensor1.png|600px|center|thumb]]
  
  
Step 3:  
+
Step 3: Power on and listen to see what happens.  
Power on and listen to see what happens.  
 
 
[[File:MicroduinoBuzzerSensor2.png|600px|center|thumb]]
 
[[File:MicroduinoBuzzerSensor2.png|600px|center|thumb]]
  
  
Step 4:You’ll hear a sound like alarm.  
+
Step 4: You’ll hear a sound like alarm.  
 
[[File:MicroduinoBuzzerSensor3.png|600px|center|thumb]]
 
[[File:MicroduinoBuzzerSensor3.png|600px|center|thumb]]
  
第45行: 第42行:
 
==Result==
 
==Result==
  
You can make alarm sound through a buzzer.  
+
You can make an alarm sound through a buzzer.  
  
 
==Video==
 
==Video==
  
 
|}
 
|}

2015年9月6日 (日) 05:44的版本

Objective

This tutorial will show you the way to use Microduino buzzer.

Equipment



  • Other Hardware Equipment
    • 1x USB cable

Program

You can find the code here: Buzzer

Debugging

Step 1: Connect Microduino buzzer to D6 pin of Microduino buzzer.


Step 2: Connect the Microduino-CoreUSB to your PC with the USB cable and upload the code.


Step 3: Power on and listen to see what happens.


Step 4: You’ll hear a sound like alarm.


Result

You can make an alarm sound through a buzzer.

Video