Quantcast
Channel: Support - Pimoroni Buccaneers
Viewing all articles
Browse latest Browse all 6932

Automation Hat Newbie

$
0
0

@bbunker9694 wrote:

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!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6932

Trending Articles