Show Posts
Pages: [1]
1  Using Arduino / Sensors / Using the LDT0-028K piezo sensor to detect water impact on: November 30, 2013, 11:15:34 pm
Hi,

I bought a LDTO-028K (https://www.sparkfun.com/products/9196)
I want to use it in a situation to detect water falling on a surface. Water falls from a height of 10 inches onto a surface below which this piezo sensor is stuck. I have connected a 1M resitor in parallel to the sensor and I get readings when water hits the surface and I light an LED using that data.

My problem is the LED keeps blinking. How do i get a stable on/off like situation when water falls on the surface and when it does not. I tried some debouncing but that does not seem to work.

My code is very straight forward :
int sensorPin = A0;
int ledPin = 13;
int sensorValue = 0;

void setup() {
pinMode(ledPin, OUTPUT);
}

void loop() {
sensorValue = analogRead(sensorPin);
if (sensorValue >70){
digitalWrite(ledPin, HIGH);
}

else{
digitalWrite(ledPin, LOW);
}
}

Anyone has any clues?

Thank you
2  International / India / Re: Who are you? Where are you located? on: February 04, 2013, 10:20:43 am
Hi
My name is Denny George
I am an engineer by training but have interest in interaction design and sound design.
Having explored a lot of sound production via puredata, processing and c++ I am currently exploring Arduino as a tool to create sound objects.

I am currently based in Guwahati.
http://anarcissist.wordpress.com/
3  Using Arduino / Installation & Troubleshooting / Re: Can't figure out how to install Arduino IDE in Ubuntu 12.10 on: February 04, 2013, 10:09:47 am
sudo apt-get install arduino works fine
in case you prefer installing it using a GUI
go to the software centre and search for Arduino IDE. Click Install and you are done.
Pages: [1]