Skip to main content

CircuitPython library for the Texas Instruments DRV8305 Three-Phase Gate Driver

Project description

Introduction

SPI driver for the Texas Instruments DRV8305 Three-Phase Gate Driver.

Patterned after the Adafruit BME280 CircuitPython driver, since that’s what I had lying around to hack, test, and compare against.

Installation and Dependencies

This driver depends on:

Please ensure that the driver and all dependencies are available on the CircuitPython filesystem. This can be most easily achieved by downloading and installing the latest Adafruit library and driver bundle on your device.

Installing from PyPI

On supported GNU/Linux systems like the BeagleBone Black, you can install the driver locally from PyPI. To install for current user:

pip3 install --user otterworks-circuitpython-drv8305

To install system-wide (this may be required in some cases):

sudo pip3 install otterworks-circuitpython-drv8305

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install otterworks-circuitpython-drv8305

Usage Example

import time

import board
import busio
import digitalio

import otterworks_drv8305

spi = busio.SPI(board.SCK_1, board.MISO_1, board.MOSI_1)
cs = digitalio.DigitalInOut(board.P9_17))
drv8305 = otterworks_drv8305.OtterWorks_DRV8305(spi, cs)

while True:
    print(drv8305._get_warning_watchdog_reset())
    time.sleep(1)

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation

TODO: build and share on readthedocs.org

Project details


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

File details

Details for the file otterworks-circuitpython-drv8305-0.0.1.tar.gz.

File metadata

  • Download URL: otterworks-circuitpython-drv8305-0.0.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for otterworks-circuitpython-drv8305-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ca562c58c737ac3721247c812616319817174659727ab4dcc5135394890f34f2
MD5 990b2fdb3112ba643bd94b0383fa41ee
BLAKE2b-256 de694862597e337e4d9187f77023cd77f1cc188aac441bce72ec1c1410714ad2

See more details on using hashes here.

File details

Details for the file otterworks_circuitpython_drv8305-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: otterworks_circuitpython_drv8305-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for otterworks_circuitpython_drv8305-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b6c4c391efbd11a2e380b78c47e64fbe80968ee632c60ebe45a903ff5cb878f
MD5 21556cbd55a963a99c81b80cac101043
BLAKE2b-256 3298af899b609eca4460cf2c3c8575f37ba9b643523f71481ccb5282be4ad6e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page