Automation Hat Newbie


#1

Hello all. Newbie here. I just mounted an Automation Hat directly to Pi 3 B+. Ran the one liner install

pi@raspberrypi:~ $ curl -sS get.pimoroni.com/automationhat | bash

This script will install everything needed to use
Automation HAT

Always be careful when running scripts and commands copied
from the internet. Ensure they are from a trusted source.

If you want to see what this script does before running it,
you should run: ‘curl https://get.pimoroni.com/automationhat

Note: Automation HAT requires I2C communication

Do you wish to continue? [y/N] y

Checking environment…
Updating apt indexes…

Checking hardware requirements…

Checking for packages required for GPIO control…
RPi.GPIO installed and up-to-date

I2C already enabled

Checking packages required by I2C interface…
Python 2 smbus installed and up-to-date
Python 3 smbus installed and up-to-date

Automation HAT comes with examples and documentation that you may wish to install.
Performing a full install will ensure those resources are installed,
along with all required dependencies. It may however take a while!

Do you wish to perform a full install? [y/N] y

Checking for dependencies…
python-sn3218 is already installed
python3-sn3218 is already installed

Installing python-automationhat…
install ok installed
Installing python3-automationhat…
install ok installed

Checking for additional software…

Downloading examples and documentation…

The examples directory already exists on your system!
We’ve backed them up as examples-backup, just in case you’ve changed anything!

Resources for your Automation HAT were copied to
/home/pi/Pimoroni/automationhat

All done. Enjoy your Automation HAT!

pi@raspberrypi:~ $

Have done this several times. When I try test this is what I get:

pi@raspberrypi:~ python ~/Pimoroni/automationhat/examples/output.py Traceback (most recent call last): File "/home/pi/Pimoroni/automationhat/examples/output.py", line 8, in <module> if automationhat.is_automation_hat(): File "/usr/lib/python2.7/dist-packages/automationhat/__init__.py", line 303, in is_automation_hat setup() File "/usr/lib/python2.7/dist-packages/automationhat/__init__.py", line 357, in setup raise RuntimeError("No ADC detected, check your connections") RuntimeError: No ADC detected, check your connections pi@raspberrypi:~

This is really all new to me. I searched this forum for an answer but did not find one. Thank You!


#2

The software is installed correctly. The crucial part of the error is “No ADC detected, check your connections”.

Is the HAT pushed firmly down on your Pi?

What do you see if you run: sudo i2cdetect -y 1


#3

Thank You! I will try that this evening and report back!


#4

Checked hat connection. Even did a clean install just in case. Here is what I get with
sudo i2cdetect -y 1

pi@raspberrypi:~ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- pi@raspberrypi:~


#5

Hmm, that’s odd!

Try:

sudo i2cdetect -q 1

And also, could you post a photo of your setup?


#6

Thank you for the help. There is something wrong with this Pi. It is now not booting at all. Just red light.


#7

New Pi = Success! Thanks again for the help!!!


#8

Aha! There clearly was something wrong with the Pi, then. Glad you’re up and running!