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 on Netduino ?


  • Please log in to reply
1 reply to this topic

#1 zee

zee

    Advanced Member

  • Members
  • PipPipPip
  • 47 posts

Posted 15 March 2013 - 03:46 AM

Hi,

 

I need help here.. I am now doing a project for drum using piezo & led.. I have been researching for it for almost a week, but the results seem to be only for Arduino Uno. I could not find any help on the codes for Netduino Plus 2. Is there any codes that is similar to this project?



#2 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 15 March 2013 - 02:34 PM

Hi, there's this guide on Sparkfun:

 

http://www.sparkfun.com/tutorials/330

 

I haven't read it but I assume you sample the voltage generated from the piezos (when hitting them). Normally you would apply voltage to a piezo but they actually work in the opposite direction too.

 

You can so sampling using the ADC (Analgoue to Didital Converter). If you need help on how to use the ADC, Dave recently made this excellent post with a simple example:

 

http://forums.netdui...tal/#entry45571

 

Off-topic: Most stuff work somewhat in their opposite direction:

 

* Certain types of electical motors become generators

* LEDs can detect light (a small voltage is generated as light hits the diode)






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.