Go Down

Topic: Vibration Sensor 1104 (Read 3 times) previous topic - next topic

goga

Good evening!!!

I try to make a program about arduino mega 2560 and sensor 1104....
i try something simple....just make a vibration ...but i can't find some material about this...

Could anyone help me ?????? =(

robtillaart

can you post a link to the datasheet of that 1104, I get 156.000.000 hits in Google on the number 1104
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

goga

http://www.phidgets.com/products.php?product_id=1104_0

i can't understand how it works.....thanku very much for your interest!!!!

robtillaart



it is an analog device so you should connect one pin to +5V one to GND and the third to Analog pin A0 for example

some loop like this should work.
Code: [Select]

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  int x = analogRead(A0);
  float voltage = x * 5.0 / 1023;
  Serial.println(voltage);
}
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

goga

ok ...something like this  i have done ..but i need something to put into my code to make the vibration.......how is it work ???

for the temperature sensor and the  light sensor i have a formula..but for this ???????

Go Up