Piezo buzzer port - Netduino Plus 2 (and Netduino Plus 1) - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Piezo buzzer port

Speaker

  • Please log in to reply
3 replies to this topic

#1 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 23 February 2013 - 08:21 PM

Good day everyone,

 

I was wondering if the piezo buzzer can be used in any other Pin other than the Pins.GPIO_PIN_D9?

 

Thanks



#2 Paul Newton

Paul Newton

    Advanced Member

  • Members
  • PipPipPip
  • 724 posts
  • LocationBerkshire, UK

Posted 24 February 2013 - 08:30 AM

Hi,

 

D10, D5, D6 are also PWM on the V1's.

 

Plus D3 & D11 on the v2's.

 

You could also make short bursts of sound using the SPI - MOSI (D11).

 

Have fun - Paul



#3 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 24 February 2013 - 07:16 PM

Hi,

 

D10, D5, D6 are also PWM on the V1's.

 

Plus D3 & D11 on the v2's.

 

You could also make short bursts of sound using the SPI - MOSI (D11).

 

Have fun - Paul

 

Thanks Paul for your feedback, my bad, I was using D2 instead of D3 in my N+2 because I have read the following specs incorrectly:

 

digital pins 2-3: UART 2 RX, TX/PWM

 

And that was causing the board to crash really bad to be point that I had to re-flash it every time I was debugging my app.



#4 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 24 February 2013 - 07:29 PM

for testing and such i suggest using a thread.sleep(5*1000); at the beginning _before_ your code, so when you reset it it gives you enough time

to just remove the app or deploy a new one before it crashes again.

 

(and seriously, 5 seconds is not really that long ...)







Also tagged with one or more of these keywords: Speaker

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.