Beep-BRRR using smart home to extend its functionality

Started 14Oct2024. Updated 24Oct2024. This page is in group My Beep-BRRR pages. It also is a follow-up from My missing smart home connection. Observe my Standard disclaimer.

Intro 1

I use some wirelessly controlled mains switches (Plejd SPR-01) to power some small boxes with boards which I have developed. A wireless battery-operated push-button unit (Plejd WPH-01) I «hijack» to become «pushed» by the alarm from a unit that I have developed (Beep-BRRR) when it has detected one of a list of locally recorded sounds. Now the hearing deficient is alarmed at several places.

Intro 2

In other words, for those that don’t hear well the idea is to have a unit listen for them. That’s all.

The problems that I show several solutions of in this note are

  1. The location of the listening unit(s).
    Where the (single?) critical sound audio listening unit Beep-BRRR should be positioned in a flat or house (scenario D has moved Beep-BRRR out of the bedroom to the entrance hall)
  2. The location of the blinking alarm units.
    How to distribute the alarm to places where proper attention for them is needed (scenarios C and D has remote alarm units)

Units

This system uses the following parts:

  1. My Beep-BRRR box that listens for in-product recorded sounds. One or twice one second for each sound.
    • See My Beep-BRRR pages. I have developed this 100% myself. It contains a 16 «logical core» processor board from XMOS, as well as at least 12000 lines of personally developed hard real-time software (much digital signal processing, DSP), written in xC for multi-core. (Since this is not a product there are of course alternatives (see some at 219:[Alternatives]). However, If you are in a company that would like to make this a proper product then just mail me.)
    • Beep-BRRR outputs a single 5V alarm pulse with Ri about 6 kΩ for of about 1/2 sec. over a 3.5 mm connector audio cable.
  2. An alarm clock BE1370 from Bellman & Symphon. It also contains a vibration actuator to be positioned in the bed, under the pillow etc. It is externally triggered by the alarm pulse. See 219:[Trigger other to do «BRRR»ing]
  3. Units that I built
    1. My pass/stop alarm unit. This is controlled by a 5V USB power in a Plejd SPR-01 on/off socket. When it’s powered a relay passes the alarm signal through. Also a switch to do the same. See architecture B and Fig.2
    2. Remote signalling. These are based on 555 timers, or rather a double 556. See architecture C and D
      1. My remote blinker/output alarm units. When 5V is applied it will first lit a white LED and beep and feed an alarm pulse out of the unit, for the alarm clock. The blinker unit will start to blink red and blue as long as the unit is powered.
      2. My remote output alarm units is a simpler unit that will only make the single alarm output pulse.
    3. The my modified Plejd WPH-01:
  4. Several units from Plejd [1]. An overall discussion in My missing smart home connection. Even if the error handling is (was?) not optimal, with the availability and ease of use, I have still decided to use them. Also because the flat where this is tested already had Plejd installed at several places
    1. My modified WPH-01 battery powered remote switch. In architecture C we see how I have fiddled inside one and had my own hardware, through a relay, «push a button» there. This hw is triggered by the alarm pulse. The alarm pulse is fed unchanged through the box
    2. There is one additional «flat» wall mounted WPH-01 shown in the figures. This is used in the flat for the «home/away» function which may be used to stop/pass the alarm pulse to the alarm clock through a scenario on the Plejd app and my pass/stop alarm unit
    3. Several SPR-01 on/off mains sockets. These units may be configured to, after power-up to do an «off» or to restore the previous value. (However there is no option for «on», see Wishes from Plejd, point 2, below). I did not read this from the manual, but form a support mail answer from Plejd. But if I had searched in the app I should have seen this without asking😀. All of these have a 5V USB adaptor plugged in which when on will power my units which will do their action
    4. The Plejd app on a mobile. This has an input → output action, optionally through a scenario.
      I have found no way to conditionally test states of Plejd units or state in a scenario. (Add a comment or mail me if I am wrong on this.) I assume that this may be a too complex task even for a smart user. Or even for the distributed architecture of the Plejd units. Like the WPH-01 has a battery life of ten years (two CR2032). This prompts me to believe that it does not listen to messages (since it also does not take part in the mesh architecture). To save power I imagine it only sends out a message when a button is activated. Of course, the Plejd GWY-01 gateway could have kept a state of that button, but even this would have its problems with getting synchronization correct without user intervention

Architecture A

Fig.3- Basic sound listening system with alarm clock and vibration actuator (with external power and battery)

This is the simplest solution. Beep-BRRR would show the alarm or alarms in the display and output a single pulse to the alarm clock on the first alarm. Beep-BRRR will repeat an internal beep every 30th second until the situation is reset by the user.

This alarm clock is externally powered and has an internal battery that’s charged by it.

Architecture B

