0

Peristaltic pump in reverse
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Peristaltic pump in reverse

by lame_sauce on Fri Sep 17, 2021 3:14 pm

Hi All,
I'm working on a project and could use some help. I was wondering how I could run a peristaltic pump in reverse using circuit python. I have the pump turning on through a non latching relay attached to a FunHouse (code below). Any tips would be great!

Thanks

Code: Select all | TOGGLE FULL SIZE
import board
import time
import digitalio

water_pump = digitalio.DigitalInOut(board.A2)
water_pump.direction = digitalio.Direction.OUTPUT

water_pump.value = True
time.sleep(5)
water_pump.value = False

lame_sauce
 
Posts: 2
Joined: Tue Aug 24, 2021 11:30 am

Re: Peristaltic pump in reverse

by adafruit_support_bill on Fri Sep 17, 2021 4:09 pm

You can't do it with a single relay. To reverse a motor you need an 'H-Bridge' like the one on a TB6612B: https://learn.adafruit.com/adafruit-tb6 ... r-breakout

adafruit_support_bill
 
Posts: 82145
Joined: Sat Feb 07, 2009 10:11 am

Re: Peristaltic pump in reverse

by lame_sauce on Fri Sep 17, 2021 6:19 pm

adafruit_support_bill wrote:You can't do it with a relay. To reverse a motor you need an 'H-Bridge' like the one on a TB6612B: https://learn.adafruit.com/adafruit-tb6 ... r-breakout


Oh thank you I'll check this out!

lame_sauce
 
Posts: 2
Joined: Tue Aug 24, 2021 11:30 am

Re: Peristaltic pump in reverse

by adafruit_support_bill on Sat Sep 18, 2021 5:40 am

Also check the current requirements of your motor. If it pulls more than 1.2A, you will need something with more current capacity like the DRV8871: https://www.adafruit.com/product/3190

adafruit_support_bill
 
Posts: 82145
Joined: Sat Feb 07, 2009 10:11 am

Re: Peristaltic pump in reverse

by jps2000 on Sat Sep 18, 2021 10:02 am

Of course you can use 2 relays wired like a h bridge
( single pole double throw relay contact)

jps2000
 
Posts: 664
Joined: Fri Jun 02, 2017 4:12 pm

Please be positive and constructive with your questions and comments.