Magnetometer and low current ?? can't you detect movement?

As i am going deeper into this issue, it seems very odd to me .

If you go over the most popular magnetometers around, you will see that most of them does not have an interrupt on change pin . only interrupt for data ready .

That means, if connected to MCU , like Arduino , the MCU has to always sample the result from the sensor to detect a movement .

For example sampling each second, will wake up the Atmega for some time, and then back to sleep .

This approach seems to make it impossible for battery operated devices because current consumption.

What am i missing here ? is there no way to detect movement with a very low current? (accelerometers and gyros are not good for a slow movement) .

Mobile phone chipsets (the target market for most of these types of sensors) typically have single low power core like an ARM 6 which is active all the time, handling sensor input.

Thanks, so what does it means for me? is there no way to measure all the time or even 1 every 1 second with Atmega ,and still powered with batteries ?

My mobile devices are powered by batteries.

Having and Arduino wake for 1ms and sleep for 999ms will still reduce your power consumption by a vast amount.

Mark

@awol my question was regarding an arduino, i dont know the features of an ARM cortex processors vs the Atmega .

@Mark, can you make this measurement in 1 ms ?

One more thing, to wake the MCU every once in a while , do you need external device for interrupt ? i know that to wake from sleep you need INT0 or INT1 to change (?)

You can use the watchdog to wake a sleeping processor, IIRC.
Not hugely accurate, though.

Magnetometers are not intended to detect movement. It is possible to move without significant change in magnetic fields. Usually they are used for orientation.

Yes, a measurement can in principle be made in a millisecond.

jremington:
Magnetometers are not intended to detect movement. It is possible to move without significant change in magnetic fields. Usually they are used for orientation.

I was thinking the same thing.

BenStlr:
accelerometers and gyros are not good for a slow movement

What sort of movement are you trying to detect? Have you tried using an accelerometer to detect these movements?

What is your power limitation? What sort of batteries and how long do you want the batteries to last?

What do you want the microcontroller to do when a movement is detected?

I think you are very wrong about the assumption that magnetometer are not good .

There are academic articles about it, that says, exactly what we found- accelerometer will not detect the slowly opening of a door, no matter what algorithms you would implement. As its name , he detects acceleration, and if you open a door slowly there is no acceleration .

A compass-magnetometer- is quite simply detect that, because you change his position relative to earth, that means 20 degrees opening of a door, would make the change , no matter what the speed is .

(put your iPhone on a door with the compass on, and see it )

Our pcb has to awake from sleep when a door was opened, but it turned out that accelerometer is not good for that (ADXL345) in any configuration .

Do you have any other ideas- on how to detect a door opening, or a window opened, with only one part on the object ?

if you open a door slowly there is no acceleration .

Don't be ridiculous.
Just because you chose the wrong device doesn't mean the principle is incorrect or that physics somehow stops working.

@Groove Ridiculous you are . I will not even start reacting to this. Read some academic articles about it and you will quickly find how wrong you are . Constant speed will not create acceleration . thats basic physics.

(ADXL known to be one of the best out there)

And how do you achieve constant speed from rest?
By acceleration.

ADXL known to be one of the best out there

No, not by a long way.
It's a thirteen bit device. Google mandates sixteen bits for Android HiFi sensors

Yea smart guy .

This guy , made his Thesis (oh yea) on what called ecompass- means to detect a slow movement of a door by accelerometer and compass . i dont think he just "missed" your genius idea to use a sensitive accelerometer

https://lup.lub.lu.se/student-papers/search/publication/5276512

He is not the only one.

Hi,
Do you want to detect the door opening or coming off the latch?

Tom... :slight_smile:

i dont think he just "missed" your genius idea to use a sensitive accelerometer

That 's right - he thought around your crappy idea of using an insensitive one.

No latches or other parts, only one part on the door . I would like to know that the door was opened in any way, slowly,fast,just a little bit, etc .

And if someone carries a loudspeaker, electric motor, TV blah, blah past your magnetometer?

Google "sensor fusion"

Hi,
But from the latch or just moved from any open position to another open position.

I would like to know that the door was opened in any way, slowly,fast,just a little bit, etc .

To me , opened, means from closed, that is off a latch, door frame. So any movement from the door frame can cause a normally open mag/reed assy to close, sound an alarm, no current flow until door opened.

Tom... :slight_smile:

@Groove, so if someone carry a magnet, that means the magnetometer was changed and i know that its being hacked . Oh yea, as simple as that. its the change you are looking for.

Dont be so arrogant ,if you read just a little bit more about it, you will find quickly enough that this is what is being used today in most of these systems . There is an option to just give up your ego and admire you had a mistake.

Unless you have another idea other then saying "use a more sensitive device" . The device we use has 4mg sensitivity . Less then that, is more like noises .

@Tom , thanks , well again, we only need one part , not 2, i am aware of all other crapy bad user experience ideas such as reed sensors that requires other strange objects being installed .