Skip to main content

A module to assist in controlling an L298N H-Bridge motor driver.

Project description

l298n Module

This module is designed to be used with two GPIO pins on the Raspberry Pi.

Usage

First, create an instance of l298n using 2 pin numbers from the board as attributes. Use the GPIO number as opposed to the board number.

from l298n import l298n
motor = l298n(2, 3)

Then, using methods from l298n, a motor can be activated in the desired direction.

motor.forwards()
motor.backwards()
motor.stop()

Contributions

If you see areas for improvement in this module, please submit an issue or feel free to email me. All contributions are welcome.

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

l298n-0.0.1.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file l298n-0.0.1.tar.gz.

File metadata

  • Download URL: l298n-0.0.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.4

File hashes

Hashes for l298n-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d5035256354b1cdcc0f9c7838afc27240d5218d3b15a0bb497da67b53fc3895e
MD5 9fc12df2c54dc0eb570e2502a1258801
BLAKE2b-256 f4735114ee8beccf00ec10007cccd1f62b467eb466ed673c902167a01346e97c

See more details on using hashes here.

Supported by

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