exactly…. if you want to get fancy you can also use the PCA 9685 PWM control with
![]()
Dual H Bridge DC Stepper Motor Drive Controller Board Module L298N For Arduino | eBay
L298N as main chip, ST corporation production. Low heat,outstanding anti-interference performance. Chip: L298N (ST NEW). Can drive one 2-phase stepper motor, one 4-phase stepper motor or two DC motors.www.ebay.com
motors will go directly to the l298N.
here is a good article to get familiar with how to use it.
![]()
Controlling DC Motors with Arduino | Arduino L298N Tutorial
In this tutorial, you are going to learn about Arduino L298N Motor driver module interfacing. The L298N module has a very famous L298 Motor driver IC.electronicshobbyists.com
you will need to use PWM from the PCA9685 and few GPIO pins to control direction. Same concepts as for Arduino but you would use I/O from Rasp-PI instead.
I'm going to go ahead and put a doser together using those controllers. Thanks for the idea.
Do you know if I'd need to use all 3 pins if I just wanted to control speed in one direction? I'd like to run my pumps forward at 50% or so, but I don't care about reverse.