Plejd scenario 1

A scenario that sets the SPR-01 must be made. The SPR-01 should have its output to be configured to «last state» at power-up. (See Wishes from Plejd, point 2, below). Typical usage would be awake/sleep and home/away. The latter would be a scenario believed to already exist.

Fig.4 – Sound listening system with remote pass/stop of pulse to the alarm clock

This opens for the alarm pulse to be shut off or connected through in a pass/stop unit that I built. With 5V appearing an internal relay closes and passes the pulse. With no 5V in the pulse is stopped. In that case a switch may short the relay contact and pass the pulse anyhow.

The below text first appeared in My missing smart home connection. It precedes the above text in this note, thus being a rather interesting precondition. I have only embellished the text some:

My «Beep-BRRR» unit needed a way to easily disconnect the bedside table alarm clock. This clock has sound and light plus a separate bed shaker, which are best kept silent every now and then. Especially when away. The spec was to disconnect this by breaking a wire in an audio cable. Disconnect with a «Home/Away» switch on the wall (not our wall, the user’s wall), a wireless push button (Plejd WPH-01) [1]. Or, by the Plejd app. (Or perhaps even by Apple Home (HomeKit) or Google Home or Amazon Alexa.) With or without a gateway (like Plejd GWY-01).

Fig1 – My missing link box with two Plejd units

What I could find from the Plejd assortment was a smart relay on/off plug (Plejd SPR-01). However I was not able to spot any galvanically isolated («floating») relay output, any 5V logical output unit or a 4-20 mA current loop output. Not anything that I could use. Was I blind, could this be true? Nothing of the sort that I could easily use to break a wire in the 3-5 mm audio cable. Or deliver a logical input to the Beep-BRRR for that sake, on a later occasion. Maybe the closest I could find was the 24V DC (Constant voltage, PWM-modulated, I assume) LED driver (LST-01), but even it is supposed to be connected to an IP66 protected LED list. I assume that since description of whether any of the Plejd products are galvanically isolated seems to be missing, they are not. But I don’t know.

Fig 2 – My disconnect audio cable control box (press for PDF)

My solution was to buy this SPR-01 with an internal relay delivering obviously not isolated voltage from the mains (230V AC mains, of course). I then plugged an obsoleted (but oh so small and nice and fitting the purpose) Apple 5V, 5W charger into it, and have the 5V from it control a 5V relay. And then design and build the (rather nice, to be a little modest) aluminium box, containing that relay. See the circuit diagram for some more text.

Observe Mains fail to safe (below).

Any better idea, Plejd? Even if your logo and name make sense upside down (nice!), does my rather upside down solution make sense? A floating from mains double throw relay would have been nice. But then comes the point of type of enclosure and DIY or electrician for installation etc. I can see reasons why Plejd don’t seem to approach the DIY marked. But from all the nice «makers fair» type of stuff out there, why not consider this market? (MikroE, Adafruit, Sparkfun, Hackster and Pimoroni, to name a few.)

Or would there be any other smart home appliance that could have solved my problem, outside of the Plejd infrastructure? (Comments are open).

Architecture C

Plejd scenario 2

A different scenario that reads the WPH-01 which control the two lower SPR-01 must be made. The SPR-01 should have its output to be configured to «last state» at power-up. (See Wishes from Plejd, point 2, below) Typical usage would be awake/sleep and home/away. The latter would be a scenario believed to already exist.

Fig.5 – Sound listening system which itself «pushes a button» for remote alarm to blinkers. Also remote pass/stop of pulse to the alarm clock

This opens for the alarm pulse from Beep-BRRR to «press a button» on my modified Plejd WPH-01 wireless push button. This will send a message to the on/off units to become powered. This will cause my remote blinker/output units to start blinking red and blue.

Pressing the other side of the switch by hand will unpower the blinker units.

Fig.7 – Unit that «pushes a button» on the Plejd WPH-01 on the alarm pulse

The little board contains a MOSFET transistor that powers the relay when the alarm input sees the alarm voltage. The relay is not polarised, meaning that when the alarm pulse goes down (after about half a second), the relay opens again. The relay closed contacts I have soldered onto one out of four switches on the WPH-01 board. This switch I have decorated with a continuous weak LED, which lights more up during the pulse. See picture above.

The label I made for the above box goes like this, Norwegian and English:

Når alarm fra Beep-BRRR sendes en puls til denne modifiserte Plejd WPH-01 trykkbryteren. Pulsen «trykker» på knappen ved lysdioden. Da vil det varsles i blinker og alarmenhetene via Plejd SPR-01 av/på. En av dem er også tilkoblet alarmklokka. Avstill det hele her.
Skjema 42, blogg 261. Øyvind Teig 10.24
When alarm from Beep-BRRR, a pulse is sent to this modified Plejd WPH-01 pressure switch. The pulse «presses» the button by the LED. Then it will notify the flashing lights and the alarm units via Plejd SPR-01 on/off. One of them is also connected to the alarm clock. Stop it all here.
Form 42, blog 261. Øyvind Teig 10.24

