Welcome! Log In Create A New Profile

Advanced

GT2560... How many mA can I request on ADC

Posted by zonalimitatore 
GT2560... How many mA can I request on ADC
February 13, 2019 06:28PM
Hi at all.
On this board how many mA can I request on ADC pins?
For example,if I wanna put a rgb led stripe on adc1 adc2 and adc3,how many power can i request max without broke the board?
VDX
Re: GT2560... How many mA can I request on ADC
February 13, 2019 07:15PM
... they are stated for max. 40mA per I/O-pin - should be the same for the analogue pins too ... and max. 500mA for all I/O's summed up!

You can use something like the ULN2003 (7x darlington drivers) for PWM or OpAmps for anlogue output ...


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org]
Call for the project "garbage-free seas" - [reprap.org]
Re: GT2560... How many mA can I request on ADC
February 14, 2019 01:41AM
Thank you so much.
If I use a mosfet? Like extruder slot (empty) can be ok?

Edited 1 time(s). Last edit at 02/14/2019 01:43AM by zonalimitatore.
Re: GT2560... How many mA can I request on ADC
February 14, 2019 02:31AM
mosfets are digital, ie on of off... can't control if from analog. (other than on or off)

controlling 12v rgb strips via mosfet on arduino pwm pins is common. 5v less so but other than the power supply identical concept
You do need to use pwm capable pins, or your limited to just on and off (or wasting lots of cpu cycles, which is no a good idea on a 3d printer controller)
simple RGB strips require 3 mosfet, one for red, one for green and one for blue.

see [learn.adafruit.com]

now there are quite a few different types of RGB strips. some of them are smart, and just applying power to them will not work.

Edited 2 time(s). Last edit at 02/14/2019 02:36AM by Dust.
Re: GT2560... How many mA can I request on ADC
February 14, 2019 12:25PM
Thank you.
So i need 3 pwm capable pins under mosfet?
I think i haven't grinning smiley

Think i move to control a white led under "light pin" (pwm capale ap2306agn) but i don't know how many current i can request! (i find it max 5A)

So you tell me that a rgb required cpu cycles?

Edited 1 time(s). Last edit at 02/14/2019 12:29PM by zonalimitatore.
VDX
Re: GT2560... How many mA can I request on ADC
February 14, 2019 12:41PM
... no - PWM capable pins are set to a fixed PWM-value of 0 to 255 and then output a PWM frequency without further code ...


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org]
Call for the project "garbage-free seas" - [reprap.org]
Re: GT2560... How many mA can I request on ADC
February 14, 2019 12:54PM
Ok,but i can compile the code with the value i need,or set a range in the menu
Re: GT2560... How many mA can I request on ADC
February 14, 2019 08:28PM
you only use cpu cycles if your trying to PWM a non PWM pin, as the cpu has to do all the work vs the hardware PWM


you have not mentioned what you are trying to do...


marlin has some support for RGB_LED which activates the m150 gcode that lets you set any color from gcode

but looking at your controller. It doesn't break out any unused pins... so your unable to add any rgb easily
Re: GT2560... How many mA can I request on ADC
February 15, 2019 03:32AM
Ok I understand. Try to use 3s pwm pin.
Ah.....ground is common right?
Re: GT2560... How many mA can I request on ADC
February 15, 2019 03:43AM
most simple RGB strips I seen have 4 wires

+v
R
G
B

so they are common +v, you gnd the R or G or B line to turn it on.
Re: GT2560... How many mA can I request on ADC
February 15, 2019 04:43AM
the circuit diagram for you board is here [www.geeetech.com]
there are only 15 pwm capable pins on the controller, they are used as follows

D2 (OC3B ) HEATER_0_PIN
D3 (OC3C ) HEATER_1_PIN
D4 (OC0B ) HEATER_BED_PIN
D5 (OC3A ) LCD_PINS_D6*
D6 (OC4A ) LCD_PINS_D7*
D7 (OC4B ) FAN_PIN
D8 (OC4C )
D9 (OC2B )
D10 (OC2A )
D11 (OC1A ) used by bltouch servo
D12 (OC1B ) PS_ON_PIN
D13 (OC0A ) LED_PIN
D44 (OC5C )
D45 (OC5B ) E0_DIR_PIN
D46 (OC5A )

*DEPENDS WHAT LCD YOU HAVE

So you have to find the pins that you are not using and add NPN mosfets to those pins...
Since some of the are not connected to anything, you will probably have to wire to the legs of the microprocessor

Edited 3 time(s). Last edit at 02/15/2019 04:46AM by Dust.
Re: GT2560... How many mA can I request on ADC
February 15, 2019 05:07AM
Ok.Thank you so much guys
Sorry, only registered users may post in this forum.

Click here to login