Hardware drivers for testing stations
Project description
Test-Station Drivers
- A series of hardware drivers used to read informative data and determine the quality of i-con machines. Runs on a raspberry pi which is used as a bus.
VoltageSensorADS1115
-
i2c interface
i2c = busio.I2C(board.SCL, board.SDA) pin = 0 sensor = VoltageSensorADS1115(i2c, pin) print (sensor.voltage)
VoltageSensorMCP3008
- SPI interface
spi = busio.SPI(clock = board.SCK, MISO = board.MISO, MOSI = board.MOSI) # Create the cs (chip select) cs = digitalio.DigitalInOut(board.D5) sensor = VoltageSensorMCP3008(spi, cs, 0) print (sensor.voltage)
PressureSensor5837
- i2c interface
bus = smbus.SMBus(1) sensor = PressureSensorMS5837(bus) print (sensor.pressure) print (sensor.temperature)
Relay
- GPIO interface
# Set pin to refer to P1 header if not already set if GPIO.getmode is not GPIO.BOARD: GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) pin = 32 # Random pin number on = True relay = Relay(pin, on) print (relay.get_status()) relay.off() print (relay.get_status()) relay.on() print (relay.get_status())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for i-con-test-station-drivers-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d72d3ecbd8fbcf49764860b5dd5700c3419cb25c421dc5eade94a2cea93bf60 |
|
MD5 | c6651055aef17e87796c287b805b47b0 |
|
BLAKE2b-256 | 234e5b663a887f1e40d16ca4cde89727d200db1f2087ccf223ec29b95643202d |
Close
Hashes for i_con_test_station_drivers-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d882629cabcdc66da553f7a2e6793ada5e9104fbd696e939d528308ea39770ee |
|
MD5 | 6ca1ee3a9a4cfcd875d80e648c5d0216 |
|
BLAKE2b-256 | b0c472b42cbdea944c5e8c65092b807ef3fd2bbac87a632f71f8bff3ad63765b |