Page 1 of 2
GT2560 FW Marlin and Fan PWM PIN
Posted: Wed Nov 30, 2016 5:57 pm
by xavtronic
Hi,
A question about GT2560 schematics and FAn PWM wiring.
I will use the last stable Marlin 1.0.2.2, but I am not sure about the PIN definition.
I will use the board number 7 (know as Ultimaker board) as mentioned this document
http://www.geeetech.com/wiki/index.php/GT2560
But the PWM Fan control is assign pin 7 (#define FAN_PIN 7) and as I can read on GT2560 schematic it s on PIN 16.
Which is the right configuration to use?
BR,
Xavier
Re: GT2560 FW Marlin and Fan PWM PIN
Posted: Sat Dec 03, 2016 11:55 am
by William
It's Pin 16.
Re: GT2560 FW Marlin and Fan PWM PIN
Posted: Wed Dec 14, 2016 5:57 am
by kitahiro921
Hello,
I have Prusa i3 Pro B Acrylic with GT2560(bought in September) and use Marlin firmware.
I'm trying to add a cooling fan on PWM but it doesn't work. The fan works if it's connected to fan 1-3 slots, so the fan is working.
I sent M106 code from Repetier but nothing happened.
Pin 7 is set to PWM and it's not working. Pin16 is used for LCD panel. If I change LCD to Pin 15 which it says on the schimatic, LCD screen doesn't work.
If I try putting fan to pin 16 doesn't work
I don't know how to make the PWM fan to work. Please help!
Thank you.
*****
OK REviewing the GT2560 REv A Schematic AND the ATMEGA2560 pinout may clear up some confusion...
Physically, PIN16=PH4 on the GT2560 and ATMEGA2560
However, physical pin16 is not how it is addressed in the firmware, right? If you look at the ATMEGA2560 pinout, you will see that:
Physical Pin 16 = PH4 = Digital pin 7!!!
http://www.14core.com/wp-content/upload ... pinout.jpg
This explains the confusion of why William keeps saying pin16 when it is set up as pin 7 in the firmware-- doesn't it?
However, still does not work for me.
Re: GT2560 FW Marlin and Fan PWM PIN
Posted: Wed Dec 14, 2016 9:36 am
by ggg666
You can send the commend "M106 S(0~255)" then measure if the voltage has changes on PWM_Fan slot.
Re: GT2560 FW Marlin and Fan PWM PIN
Posted: Wed Dec 14, 2016 9:59 am
by kitahiro921
Hi, ggg666,
I controlled the fan 0% to 100% from Repetier and at 100%, PWM Fan slot voltage was 0.18. Should it be 5? How do I fix it?
Re: GT2560 FW Marlin and Fan PWM PIN
Posted: Wed Dec 14, 2016 10:03 am
by ggg666
Maybe the mosfet Q5(which controls the PWM signal) on the board was broken.And the voltage should be 12V when controlling it to 100% in Repetier Host.
Re: GT2560 FW Marlin and Fan PWM PIN
Posted: Wed Dec 14, 2016 10:36 am
by kitahiro921
Hi, ggg666,
Thanks for the reply. I'm sorry, I made a mistake. It was the bottom two pins of mosfet Q5 that I got 0.18V when I measured. I checked the PWM fan slot, it was 0V.
If the mosfet Q5 is below 5V, does that mean it's broken?
Re: GT2560 FW Marlin and Fan PWM PIN
Posted: Wed Dec 14, 2016 10:54 am
by dwprice
So this is our printer.
I would like to trace the original 5v signal from pin 16 on the ATMEGA 2560 but the pins are so fine I am worried about shorting with my meter probes. Is there a safe way to try to test pin 16 on the ATMEGA?
My concern is that if 5v is not getting to the mosfet (we re measuring 0.18v) then it won't trigger to send 12v to the fan connector?
Re: GT2560 FW Marlin and Fan PWM PIN
Posted: Wed Dec 14, 2016 5:24 pm
by Cup
kitahiro921 wrote:Hi, ggg666,
Thanks for the reply. I'm sorry, I made a mistake. It was the bottom two pins of mosfet Q5 that I got 0.18V when I measured. I checked the PWM fan slot, it was 0V.
If the mosfet Q5 is below 5V, does that mean it's broken?
Hi,Buddy
You can refer to this post to check if Q5 was broken:
http://www.geeetech.com/forum/viewtopic ... 226#p31226
Re: GT2560 FW Marlin and Fan PWM PIN
Posted: Mon Jan 08, 2018 7:41 pm
by DVL
1st of all sorry for an old thread revival, but I thought it's lesser of two evils compared to opening a new one wrt this topic.
Can someone provide a copy of their pins.h file (and other files if changes are needed elsewhere?) with reference to the part related to fan pins and especially PWM pin? The board is GT2560 rev a.
Below the board definition in config.h:
#define MOTHERBOARD BOARD_GT2560_RevA
and this is the relevant part (AFAIK) in pins.h:
#define SDPOWER -1
#define SDSS 53
#define LED_PIN 13
#define FAN_PIN 7
#define CONTROLLERFAN_PIN -1
#define PS_ON_PIN 12
#define KILL_PIN -1
#define SUICIDE_PIN 54 //PIN that has to be turned on right after start, to keep power flowing.
#define SERVO0_PIN 13 // untested
Another question related to Q5 mosfet. AP2306AGN is the part # of the original mosfet but this is NLA? Someone said that 70L02H will fit also? What about STP62NS04Z?
Thanks in advance and happy and prosperous new year to everyone :)