Elektrische Schubladenverriegelung

Hallo zusammen,
zur Sicherung der Schubladen habe ich Motoren aus einer Zentralverriegelung genommen.
Die Motoren haben zwei Positionen (geöffnet/geschlossen) und um diese Positionen anzufahren habe ich mit zwei Relais eine Verpolung realisiert. Es gibt also einen Taster zum verriegeln der Schubladen und einen zweiten Taster zum öffnen. So weit so gut…

Da es nun aber schon mehrfach vorgekommen ist, dass wir mit unverriegelten Schubladen losgefahren sind, möchte ich diese gerne über das Vanpi schalten können.
Verbaut ist das schwarze Relaisboard und es sind auch noch ein paar Relais frei.
Da ich für die Steuerung jedoch nur einen Stromstoß brauche, weiß ich gerade nicht, wie ich es am besten realisieren kann.

Vielleicht hat ja jemand von euch eine Idee?
Ich freue mich sehr auf Vorschläge und einen Austausch.

Liebe Grüße aus Köln
Philipp

Moin Philipp
du könntest soetwas machen.
ein Button (zur Zeit auf der Seite Test)
Die inject Node ist zum testen.
Du gibst einen Schaltbefehl true an den Relayausgang,
über die change Node wandelst du true in false über das delay verzögerst du die Meldung um zurzeit 1 sec. und mit dem Link out schickst du das zum Relay.
Gruß Arno
Nähe Köln :wink:

[
    {
        "id": "086e9f4712c74fed",
        "type": "ui_button",
        "z": "b3f96651a445db09",
        "name": "",
        "group": "38b0d3a980d68bfa",
        "order": 9,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "Schubladen",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "className": "",
        "icon": "",
        "payload": "true",
        "payloadType": "bool",
        "topic": "topic",
        "topicType": "msg",
        "x": 250,
        "y": 980,
        "wires": [
            [
                "d4fae62ca30c24bb",
                "8bf82c18c3f7fbbf"
            ]
        ]
    },
    {
        "id": "3c772998aa4f40ef",
        "type": "delay",
        "z": "b3f96651a445db09",
        "name": "",
        "pauseType": "delay",
        "timeout": "1",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 620,
        "y": 1020,
        "wires": [
            [
                "8bf82c18c3f7fbbf",
                "774bc4b828409525"
            ]
        ]
    },
    {
        "id": "d4fae62ca30c24bb",
        "type": "change",
        "z": "b3f96651a445db09",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "bool",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 420,
        "y": 1020,
        "wires": [
            [
                "3c772998aa4f40ef"
            ]
        ]
    },
    {
        "id": "8bf82c18c3f7fbbf",
        "type": "debug",
        "z": "b3f96651a445db09",
        "name": "debug 732",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 890,
        "y": 940,
        "wires": []
    },
    {
        "id": "774bc4b828409525",
        "type": "link out",
        "z": "b3f96651a445db09",
        "name": "link out 20",
        "mode": "link",
        "links": [
            "dbe756dfc89b0fb4"
        ],
        "x": 855,
        "y": 1020,
        "wires": []
    },
    {
        "id": "97afddbba18ddeec",
        "type": "comment",
        "z": "b3f96651a445db09",
        "name": "z,B. Relay 1",
        "info": "",
        "x": 990,
        "y": 1040,
        "wires": []
    },
    {
        "id": "fc6e587d13c48dc1",
        "type": "inject",
        "z": "b3f96651a445db09",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 190,
        "y": 1020,
        "wires": [
            [
                "d4fae62ca30c24bb",
                "8bf82c18c3f7fbbf",
                "774bc4b828409525"
            ]
        ]
    },
    {
        "id": "38b0d3a980d68bfa",
        "type": "ui_group",
        "name": "Test",
        "tab": "71bad5b741d68215",
        "order": 3,
        "disp": true,
        "width": "12",
        "collapse": false,
        "className": ""
    },
    {
        "id": "71bad5b741d68215",
        "type": "ui_tab",
        "name": "Test",
        "icon": "build",
        "order": 47,
        "disabled": false,
        "hidden": false
    }
]

Here is an alternate idea for you.

My drawers have no latches, so they would open and close when going around corners. I went with a non-computerized solution. I purchased small electromagnetic door catches (60kg each) and attached them to the back of the drawers. I then powered them via a relay connected to the van ignition. When the van is turned on, they lock. When it shuts off, they de-energize and unlock. I also added a bypass switch to allow access if the engine is running.

They use no power unless the engine is running (and there is a surplus of power then).

2 Likes

I had a similar idea, but one potential issue came to mind:
What happens if you turn off the engine while parked on a slope? Have you run into that situation?

My workaround was to use one of the relays on the VanPi, triggered either by a vibration sensor on the engine or the D+ signal from the generator. This way, the VanPi can activate the relay when it knows the engine is running.

To unlock the drawers, I’d use the display interface, and possibly add a manual switch later for convenience.

I think this should be doable with Node-RED. What do you think? Does this sound overcomplicated, or like a solid approach?

The drawers I used (ikea) have a natural resistance to opening and can easily handle 5+ degrees of slope. I would never park (or even willingly drive) at such an angle. The drawers opening is solely due to centripetal force when going around corners. Note that my drawers open side-to-side.

To help keep them closed, you could simply add glue-on magnets. These are usually small flat plates. This would add additional resistance.

Lastly, the point of using a D+ powered relay is that there is no power consumption at all when the power generator (engine) is not running.

I added a manual switch to disable the locks in case I need to open the drawers if the engine is running. It simply cuts the power to the locks.