# Automation HAT Mini on pi zero

**URL:** <https://forums.pimoroni.com/t/automation-hat-mini-on-pi-zero/13733>\
**Category:** Support\
**Created:** [May 1, 2020, 3:38pm UTC](https://forums.pimoroni.com/t/automation-hat-mini-on-pi-zero/13733 "2020-05-01T15:38:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guibert](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Guibert](https://forums.pimoroni.com/u/Guibert)\
**Post date:** [May 1, 2020, 3:38pm UTC](https://forums.pimoroni.com/t/automation-hat-mini-on-pi-zero/13733/1 "2020-05-01T15:38:41Z")

</div>

Good evening.

What is the correct procedure to install an automation hat mini on a raspberry pi zero with raspbian light ?

The procedure suggested on the site installs a working system for the automation hat and for the phat.  
The system is not working for the mini however.

Also, the examples are not fully copied (hat-mini lacks).

Any help greatly appreciated !

Guibert

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [May 1, 2020, 4:34pm UTC](https://forums.pimoroni.com/t/automation-hat-mini-on-pi-zero/13733/2 "2020-05-01T16:34:02Z")

</div>

What is not working? What happens when you run the installer?  
`curl https://get.pimoroni.com/automationhat | bash`  
Do you get error messages etc?

Are these the examples your running?

> **[pimoroni/automation-hat](https://github.com/pimoroni/automation-hat/tree/master/examples/hat-mini)**
>
> Python library and examples for the Pimoroni Automation HAT & pHAT - pimoroni/automation-hat

---

<div class="post-metadata">

**Author:** ![Guibert](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Guibert](https://forums.pimoroni.com/u/Guibert)\
**Post date:** [May 1, 2020, 4:49pm UTC](https://forums.pimoroni.com/t/automation-hat-mini-on-pi-zero/13733/3 "2020-05-01T16:49:20Z")

</div>

The installation runs ok.

The examples from hat-mini are however not installed by the installation procedure.  
When I copy the examples from hat-mini, when executed, no module ST7735 is found.

The older examples (hat) run flawlessly on the mini (as if it were a phat).

I will ty another install tomorrow with a full Rasbian on a pi 3B, and see what it gives.

Any other suggestions ?

Guibert

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [May 1, 2020, 5:32pm UTC](https://forums.pimoroni.com/t/automation-hat-mini-on-pi-zero/13733/4 "2020-05-01T17:32:45Z")

</div>

I had a feeling that was going to be what you’d say.  
ST7735 is I believe the LCD display. This one I think?

> **[0.96" SPI Colour LCD (160x80) Breakout – Pimoroni Store](https://shop.pimoroni.com/products/0-96-spi-colour-lcd-160x80-breakout)**
>
> A handy lil' LCD to add readouts to your projects. This 0.96" SPI LCD has a 2:1 widescreen aspect ratio, has great viewing angles (IPS), and works with Raspberry Pi or Arduino.

  
The installer for that is  
`curl https://get.pimoroni.com/st7735 | bash`

---

<div class="post-metadata">

**Author:** ![Guibert](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Guibert](https://forums.pimoroni.com/u/Guibert)\
**Post date:** [May 2, 2020, 5:57am UTC](https://forums.pimoroni.com/t/automation-hat-mini-on-pi-zero/13733/5 "2020-05-02T05:57:45Z")

</div>

Good morning !

Thank you for your response.

Actually, I did take these steps (for st7735) yesterday even before your reaction came.  
But then other things came up.

When I run output.py in the hat-mini folder, I now get this error message:

output.py

This Automation HAT Mini example toggles and displays the  
status of the three 24V-tolerant digital outputs.

Press CTRL+C to exit.

Traceback (most recent call last):  
File “./output.py”, line 52, in   
spi\_speed\_hz=4000000  
File “/usr/local/lib/python3.7/dist-packages/ST7735/ **init**.py”, line 156, in **init**  
self.\_spi = spidev.SpiDev(port, cs)  
FileNotFoundError: [Errno 2] No such file or directory

One step further ?

Guibert

---

<div class="post-metadata">

**Author:** ![Guibert](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Guibert](https://forums.pimoroni.com/u/Guibert)\
**Post date:** [May 2, 2020, 7:13am UTC](https://forums.pimoroni.com/t/automation-hat-mini-on-pi-zero/13733/6 "2020-05-02T07:13:45Z")

</div>

Problem solved !

I browsed the ST7735 **init**.pi file.  
the spi-interface was not activated.

Thanks for helping me out.

Have a nice weekend.  
And remain careful, stay safe and healthy.

Guibert

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [May 2, 2020, 10:18am UTC](https://forums.pimoroni.com/t/automation-hat-mini-on-pi-zero/13733/7 "2020-05-02T10:18:40Z")

</div>

My forum e-mails for what ever reason are going into my Outlook Spam folder. Which is kind of messing things up for me reply wise.

I had a similar issue with the 1.3 inch SPI one. SPI wasn’t enabled, at least that’s what I think happened. Anyway enjoy your new toy. =)

> [@1.3 color tft LCD on btreakout garden pHat, SPI i2c](https://forums.pimoroni.com/t/1-3-color-tft-lcd-on-btreakout-garden-phat-spi-i2c/13033):
>
> I’m trying to get my 1.3" SPI Colour LCD (240x240) Breakout working with a Breakout Garden pHat The Breakout garden Installer didn’t find it, I had to do the manual install from here Running the scrolling-test.py example from idle3 got me a no module named st7789. Running sudo pip3 install st7789 fixed that but gets me a new error message that I think is because its plugged into the breakout garden? Traceback (most recent call last): File “/home/pi/Color LCD/scrolling-text.py”, …
