Driver for Arduino SEEED Relay Shield.
Digital connections to Raspberry pi:
* Connect 5v pin to 5v pin from Raspberry pi.
* Connect ground to ground.
* Connect 2 GPIO pins to digital inputs.
* Options: SEEED pins 4 thru 7 operate relays 1 thru 4.
Power connections to motor:
Wire the motor between the common pins on 2 of the relay outputs
Wire the motor power (+) to the normally open pins (NO) of the 2 relays
Wire the motor ground (-) to the normally closed pins (NC) of the 2 relays
Circuit Diagram:

(+PWR)--NC1------NO1----(GND)
|
(Motor)
|
(+PWR)--NC2------NO2----(GND)

Usage:
motor1 = RelayMotor(3, 5)
motor1.forward()
print motor1
time.sleep(1)
motor1.off()
print motor1
time.sleep(1)
motor1.reverse()
print motor1
time.sleep(1)
motor1.off()

Features

  • Supports an H-bridge connected relay shield.
  • Allows two motors to be driven forward and backward.
  • Ideal for differential drive robots.

Project Activity

See All Activity >

Categories

Raspberry Pi

Follow raspberrypi-seeed-relayshield

raspberrypi-seeed-relayshield Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of raspberrypi-seeed-relayshield!

Additional Project Details

Registered

2015-03-02