Offline
Newbie
Karma: 0
Posts: 27
|
 |
« on: December 18, 2012, 03:52:35 am » |
Hello Arduino Forum
My goal is to make a schematic and code, which together will be able to alert when the box the project is housed in, is moved out of it's place. I have to use some kind of a sensor to measure the movement of the project box down to centimeters. I am thinking of using one of the cheap accelerometers bought on Ebay. But maybe another sensor would be better (Gyro, tiltsensor etc.?) to measure that kind of movement? - I don't know, this is why i am asking ;-)
Thank you very much!
Best regards Johannes T. Nielsen
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Online
Edison Member
Karma: 28
Posts: 1559
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #1 on: December 18, 2012, 09:19:54 am » |
Moved how, actual location, picked up, slightly turned to the left, there are many ways it can be moved. Is their any in particular direction of movement your refering to?
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
UK
Offline
Tesla Member
Karma: 89
Posts: 6344
-
|
 |
« Reply #2 on: December 18, 2012, 09:23:10 am » |
I would have thought that an accelerometer would be your best bet - or a mercury tilt switch to use some older technology.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5918
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #4 on: December 18, 2012, 12:42:12 pm » |
You can't find position with accelerometer (unless using dead reckoning). Will you need to know the x y coordinate of the box after it's moved or will "box is moved" is enough? You can have an accelerometer or a vibration sensor to detect movement is made and have an optical sensor to tell whether the box is put back to its original position.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 27
|
 |
« Reply #5 on: December 19, 2012, 05:08:24 am » |
Liudr: I won't use the x y coordinate of the box after it's moved, so they doesn't matter. It is enough for me if i can get the Arduino to toggle a few pins, when "box is moved" in any matter, out of it's place.
PeterH: I thinked about using a mercury tilt switch, but if i use such, i think i will be able to move the box very slowly, without activating the tilt switch??
Hazardsmind: I mean moved as in moved in any direction, tilted, picked up etc. all movement of the box should set a few pins high
-----
I am very happy to see all this feedback, thank you very much! :-)
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Online
Edison Member
Karma: 28
Posts: 1559
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #6 on: December 19, 2012, 07:47:41 am » |
You can use a vibration sensor for the slight bumps and nudges, and an accelerometer for when it is tilted or lifted too fast.
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
UK
Offline
Tesla Member
Karma: 89
Posts: 6344
-
|
 |
« Reply #7 on: December 19, 2012, 08:41:05 am » |
PeterH: I thinked about using a mercury tilt switch, but if i use such, i think i will be able to move the box very slowly, without activating the tilt switch??
This is also true of any accelerometer - there must be a threshold of sensitivity below which you will ignore any signals, otherwise your alarm would be triggered by ambient noise and vibration. I'm not sure how easy it would be to move a tilt switch without triggering it - not at all easy I would think.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 27
|
 |
« Reply #8 on: December 20, 2012, 02:45:27 am » |
PeterH Maybe you're right about the tilt switch, i've only played with one vibration switch, and by using that one, i was able to move the box slowly, without activating it. But maybe i should look for a more sensitive one? - the one i used is this model: http://www.ebay.co.uk/itm/10-Pcs-12V-10M-Ohm-Mini-Vibration-Switch-Sensor-SW-58020-/390514804646?pt=UK_BOI_Industrial_Automation_Control_ET&hash=item5aec7f07a6 But i think, that if you move it slowly out of the x axis you would in fact be able to move the box, without triggering the alarm, and that is my concern about using a tilt switch, because the alarm must be triggered, if the box is moved slowly, and of course there should be a threshold of some kind :-) thanks for your help! HazardsMind Would it be possible to use the accelerometer to detect slight bumps and nudges? - i played with a vibration switch before (look at my referral for PeterH ^^) , and i was able to move my box slowly, without the vibration switch getting activated. Thanks for your help
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Online
Edison Member
Karma: 28
Posts: 1559
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #9 on: December 20, 2012, 05:45:18 am » |
Would it be possible to use the accelerometer to detect slight bumps and nudges? - i played with a vibration switch before (look at my referral for PeterH ^^) , and i was able to move my box slowly, without the vibration switch getting activated. If the vibration sensor wasn't able to detect the box moving then an accelerometer definitely won't. May your sensor didn't have a high enough threshold, I don't know. What about maybe a pressure sensor on the outside that can detect if someone touches the box?
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 27
|
 |
« Reply #10 on: December 20, 2012, 06:56:00 am » |
The vibration sensor wasn't able to detect the movement of the box, if i moved the box very slowly. About the pressure sensor, i don't think that would be a good idea, because it will be a option to move the box without touching it (pulling the cables etc.)
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Online
Edison Member
Karma: 28
Posts: 1559
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #11 on: December 20, 2012, 07:44:54 am » |
About the pressure sensor, i don't think that would be a good idea, because it will be a option to move the box without touching it (pulling the cables etc.) Well thats where the accelerometer comes in, when it's slightly tilted. Pressure/touch sensor would work when someone physically touches it. A proximity sensor will work if someone gets close to it. What about maybe a VERY sensitive microphone hidden within the box, that can detect the sound of the box sliding across a surface. (given if the surface is not silk or very smooth)
|
|
|
|
« Last Edit: December 20, 2012, 08:05:14 am by HazardsMind »
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
UK
Offline
Tesla Member
Karma: 89
Posts: 6344
-
|
 |
« Reply #12 on: December 20, 2012, 09:48:19 am » |
i was able to move my box slowly, without the vibration switch getting activated.
Can you give more detail about where the box will be placed, and what sort of movement you are trying to detect? I mean, for example, if somebody is willing to spend a month moving it a thousandth of an inch without setting the alarm off, is that a problem? Well, probably not. What I'm getting at is that you aren't actually trying to detect absolutely all conceivable movement - that would be fundamentally impossible. What sort of movement are you trying to detect? Is there any possibility of attaching anything under the box? For example if you glued a conducting pad to the surface under the box and put a pair of contacts on the bottom of the box, arranged so that they weren't visible or accessible while the box was in place, then any movement which took a contact off the pad could be detected. Is that a feasible approach?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 27
|
 |
« Reply #13 on: December 22, 2012, 01:24:03 pm » |
PeterH The thing is, that the box will be connected to a laptop with a kensington lock cable. I want to detect the movement of the box being picked up from the surface/tilted/shaked, and if that happens continuous within 4 seconds then it will activate a alarm. If not then do nothing. So i am trying to detect lift/tilt/shake.
It is not possible to attach anything to the underside of the box.
Hazardsmind: As i am seeing it right now, all i need is really a accelerometer? - it should be able to detect movement of the box (let's say, move the box a meter away from it's place) even if you do it very slow, i should be able to detect the tilts also, is that correct
Thank you very much, guys. Great to receive good help!
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Online
Edison Member
Karma: 28
Posts: 1559
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #14 on: December 22, 2012, 02:01:01 pm » |
I have an accelerometer myself that I could try. I know that even when an accelerometer is not moving, the readings will still vary. So if you can monitor the readings as it is still, and set a range based on those reading, then maybe it will work. But I don't want to say yes, only to find out that it is inconsistant.
So if you have the accelerometer already, run some tests first.
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
|