This is a project to control a DC pump with PWM on Raspberry pi. The repositroy includes a design about a motor driver curcuit, control programs, pump.
- Raspberry pi 3
- ubuntu Mate16.04
- Python 3.x
- wiringpi
- DC pump
We used this DC pump.
- Model number:DC30A-1230
- Voltage:DC5V-12V
- Rated current:0.35A
- Max Volumetric flow rate:4L/min
- Rated power consumption:4.2W
- Breadboard
- Photo coupler:EL817
- N-channel MOSFET:IRF840
- Resistors:150 ohm, 1k ohm, 1k ohm
- wire
See here written about PCF8591. And do not forget to enable i2c of raspi
$ python3 flowdemo.py
we didn't use PWM of wiringpi, because it conflict the program using PCF8591. so that we made cheap software PWM program.