# Pimoroni Automation Hat Mini

**URL:** https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616
**Category:** Hardware
**Created:** [22 May 2023 16:53 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616 "2023-05-22T16:53:36Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![PCgoDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pcgodk/32/79987_2.png) [@PCgoDK](https://discourse.nodered.org/u/PCgoDK)
#### Post date: [22 May 2023 16:53 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/1 "2023-05-22T16:53:36Z")

</div>

Anyone know how to get the display on Pimoroni Automation Hat Mini to work in Node-RED?  
br. PCgo

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [22 May 2023 17:03 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/2 "2023-05-22T17:03:32Z")

</div>

> [@PCgoDK](#):
>
> Pimoroni Automation Hat

Sadly looks like they only have a Python library. So your only option (other than spending time converting the Python library to Node.js!) would probably be to use the exec node to call Python scripts.

---

<div class="post-metadata">

### Author: ![PCgoDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pcgodk/32/79987_2.png) [@PCgoDK](https://discourse.nodered.org/u/PCgoDK)
#### Post date: [23 May 2023 08:33 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/3 "2023-05-23T08:33:28Z")

</div>

Thanks for your input.  
Yes, it's a shame, as I was really hoping for the use of this nice hat in NodeRed. I will continue to hope  
that some experienced developers will build a node that will be easy to use. Or produce a StepByStep guide to use the existing library from Pimoroni.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [23 May 2023 08:56 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/4 "2023-05-23T08:56:44Z")

</div>

You could try reaching out to them. I met one of the founders at a maker faire here in Sheffield when they were first getting going, seemed like nice folk.

---

<div class="post-metadata">

### Author: ![PCgoDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pcgodk/32/79987_2.png) [@PCgoDK](https://discourse.nodered.org/u/PCgoDK)
#### Post date: [23 May 2023 09:17 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/5 "2023-05-23T09:17:35Z")

</div>

I did... and did not get closer 🤔  
Answer:  
" I'm afraid we're not really too familiar with NodeRed as an ecosystem so I don't think we'll be able to help much here. You could try posting on the forums to see if anyone's already tried this?  
[https://forums.pimoroni.com/](https://forums.pimoroni.com/) "

So I did that too - and still waiting for a helping hand 💝

> **[Pimoroni Automation Hat Mini - display at Node-RED](https://forums.pimoroni.com/t/pimoroni-automation-hat-mini-display-at-node-red/22209)**
>
> Anyone has made a Node in Node-RED for Pimoroni Automation Hat Mini? Especially a Node for use of display…

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [23 May 2023 10:09 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/6 "2023-05-23T10:09:40Z")

</div>

It looks like the python script to control the board runs continuously, so a relatively simple way to have it work with node-red would be for the script to publish and subscribe to MQTT messages.

Pimoroni were quick to modify the example scripts for their "Blinky" LED board when I asked for it to be able to subscribe to MQTT.  
Now it's very easy for my Node-red (or any other language) to turn the individual LEDs on or off.

---

<div class="post-metadata">

### Author: ![PCgoDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pcgodk/32/79987_2.png) [@PCgoDK](https://discourse.nodered.org/u/PCgoDK)
#### Post date: [23 May 2023 10:11 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/7 "2023-05-23T10:11:19Z")

</div>

Thanks for your input.  
I have easily control of the outputs of this hat. The tricky part is the lcd display.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [23 May 2023 10:14 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/8 "2023-05-23T10:14:21Z")

</div>

That's promising! Can you share how you do that from node-red?

---

<div class="post-metadata">

### Author: ![PCgoDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pcgodk/32/79987_2.png) [@PCgoDK](https://discourse.nodered.org/u/PCgoDK)
#### Post date: [23 May 2023 10:32 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/9 "2023-05-23T10:32:56Z")

</div>

To activate the outputs on the Automation Hat Mini on Raspberry Pi4:  
Use node: rpi-gpio out  
Configure the 4 outputs individually to use:  
Output 1 = GPIO5  
Output 2 = GPIO12  
Output 3 = GPIO6  
Output 4 = GPIO16  
Connect a Inject node to send "msg.payload=1" to the gpio out node.

To automatically turn off the output I also connect a Delay node and a Switch node where "msg.payload=0". These two nodes connected in parallel to the previous.

```auto
[
    {
        "id": "4bb3e8710b4db7b6",
        "type": "inject",
        "z": "6ffcde2c5925413b",
        "name": "Test Output 4",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 670,
        "y": 740,
        "wires": [
            [
                "ed1fb811d36fb83e",
                "1d5cfc0b83f979ae"
            ]
        ]
    },
    {
        "id": "1d5cfc0b83f979ae",
        "type": "delay",
        "z": "6ffcde2c5925413b",
        "name": "",
        "pauseType": "delay",
        "timeout": "250",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 890,
        "y": 780,
        "wires": [
            [
                "b764c7b0dbf6115c"
            ]
        ]
    },
    {
        "id": "b764c7b0dbf6115c",
        "type": "change",
        "z": "6ffcde2c5925413b",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1080,
        "y": 780,
        "wires": [
            [
                "ed1fb811d36fb83e"
            ]
        ]
    },
    {
        "id": "ed1fb811d36fb83e",
        "type": "rpi-gpio out",
        "z": "6ffcde2c5925413b",
        "name": "Relay 4",
        "pin": "16",
        "set": true,
        "level": "0",
        "freq": "",
        "out": "out",
        "bcm": true,
        "x": 1260,
        "y": 740,
        "wires": []
    }
]

```

---

<div class="post-metadata">

### Author: ![PCgoDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pcgodk/32/79987_2.png) [@PCgoDK](https://discourse.nodered.org/u/PCgoDK)
#### Post date: [30 May 2023 06:21 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/10 "2023-05-30T06:21:28Z")

</div>

![20230530_081802](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/f/ff8af176d254bd0fe888e45aa5676811e5a7da36.jpeg)  
It's a very nice hat and fits into a compact enclosure with minor modification. If only a wise person could make a node enabling the display for use to rookie like me.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [29 July 2023 06:21 UTC](https://discourse.nodered.org/t/pimoroni-automation-hat-mini/78616/11 "2023-07-29T06:21:34Z")

</div>

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