Pages: [1]   Go Down
Author Topic: Vibration Sensor 1104  (Read 2744 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?????? smiley-cry
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13471
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Rob Tillaart

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

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13471
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



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:
void setup()
{
  Serial.begin(9600);
}

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

Rob Tillaart

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

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ???????
Logged

Offline Offline
Faraday Member
**
Karma: 80
Posts: 3785
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i need something to put into my code to make the vibration

It doesn't make a vibration: it's a sensor not an actuator.

When it feels vibration it will output a voltage based on the intensity of the vibration, eg 0V for "still" and 5V for a "earthquake"; you read that analog input as Rob suggested and your program acts based on the level of vibration.
Logged

Although I answer in good faith, remember always: Your Mileage May Vary.
Get me on LinkedIn: za.linkedin.com/in/jimbrownza/

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanku  !!!!!!!!...i thought something else.....
now i can explain this sensor into my project
Logged

Offline Offline
Faraday Member
**
Karma: 80
Posts: 3785
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
now i can explain this sensor into my project

Maybe have 3 LEDs.... green for still, yellow for minor vibration and red for a big shake, based on the analog reading?
Logged

Although I answer in good faith, remember always: Your Mileage May Vary.
Get me on LinkedIn: za.linkedin.com/in/jimbrownza/

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you mean the pienzo?????????

my pienzo which is attached on the sensor has a green
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ooops!!!!no i am wrong!!!!!
i have not any leds..... smiley-eek
Logged

Offline Offline
Faraday Member
**
Karma: 80
Posts: 3785
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, I meant maybe you could add coloured LEDs to your project and have them light up depending on how big a shake the sensor registers.
Logged

Although I answer in good faith, remember always: Your Mileage May Vary.
Get me on LinkedIn: za.linkedin.com/in/jimbrownza/

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, I meant maybe you could add coloured LEDs to your project and have them light up depending on how big a shake the sensor registers.


my university can't give me any led.....i must do something with these matereals(sensor+arduino only)
 
i have my mobile phone near the sensor and when it is vibrating the output voltage is the same like before.. smiley-cry
Logged

Offline Offline
Faraday Member
**
Karma: 80
Posts: 3785
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i must do something with these matereals(sensor+arduino only)

Well, sensors by their very nature don't "do" anything, they "sense".... then you need an actuator to be the "do-er" based on what you sense. For example, you have a temperature sensor you say: well there's no point measuring the temperature if you don't act on that reading, eg switch the fan on if it's too hot.

But remember the Arduino has a built-in LED on pin 13- perhaps you could make that do something based on the readings
Logged

Although I answer in good faith, remember always: Your Mileage May Vary.
Get me on LinkedIn: za.linkedin.com/in/jimbrownza/

Pages: [1]   Go Up
Jump to: