Motion Sensor in Mit

I Need a motion extention please. Can anyone make it?

2 Likes

Describe what you exactly want.

What are the required features ?

1 Like

Also, you have an Accelerometer Sensor to fulfil your needs.

1 Like
1 Like

how to do it

1 Like

Describe what you want to achieve, and what you have tried so far.

1 Like

the camera if detected motion, ring alarm

1 Like

Something like this maybe. (Not 100% sure. You need to test it.)

1 Like

Close, but a little bit off-topic. I believe you are trying to ring alarm when you shake the phone, but the OP wants to ring the alarm when the camera has detected motion. Nice try.

1 Like

@Gordon_Lu

Brother Shake is a different event. I didn't use that.

Why use the accelerometer when you want the CAMERA to detect motion ?

@TIMAI2 (I don't know why the reply button is not working so I tagged you instead.)

Wait is it possible to detect motion using Camera ?

It has no blocks or properties to do that.

And even if it is done, the accelerometer makes things less complicated.

An extension will be required to handle the motion detection.
.
.
.
You will have seen the motion sensing wildlife cameras ? When they detect motion (an animal comes into range) they start video recording the animal's activity.

Many people now have video doorbells, which will start recording when they detect movement within the range of the camera.

Neither of these would use an accelerometer....

3 Likes

Oh ok.



I thought he wanted to detect his own motion. Sorry, Thank You and Bye. :wave:

1 Like

how to do it

this is my question

Create your extension and include the JOpenCV4Android library . This article purports to do part of what you want to do using Android Studio Motion Detection in Android - Howto - CodeProject

Perhaps something similar could be done with App Inventor and an extension.

Or perhaps using the information here Android - camera as motion detector - Stack Overflow

1 Like

You could possibly do motion detect with some blocks, a timer and a couple of extensions

or use Taifun's extension:
Camera Extension to take pictures programmatically without user interaction.

  1. Take a picture
  2. Take next picture
  3. Compare the two pictures
  4. If different, do something
  5. Loop

Thanks so much!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.