GT2560 FW Marlin and Fan PWM PIN

xavtronic
Posts: 1
Joined: Wed Nov 30, 2016 5:55 pm

GT2560 FW Marlin and Fan PWM PIN

Post by xavtronic » Wed Nov 30, 2016 5:57 pm

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

User avatar
William
Site Admin
Posts: 6320
Joined: Tue Jun 07, 2016 9:38 am

Re: GT2560 FW Marlin and Fan PWM PIN

Post by William » Sat Dec 03, 2016 11:55 am

It's Pin 16.
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

kitahiro921
Posts: 5
Joined: Wed Dec 14, 2016 5:44 am

Re: GT2560 FW Marlin and Fan PWM PIN

Post by kitahiro921 » Wed Dec 14, 2016 5:57 am

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.

ggg666
Posts: 38
Joined: Wed Aug 03, 2016 9:34 am

Re: GT2560 FW Marlin and Fan PWM PIN

Post by ggg666 » Wed Dec 14, 2016 9:36 am

You can send the commend "M106 S(0~255)" then measure if the voltage has changes on PWM_Fan slot.

kitahiro921
Posts: 5
Joined: Wed Dec 14, 2016 5:44 am

Re: GT2560 FW Marlin and Fan PWM PIN

Post by kitahiro921 » Wed Dec 14, 2016 9:59 am

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?

ggg666
Posts: 38
Joined: Wed Aug 03, 2016 9:34 am

Re: GT2560 FW Marlin and Fan PWM PIN

Post by ggg666 » Wed Dec 14, 2016 10:03 am

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.

kitahiro921
Posts: 5
Joined: Wed Dec 14, 2016 5:44 am

Re: GT2560 FW Marlin and Fan PWM PIN

Post by kitahiro921 » Wed Dec 14, 2016 10:36 am

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?

dwprice
Posts: 1
Joined: Wed Dec 14, 2016 10:51 am

Re: GT2560 FW Marlin and Fan PWM PIN

Post by dwprice » Wed Dec 14, 2016 10:54 am

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?

Cup
Posts: 123
Joined: Fri Jul 15, 2016 6:11 pm

Re: GT2560 FW Marlin and Fan PWM PIN

Post by Cup » Wed Dec 14, 2016 5:24 pm

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

DVL
Posts: 0
Joined: Mon Jan 08, 2018 7:30 pm

Re: GT2560 FW Marlin and Fan PWM PIN

Post by DVL » Mon Jan 08, 2018 7:41 pm

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 :)

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests