OctolinerPi
A library for Raspberry Pi to interface with the Amperka Octoliner 8-channel line sensor.
Installation
Open the terminal on your Raspberry Pi and use pip to install the library:
pip3 install octoliner
If you haven’t enabled I²C support in your Raspbian Linux yet, run the configuration tool to turn it on:
sudo raspi-config
Then: Interfacing Options → I2C → Yes (enable) → Yes (autoload) → <Finish> → Yes (reboot). The setting preserves across reboots.
Testing connection
$ python3 -m octoliner
0
0.5
0.675
0
1
# Ctrl+C to exit
API
Quickstart example:
import time
# Import the class required
# from the library octoliner
from octoliner import Octoliner
# Sensor on the standard bus and address
octoliner = Octoliner()
# Lower sensitivity to 80%
octoliner.set_sensitivity(0.8)
while True:
# Read all channel values
values = [octoliner.analog_read(i) for i in range(8)]
# Print them to console
print(values)
# Repeat forever, twice per second
time.sleep(0.5)
See full API reference in API.md.
Metadata
Release files for octoliner 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| octoliner-2.1.0.tar.gz | 6.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| octoliner-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.8 kB
Release files / octoliner-2.1.0.tar.gz
| Download URL | octoliner-2.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ae414823303d65627020781eadec100bf28a17f0a98182bebe932cd9f8c66b0
|
|
BLAKE2b-256 checksum How to use checksums |
f7a92876c5a33fc15513363339438918b745c8528f56bb6aefad63b73e7fe841
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.1
|
Release files / octoliner-2.1.0-py3-none-any.whl
| Download URL | octoliner-2.1.0-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04b72ddcfa1ee8afe17572766faf97c06e434fb4a9f63d12ae0c7ab53b4a6ef8
|
|
BLAKE2b-256 checksum How to use checksums |
928aaba8b5644182bbc8edebf25eace062ae692b1c3d88cc8bbfda78b99ff1e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.1
|
Security for octoliner 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.