Hello, I have some questions with gpio mA limits. I read that every digital GPIO have 16 mA limit, aren't I? 3,3V have 50 mA, yes?
And can I connecting LED (with a resistance of course) only to digital gpio?

Else I want connect motor but it is designed for 5 volts... And speaker I think it can be connect via digital gpio too? Can I connect speaker directly (without anything)?What else would you want to connect a LED to?
If every led consumption 10 mA I can connect only five leds, yes?The combined total limit of all GPIO's is limited to 50mA. Each GPIO is limited to 15mA.
There are very few motors which can do anything useful when run from 3.3 volts and not allowed to consume more than 15 mA. And any motor with brushes is liable to produce sparks which if they don't damage the SoC are likely to disrupt it.Ivan219 wrote:Else I want connect motor but it is designed for 5 volts... And speaker I think it can be connect via digital gpio too? Can I connect speaker directly (without anything)?What else would you want to connect a LED to?
The Pi has no 5V gpios.Ivan219 wrote:And can I connect motor (from toy-car) to 5 volts gpio?
The limit in the amount of 50 mA applies to all pins gpio or for digital only?
It is 5V. It is NOT a gpio.Ivan219 wrote:The second connector is not 5 volt? Can I connect motor to 5 volt and next to gpio?
That is a correct calculation. However, you should find that modern LEDs are acceptably bright on a lot less than 10mA.Ivan219 wrote:If every led consumption 10 mA I can connect only five leds, yes?
Thank you for information!jojopi wrote:That is a correct calculation. However, you should find that modern LEDs are acceptably bright on a lot less than 10mA.Ivan219 wrote:If every led consumption 10 mA I can connect only five leds, yes?
For red, yellow, and green LEDs try starting with a 1kΩ series resistor. Blue and white drop more voltage, so try 470Ω. This should keep the current below 2mA each, and then you can use as many LEDs as there are GPIOs.
Ok, I realized. No ways connect 5volts-motor-gpio, yes?It is 5V. It is NOT a gpio.

If you connect 5V0 to GND you'll create a short circuit across your power supply. The RPi will instantly shutdown (due to lack of power) and the power supply and cable will start to get hot. Do it for long enough and you'll cause serious damage to everything.Ivan219 wrote:Ok, I understand you. And the last question - I can't connect 5v to ground (NO gpio), yes?
Yes, I know. I mean connect 5v-motor-ground.DougieLawson wrote:If you connect 5V0 to GND you'll create a short circuit across your power supply. The RPi will instantly shutdown (due to lack of power) and the power supply and cable will start to get hot. Do it for long enough and you'll cause serious damage to everything.Ivan219 wrote:Ok, I understand you. And the last question - I can't connect 5v to ground (NO gpio), yes?