Welcome! Log In Create A New Profile

Advanced

Cooling Fan: no voltage

Posted by Ubermeisters 
Cooling Fan: no voltage
January 31, 2014 11:43AM
Ok, i am running the latest Repetier firmware, and i am aware that D9 is the normal place for a cooling fan. the latest Repetier has an online pre-configuration tool, which is nice, i guess, and of course, if has a preset for the RAMPS 1.4 board. However, when i activate the cooling fan via M106, no matter what speed, i get novoltage across the 12V terminals at D9. I am still pretty new (ok got my first, brand new RAMPS 1.4 yesterday) and i haven't figured everything out, such as:

* What pin should i make sure my pins.h and configuration.h specify for the cooling fan?
* Is there some resource for a complete pin labeling? i have seen the images on the wiki, but they just say D9, not a pin #
* My SD card reader (g3d lcd/sd) always seems to be inverted, when i pull it out, it reads aas installed, and when i put it in, it say no sd card.


[i.imgur.com]

Edited 1 time(s). Last edit at 01/31/2014 11:53AM by Ubermeisters.
Re: Cooling Fan: no voltage
January 31, 2014 01:23PM
Have you tried plugging a fan in? You will get no voltage across the terminals because it is a low side mosfet.

D9 is the pin number, i.e. Arduino pin 9.

ISTR having trouble with the SD detect as well, but didn't try to figure it out.

ETA: hmm not sure about that...

Edited 1 time(s). Last edit at 01/31/2014 01:27PM by bobc.


What is Open Source?
What is Open Source Hardware?
Open Source in a nutshell: the Four Freedoms
CC BY-NC is not an Open Source license
Re: Cooling Fan: no voltage
January 31, 2014 01:39PM
Ok, the numbering seems easy enought then (slaps head)

Near the top of the configuration.h file, i see:

#define FAN_BOARD_PIN -1

however, in my pins.h it sure looks like 9 to me..

/****************************************************************************************
* Arduino Mega pin assignment
*
****************************************************************************************/
#if MOTHERBOARD == 33
#define MOTHERBOARD 3
#define RAMPS_V_1_3
#elif MOTHERBOARD == 34
#define MOTHERBOARD 3
#define RAMPS_V_1_3
#define AZTEEG_X3
#endif
#if MOTHERBOARD == 3
#define KNOWN_BOARD 1

//////////////////FIX THIS//////////////
#ifndef __AVR_ATmega1280__
#ifndef __AVR_ATmega2560__
#error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
#endif
#endif

// uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
// #define RAMPS_V_1_3
// #define RAMPS_V_1_0

#ifdef RAMPS_V_1_3

#define X_STEP_PIN         54
#define X_DIR_PIN          55
#define X_ENABLE_PIN       38
#define X_MIN_PIN          3
#define X_MAX_PIN          2

#define Y_STEP_PIN         60
#define Y_DIR_PIN          61
#define Y_ENABLE_PIN       56
#define Y_MIN_PIN          14
#define Y_MAX_PIN          15

#define Z_STEP_PIN         46
#define Z_DIR_PIN          48
#define Z_ENABLE_PIN       62
#define Z_MIN_PIN          18
#define Z_MAX_PIN          19

#define E0_STEP_PIN         26
#define E0_DIR_PIN          28
#define E0_ENABLE_PIN       24

#define E1_STEP_PIN         36
#define E1_DIR_PIN          34
#define E1_ENABLE_PIN       30

#define SDPOWER            -1
#define SDSS               53
#define SDCARDDETECT 	    49

#define LED_PIN            13
#define FAN_PIN            9
#define PS_ON_PIN          12

#define HEATER_0_PIN       10
#define HEATER_1_PIN       8
#define HEATER_2_PIN       9
#define TEMP_0_PIN         13   // ANALOG NUMBERING
#define TEMP_1_PIN         14   // ANALOG NUMBERING
#define TEMP_2_PIN         15
#define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
#define E1_PINS E1_STEP_PIN,E1_DIR_PIN,E1_ENABLE_PIN,

Now since there can't be a -1 pin, i assume the fan_board_pin is a programming switch of some sort, possibly to specify a type of fan board pin configuration..?

I have read a few posts where people are saying they had to put a small capacitro in to get a fan running, I have only tried with 12v PC fans (3 wires) putting the red to + and the black to -, leaving the white disconnected. i get no voltage when the fan is in the sockets.


--UPDATE--

So.. i just moved my X axis for the first time, and instantly my fan turned on. now it wont turn off. and the fan toggle was set to off in repetier. fan is unresponsive to M106/107. Fan only stops when i push the power off button for the motors.

Edited 2 time(s). Last edit at 01/31/2014 01:47PM by Ubermeisters.
Re: Cooling Fan: no voltage
January 31, 2014 04:24PM
Ok, for M106/107 you need to set FAN_PIN to 9, and have "#define FEATURE_FAN_CONTROL true"

FAN_BOARD_PIN should be -1.

-1 is used to indicate the pin/feature is not to be used, since pin numbers are >=0. I think FAN_BOARD_PIN is a fan which is on whenever the printer is "active", possibly turned off after inactivity delay.

Repetier has a lot of features, not obvious how to configure it all.


What is Open Source?
What is Open Source Hardware?
Open Source in a nutshell: the Four Freedoms
CC BY-NC is not an Open Source license
Re: Cooling Fan: no voltage
February 02, 2014 09:17PM
i figured out the SD card issue, inUi.h I had to manually add
#DEFINE SDCARDDETECTINVERTED true

I looked up the FEATURE_CONTROLLER==10 (the correct value for me) and inserted the aforementioned line at the end of the "if" statement. (before the next "else" or "endif")

Oh, and the FAN_BOARD_PIN actually is intended to be a cooling fan for the controller board.

edited because i put "false" rather than "true" originally.

Edited 2 time(s). Last edit at 02/02/2014 09:57PM by Ubermeisters.
Re: Cooling Fan: no voltage
February 07, 2014 09:02AM
Ok... this may sound stupid, but I have to ask...

I've looked over my RAMPS board, and three different schematics of the board. The only thing labeled 'D9' is the power hookup for extruder #2. I can't find a data pin with that label. Where is this silly pin located?
Re: Cooling Fan: no voltage
February 07, 2014 03:44PM
That's what you want. The fan goes into the connection for extruder 2. Of course if you have 2 extruders, you have to arrange for an alternate fan pin.
Re: Cooling Fan: no voltage
February 07, 2014 07:52PM
D9 is on the left, it is a power output terminal.
Attachments:
open | download - Arduinomega1-4connectors[1].png (182.4 KB)
Sorry, only registered users may post in this forum.

Click here to login