Memsic 2125 Dual-axis Accelerometer = Dryer Machine Monitor
Tony11
Posts: 41
Hi All
One Led, one Memsic 2125 Dual-axis Accelerometer and one BS2.
Is there A way with the Memsic 2125 Dual-axis Accelerometer sensor, to take and put the sensor on top of A dryer
with the BS2 and Led.
So data from the sensor would make the led
turn on or off, from the motion from the
dryer being on or off.
So if the dryer is on and moving, the led would be off.
So if the dryer is off and was moving, the led would be on.
The link= is what I am shooting for...
http://diy.viktak.com/2012/07/washing-machine-monitor.html?m=1
One Led, one Memsic 2125 Dual-axis Accelerometer and one BS2.
Is there A way with the Memsic 2125 Dual-axis Accelerometer sensor, to take and put the sensor on top of A dryer
with the BS2 and Led.
So data from the sensor would make the led
turn on or off, from the motion from the
dryer being on or off.
So if the dryer is on and moving, the led would be off.
So if the dryer is off and was moving, the led would be on.
The link= is what I am shooting for...
http://diy.viktak.com/2012/07/washing-machine-monitor.html?m=1
Comments
The project you describe is very doable with parts you list.
I doubt there's ready made code to do just what you want, but the Memsic product page has Basic Stamp 2 example code. You'll need to decide how much acceleration indicates the dryer is on and when this accerleration isn't present have the code turn on the LED.
Do you already have a BS2? Have you tried the example Memsic code? Can you get the BS2 to turn on a LED?
Is there A way to take the (x and times it by 1000) and the (y and times it by 1000). The
Memsic sensor needs to be more sensitive to the vibrations of the dryer moving.
I think why, its not working well is because I am reading the tilt of the Memsic.
How do I make code that will read the vibrations of the dryer moving...........
Right now when I put this code in to the bs2 and run it.
X = 2455
Y = 2455
Read the same if the dryer is running or not running.
I have used this code.
Do the x and y values change over multiple readings when the Memsic is sitting on a running dryer? You could try having the Memsic positioned on a bit of a tilt in order to include the vertical component of the vibration.
How much do the x and y values change from one reading to the next when the dryer is off? How much do the x and y values change from one reading to the next when the dryer is on?If the change from one reading to the next is greater when the dryer is on, then you can use the difference between two subsequent readings as an indicator to let the program know if the dryer is on or off.
BTW, it's easier to read code in the forum if you use code tags. Here's a link to Phil's tutorial on using code tags.
only # that moves is the last one on the right.
From X=2455 to Y=2456
From Y=2455 to Y=2457
The #'s move very little.
If I could only make the #'s move a lot,
then it would be easy.
But I need A sensor that will read little movement.
The Y value chages by two. Is this consistant? If so, it might be enough to do what you want.
A faster microcontroller would probably be able to measure the pulse from the sensor with greater precision.
There's also the option of using a different accelerometer.
So what other kind of accelerometer would work?
Thank you two people for your help........
Have you tried tilting the Memsic to see if you get a larger change in the readings?
If you think you need a more sensitive accelerotmeter Sparkfun has "Buying Guide" that lists many of the properties of various acclerometers. If you purchase a different accelerometer (which I'm not sure is necessary), you might want to get one from Parallax in order to take advantage of their BS2 sample code.
kwinn, The Memsic's output is a pulse length. It already is a square wave.
@tingo, Which datasheet are you looking at? I don't see a motion detector example in the datasheet I found on the product page.