User Tools

Site Tools


oak:tutorials:buzzer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
oak:tutorials:buzzer [2016/03/25 23:28]
nog3 [Circuit:]
oak:tutorials:buzzer [2016/03/25 23:42] (current)
nog3 Correcting to use pin 2.
Line 31: Line 31:
 {{:​oak:​tutorials:​buzzer.png?​direct&​200|Buzzer}} {{:​oak:​tutorials:​buzzer.png?​direct&​200|Buzzer}}
  
-Remember that when connecting a buzzer, you must pay attention to the (+) sign on the top of the buzzer casing. The (+) sign represents the positive connector and is where the red wire from pin must go. If you get this backwards your buzzer may stop working. +Remember that when connecting a buzzer, you must pay attention to the (+) sign on the top of the buzzer casing. The (+) sign represents the positive connector and is where the red wire from pin must go. If you get this backwards your buzzer may stop working.
- +
-You will also want to unplug the buzzer until your Oak has finished uploading the test code, or it may get very noisy indeed!+
  
 =====Code:​===== =====Code:​=====
Line 39: Line 37:
 <​code>​ <​code>​
 //set the buzzer pin //set the buzzer pin
-int buzzer = 1;+int buzzer = 2;
  
 // the setup function runs once when you reset or power the board // the setup function runs once when you reset or power the board
oak/tutorials/buzzer.txt · Last modified: 2016/03/25 23:42 by nog3