Click here to Skip to main content
11,706,024 members (52,830 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++

I have a project for baby care system and I need your help. I need a piece of code for detecting the motion of baby and send an alert to parents.

I'll be grateful if you help me. Smile | :)
Posted 8-May-11 8:26am
Edited 8-May-11 12:19pm
Keith Barrow at 8-May-11 14:58pm
So basicalyy, all you need is the system written for you. Hence my vote of 1.
Pete O'Hanlon at 8-May-11 15:30pm
Do I get your salary for doing your job for you? If so, I might be tempted to help out.
samo00 at 16-May-11 15:58pm
yes ok deal ;D
Legor at 9-May-11 4:06am
It wont be just "a piece of code" you know. You're talking about a much more complex task there. You'd have to inform yourself about "Motion detection" in general at first.
samo00 at 16-May-11 16:00pm
of course i have informed my self about it !! i know that the code is not that complex ..
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

bool GetbBabyHasMoved()
  return false;
Ah! and remember to glue the baby to the bed...

Now seriously:

it all depends on the kind of exercise they've given you... Which is the minimum movement you need to detect?

Using a web cam and comparing images could help...
Putting a sensor to the baby could help...
Using a cell phone with some api to find it's place could help...

Be more specific with your question please...
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I think your high-level analysis is correct, and OriginalGriff has kindly given you the framework for a solution.

Basically, you need to fit together two functional pieces:

1. How to detect movement - this is somewhat dependent on the particular hardware, but you will find many hits with google that will guide you.

2. How to send a message - with this one, you will find many articles on CodeProject; email, SMS, etc. This should be much simpler than (1).

When you have made a start, please post here if you have specific questions.
ganeshkawade2003 at 9-May-11 12:08pm
nice one , my 5 !!!
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

   if (BabyMoved())
   } while (1==1)
The rest is specific to your hardware and software environment.
Legor at 9-May-11 4:04am
Great one. I'll have to try this out! 5ved

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 196
1 Sergey Alexandrovich Kryukov 151
2 ppolymorphe 61
3 Inimicos 60
4 ProgramFOX 50
0 OriginalGriff 9,050
1 Sergey Alexandrovich Kryukov 8,417
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,636

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 9 May 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100