Fig.8 – Unit that outputs a pulse and starts to blink when powered. The LEDs are inside a lamp bulb

The unit above is 73 * 73 * 49 mm. The dome is from a defect E27 LED bulb. It’s plastic and has a diameter of 60 mm.

The label I made for the box goes like this, Norwegian and English:

Når alarm fra Beep-BRRR «trykker» den på en modifisert Plejd WPH-01 trykkbryter. Da leverer en Plejd SPR-01 av/på enhet 5V hit via USB strøm-forsyning. Med en gang leveres en enkeltpuls ut på 3.5 mm lydutgang til eventuell alarmklokke. Blinker så lenge USB har 5V. Avstill på modifisert WPH-01 trykkbryter.
Skjema 43 og 44, blogg 261. Øyvind Teig 10.24
When there is an alarm from Beep-BRRR it «presses» on a modified Plejd WPH-01 pressure switch. Then a Plejd SPR-01 on/off device supplies 5V here via USB power supply. A single pulse is immediately delivered on the 3.5 mm audio output to any alarm clock. Flashes as long as the USB has 5V. Reset on the WPH-01 pressure switch.
Forms 43 and 44, blog 261. Øyvind Teig 10.24

You can download the circuit diagram of the modified WPH-01 switch, here.

Architecture D

In this architecture the Beep-BRRR has been moved from the bedroom to the entrance. Even if it does detect the door bell and the private fire detector and also the house of flat’s fire alarm with the bedroom door closed, it will get a better signal/noise ratio there. That’s the upside.

The downside is more ambient noise from the flat and probably more false alarms. But I am working on another algorithm to try to help on this.

However, the real downside is that it’s not possible to make this architecture fail safe to a mains fallout. See Mains fail to safe (below). One solution could be to keep the Beep-BRRR in the bedroom and install a second Beep-BRRR in the entrance. that would be architecture E

Fig.6 – Sound listening dislocated from the alarm clock. It only «pushes a button» for remote alarm to blinkers. Also remote pass/stop of pulse to the alarm clock

The new unit here is a simplified version of the remote blinker/output alarm unit. It has no bulb on top because it’s not needed where it’s placed, by the alarm clock. Instead it has a simple red LED that will light bright for the duration of the generated output alarm pulse, then blink weak from then on. As for the other unit, the continuous visible indication is a «nag blinking» so that the user will have to (or want to) acknowledge or reset the system by pressing the other side of the button on the modified WPH-01.

Fig.8 – Modified unit from fig.7 without bulb and with one LED only

The unit is 73 * 73 * 22 mm.

You can download the circuit diagrams etc. here.

Architecture E

One Beep-BRRR in the bedroom and a second Beep-BRRR in the entrance. The one in the bedroom would have a UPS for it. The one in the entrance hall would not have any UPS. Whether one or both should have a modified WPH-01 I haven’t studied. Or if this is a viable solution at all.

One could of course find a small 230V AC UPS for the SPR-01 at the bedroom and have a simple 5V UPS for the Beep-BRRR in the entrance.

Maybe more later.

Issues

Mains fail to safe

UPS

I have not solved the Uninterruptible power supply (UPS) case for the Beep-BRRR. See 219:[Uninterruptible Power Supply (UPS)]. So for now, in case of a power failure, of all the units and architectures I mention in this blog note, none survive.

As mentioned the alarm clock has an internal battery.

Pass/stop must pass on no power

The unit as described in the circuit diagram in Fig.2 is not fail to safe. I need to invert the contacts on the relay to normally closed so that the alarm passes through when there is no mains power. See new diagram in here. This is not valid for architecture A and B. It is valid for C if I had a UPS there. However for D it would not be valid either, as the wireless SPR-01 will need mains being present and there is no way to keep them going without mains. The WPH-01 indeed has a battery built in as it is completely disconnected from mains.

Wishes from Plejd

I would like to see this from Plejd:

  1. The whole field of error detection and reporting, as indicated in My missing smart home connection to be redesigned
  2. Waived point: For SPR-01, after power-up I would want to be able to set to «on», not only «last state» or «off». This would only be needed for the non mains fail to safe version since there my usages may have states that may potentially change during a power outlet. With a UPS on Beep-BRRR the present state as «off» after power-up is correct

References

Wiki-refsUninterruptible power supply (UPS)

[1] Plejd, see https://www.plejd.com

Leave a Reply

Dette nettstedet bruker Akismet for å redusere spam. Lær om hvordan dine kommentar-data prosesseres.