Welcome! Log In Create A New Profile

Advanced

Fan control with #define MOTHERBOARD 34

Posted by guillaumeflorent 
Fan control with #define MOTHERBOARD 34
October 10, 2012 07:01PM
Hi,
I have 2 extruders and a heated bed to manage with Marlin on RAMPS 1.4, so it makes sense to choose '34' as the MOTHERBOARD.
Now, the 2 extruder heaters and the heated bed are controlled by D08, D09 and D10 on RAMPS.
To control a fan (this could most simply be done with #define MOTHERBOARD 33 and plugging the fan in D09), I had a look at pins.h and these lines:
#if MOTHERBOARD == 33
#define FAN_PIN 9 // (Sprinter config)
#else //i.e MOTHERBOARD == 34
#define FAN_PIN 4 // IO pin. Buffer needed

2 questions:
- connecting a 12V fan(connect the fan to 12v from PSU and command a transistor/mosfet with FAN_PIN ) is okay, right?
- why is there a comment ''IO pin. Buffer needed'' when a write to the pin should do to control the fan speed?

Edited 4 time(s). Last edit at 10/12/2012 04:26PM by guillaumeflorent.
Re: Fan control with #define MOTHERBOARD 34
October 12, 2012 05:24AM
Best links I could find to control more fans:
[forums.reprap.org]
[captain-slow.dk]
[www.instructables.com]

Still wondering about the ''IO pin. Buffer needed'' comment.

Edited 2 time(s). Last edit at 10/12/2012 04:27PM by guillaumeflorent.
Sorry, only registered users may post in this forum.

Click here to login