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.


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.



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 hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page