Interfacing Raspberry pi with Motors

Prerequisites

  1. Raspberry Pi with raspbian os installed
  2. Motor driver(LM298 or L293D Module & not the IC)
  3. Power supply(usually 12v)
  4. Female-Female jumper cables

Installation

  1. Make connections as shown in the diagram
  1. Connect the negative wire to raspberry pi zero GND pin
  2. Connect the motors to the driver (No polarity you can connect anyhow…functionality may vary according to the connection)
  3. Make a new file in raspberry pi
sudo nano filename.py
python3 filename.py

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

6 Steps to Migrate to Cloud Spanner

Hackathon goers typically have programming experience, though many teams incorporate engineers and…

Incremental Refactoring

Jenkins dynamic parameters using Extended Choice Parameter Plugin and Groovy

Phoenix and Rails:

Bash Redirection Fun With Descriptors

How to Get Information to Fix Bug in WordPress

Kubernetes Ingress using Minikube

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ameya Upalanchi

Ameya Upalanchi

More from Medium

Installation of ns3 in Windows 10 and Windows 11 OS using WSL (Windows Subsystem for Linux)

Windows Python Developers Had Better Setup Earlier (II): Add Anaconda Prompt on Windows Terminal

How to make Wildcard SSL Certificate in Apache in Encrypt/Certbot on CentOS?

Python — Reading Credentials from Windows Credential Manager (Generic Creds)