Auto on and off alarm

I want to turn off alrm only when i wake up ,and if i returned to bed within limited time the alarm should turn on again.

so, for that i want to detect is there any person on bed or not

PIR is not effective , as it canno't detect if im sleeping motion less

Is there any better option ?

What about mmwave ? Can it detect a deep sleeping person? Can it also detect sleeping on stomach ?

Use a weight sensor to distinguish bed empty/occupied ?

1 Like

The AMG8833 has an INT interrupt output that pulses when the image changes. You wouldn't need to add the tft display if you didn't want it. Just monitor INT pin

@muhammadalippr - what Arduino(s) were you considering using?

So that wouldn't help in the case of someone lying still; eg, fast asleep.

Therefore it would rely on some image recognition/processing; maybe ML?
That would probably not be practical on an AVR-based Arduino?

Are you making an alarm clock using a RTC or trying to modify an existing alarm clock?

1 Like

Let's assume you are modifying an existing alarm clock

Arduino includes a sound sensor, AMG8833, momentary switch and a relay controlling the speaker.
Sound sensor detects the alarm,
Start monitoring the thermal image pointed at bed,
Image goes from hot spot to cold (you got up and left the viewing area),
INT stops triggering,
Open relay, silencing alarm,
You return into viewing area (bed), creating a hot spot,
relay closes, alarm sounds
After 15 minutes, hold relay open
Manually reset for next morning by pressing button and turning off alarm.

Most of this applies if making your own clock except no need for sound detector or manual reset

I think thermal camera is little expensive, also is it is possible to integrate with node mcu? that im currently using in my alarm system,

what about mmwave ?
Anyone used mwave ?

If you are referring to

I found them to have a wide, almost 360° detection angle, very sensitive, and detects through walls. You can add a resistor to decrease the range. My experience trying this was it went from detecting most motion in the house to not detecting anything a meter away.

It's worth a try. Your results may be better than mine.

That is radar motion sensor, i want to sens sleeping person,

Mm wave is known as human static sensor
Any one used this ?

Do you really mean that? Or do you mean when you actually get out of bed? The former seems very complex but the latter could be as simple as a carefully improvised switch under your mattress.

I meen get out of bed

Then go ahead and experiment with a switch positioned under your mattress as I suggested. I'd start with a block of wood with a microswitch on its top. A two-person trial and error session will determine the correct height. Use a simple LED---series resistor---battery (or other supply) for the testing.

EDIT: Scrub that suggestion because on further thought I think it would prove unreliable. Even if you slept alone, just turning over could trigger the microswitch. Other false alarms are easily imagined.

So instead I'd recommend a motion sensor, carefully positioned to only detect your movement after leaving the bed.

I've successfully used these in several projects, such as triggering a camera when a local fox makes an overnight visit. This is the one I used:
https://www.ebay.co.uk/itm/113735908004

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