Active Cooling soft PWM follow-on fan motor speed controller driver - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32) +---- Forum: Pi2, Euler and Exp GPIO Ports (https://forum.pine64.org/forumdisplay.php?fid=34) +---- Thread: Active Cooling soft PWM follow-on fan motor speed controller driver (/showthread.php?tid=1854) |
Active Cooling soft PWM follow-on fan motor speed controller driver - MarkHaysHarris777 - 07-25-2016 (for schematic diagram and in-line wiring harness, see this link) edit: I changed the default soft-pwm to GPIO23, pin(16). The PWM (pulse width modulation) is 'soft' because it does not use a hardware oscillator. The Python codes turn the transistor on and off ( 16ms on, 4ms off) about 50 pps. The base-emitter pulls only about 2ma from the GPIO pin, while the collector current takes the main motor drive current (about 140ma for this fan). The following two pics are my 'double' controller one half driving the PI 3B, and the other half driving the PineA64. In each case the Python code is the same; posted below: In the pic above I also have my ada fruit gps (746) breakout mounted on the ttyS4 uart4 on the PineA64 euler bus. fan_motor.sh Code: #!/usr/bin/python marcus edit: I changed the default soft-pwm to GPIO23, pin(16). RE: Active Cooling soft PWM follow-on fan motor speed controller driver - MarkHaysHarris777 - 07-27-2016 In this pic I have the LED lab pinouts coming off the back-side of the Sparkfun cobbler, which frees up room on the half breadboard for the PN2222 motor speed controller transistor. Both sides of the Sparkfun breakout are labeled; the advantage to this board is that the engineers have placed all of the GPIO pins in sequence by BCM GP number. My lab is using GPIO 20-27 which are in sequence on the Sparkfun breakout which facilitates using ribbon cables for system wiring (as in my robot design). Also, the breakout board eliminates the unused (and useless) extra ground pins (eight of them) ! Notice the 40 wire ribbon runs under the PineA64 board which is supported on steel feet; this gets both bus sets on one side of the board. My robotics enclosure (not pictured) has a slot on the same side which facilitates access for the breakout board. marcus RE: Active Cooling soft PWM follow-on fan motor speed controller driver - Luke - 08-09-2016 cheers mate ! will make this happen RE: Active Cooling soft PWM follow-on fan motor speed controller driver - MarkHaysHarris777 - 09-02-2016 edit: I changed the default soft-pwm to GPIO23, pin(16). |