John Pinares
Newbie level 4
- Joined
- Aug 31, 2014
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 55
Hey everyone. I'm having trouble with this homework assignment. Here it is:
A baby monitor system detects motion using a sensor (A0=1). The system should
sound an alarm (B0=1) if no motion is detected for at least 60 seconds. A button
(A1) or detected motion resets the system.
Im supposed to design this using state machines on the RIBS software. Right now if no motion is detected for 60 seconds the alarm sounds, as normal, but when i trigger motion (A0) or the reset button (A1), it waits the full 60 seconds for the alarm to turn of (B0=0). How can I fix that so that it turns off as soon as A0 || A1? Here is my SM, I set the period to 6 sec instead of 60 for the sake of testing. Thanks in advance
A baby monitor system detects motion using a sensor (A0=1). The system should
sound an alarm (B0=1) if no motion is detected for at least 60 seconds. A button
(A1) or detected motion resets the system.
Im supposed to design this using state machines on the RIBS software. Right now if no motion is detected for 60 seconds the alarm sounds, as normal, but when i trigger motion (A0) or the reset button (A1), it waits the full 60 seconds for the alarm to turn of (B0=0). How can I fix that so that it turns off as soon as A0 || A1? Here is my SM, I set the period to 6 sec instead of 60 for the sake of testing. Thanks in advance