Power question

Hi,

I got a power supply module which markets itseld as a "Breadboard Power supply 3.3v or 5v USB or 2.1mm for Arduino" (http://www.ebay.co.uk/itm/131053817072?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2648). It is nice and supplies 5 or 3.3 Volts to my breadboard, however, I cannot power my Yun with it. I tried by connecting Vin and (one of) GND to +5V and GND. The Yun powered on, the ON LED was lit, but I had problems with the Wifi. When I pushed the Wifi Reset button (WLAN, near the USB slot) kind of nothing happened, it did not start the reset process (the led wasn't blinking). I tried this with several variations, but nothing. The board worked then without problems when I powered it through the micro-USB. Am I doing sg wrong?

Also, I am a bit puzzled by the USB port on the power module (a type A). The spec says that it is for input, while these ports are for connecting a device to them. Maybe to the Yun with a USB-microUSB cable? Wierd.

Thanks for helping!
Zsolt

Just being curious: is anybody powering the Yun through the Vin pin? Or I can assume that most majority power it by the micro-USB socket? No problem with this, we are accustomed these days with lots of power from USB, just it is a bit unprofessional to switch it On and Off by connecting/disconnecting a USB cable, don't you think?
(Sorry to come with this type of questions..)

And again, I am sorry but can somebody enlighten me and tell from this specification which power pins are IN and which are OUT (or both in some situations):

"The power pins are as follows:

VIN. The input voltage to the Arduino board. Unlike other Arduino boards, if you are going to provide power to the board through this pin, you must provide a regulated 5V.
<this is clear, it is IN and I understand that this must be regulated, and again, must be regulated;)>

5V. The power supply used to power the microcontrollers and other components on the board. This can come either from VIN or be supplied by USB.
<So it is set internally or should I supply it? IN or OUT??>

3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50 mA.
<I understand that it internally generated, so I have to leave it alone all the times. Right?>

GND. Ground pins.
IOREF. The voltage at which the i/o pins of the board are operating (i.e. VCC for the board). This is 5V on the Yún.
<Self generated?>"

Thanks for help!

Zsolt

Yes I am powering my Yun using the vIn pin, connected to a ywrobot bread board power supply, connected to a 1A @5V wall wart. The USB supply was struggling to keep up with the demands of the Yun and an LCD.

It turns out the wall wart was in my spares cupboard because it has an intermittent break in the cable, which I only found when I tried to use it with the Yun. So, I am using the USB as well for the moment, until I get around to fixing the wall wart. The Yun has been running constantly since New Year's Eve and I can unplug either supply without the Yun crashing.

I will do my best with your other questions.

VIN pin. Is the positive input to the Yun's onboard voltage regulator. Other Arduino boards (Uno, Mega) have regulators which can take an unregulated supply voltage up to 12V. The Yun does not tolerate much more or much less than 5V, hence the emphasis on using a 5V regulated supply.

5V pin. Is a positive output. On an Uno or Mega, it is the output from the onboard voltage regulator. One volt being much like any other volt, you can probably connect your own 5V regulated supply to this pin without causing damage but any more than 5V is likely to start frying components upstream.

3V3 pin. Is the positive output of the Yun's voltage regulator. 5V goes into the regulator, 3.3V comes out - got it.
You can use the 3V3 pin for powering devices which draw less than 40ma at 3.3V (132mw) - a couple LEDS for instance. You can use the 3V3 pin for powering suitable 3.3V logic devices but it will not make those devices logic compatible with the Yun's 5V pins (as far as I know).

Gnd. Is the negative side of the supply. The Gnd pin is an output for devices which draw power and an input for devices which provide power.

IOREF. Is a positive input to the ADC.

MattS, thank you for your lenghy answer. Here are my notes:

In order to connect some other, power hungry peripherals I would connect them to another power supply, sharing only the GND and control pins with the Arduino. (I understand that this could be a bit difficult if the shield is connecting its power to the Arduino)

I am using the USB as well for the moment..

Well, that's not the same circuit :wink: My board works with USB power, should it not come from my power board USB connector (mentioned in the first post.) But with an external USB charger it works.

So you use a Vin + USB power? That's interesting, and would be interesting to know how the power is split up between the two (if that's the correct English terminology - sorry for it). Anyway, I would choose another solution.

Thanks for the description you gave for the power pins. I think it would be the hardware specifiers duty to complement the specs. Some notes:

VIN pin. Is the positive input to the Yun's onboard voltage regulator.

That's clear, just that I cannot use my Yun by powering a regulated 5V to this pin :((

5V pin. Is a positive output. [...] One volt being much like any other volt, you can probably connect your own 5V regulated supply to this pin without causing damage but any more than 5V is likely to start frying components upstream.

Oops, I would never do that! Never connect 2 output power supplies together, only if you are sure what you are doing.

3V3 pin. Very clear description, thank you.

IOREF. Is a positive input to the ADC.

That's a bit a source of confusion to me. So it is a (high impedance) input. I guess it has any importance only if you use the ADC (so some analog inputs on some pins), and even in that case you can leave it as it is (grounded by default), if that suits you.

It is completely possible to power the Yun only from Vin.

I have a project that connects a Yun to a large LED matrix and I feed power to the whole thing with a 5V, 2A supply from Adafruit that is shared between then Yun (via Vin) and the LED matrix. I actually built two copies of this project; they run 24x7 without any issues beyond my coding mistakes.

Make sure you are getting 5.0V out of the supply you purchase and that it actual can provide the needed current. If the 5V is not well regulated, then you will get flaky behavior out of the Yun. Learned this from personal experience when I initially started programming the Yun and used a cheapo cellphone charger.

Thank you, this was helpful!

Zsolt

gkzsolt:
In order to connect some other, power hungry peripherals I would connect them to another power supply, sharing only the GND and control pins with the Arduino. (I understand that this could be a bit difficult if the shield is connecting its power to the Arduino)

Apologies for the tardy reply. I have been distracted by work.

The bread board PSU is two voltage regulators and some support circuitry. You can plug up to 12V into the power jack and what comes out of the pins is 5V and 3.3V. I am not using the bread board PSU's USB connector, because I am not certain which side of the regulator it is connected to. The documentation I found, says it is for powering a USB hub, which would make it an output.

If you are using the bread board PSU to power some power hungry peripheral. You can hook a wire from the bread board +5V rail to the VIN rail on the Arduino, and power both devices from a single PSU (wall wart, USB charger Etc).

I am using the USB as well for the moment..
Well, that's not the same circuit :wink: My board works with USB power, should it not come from my power board USB connector (mentioned in the first post.) But with an external USB charger it works.

I may use one or the other, or both at the same time.

If you have a multimeter available, see what happens when you connect a couple AA batteries
i) Positive to negative, in series - the Voltage doubles.
ii) Positive to positive, negative to negative, in parallel - the Voltage remains the same.

When I connect power to both the Arduino USB and the VIN pin, it is similar to connecting two batteries in parallel.

So you use a Vin + USB power? That's interesting, and would be interesting to know how the power is split up between the two (if that's the correct English terminology - sorry for it). Anyway, I would choose another solution.

Have a google for Ohm's law, and Kirchoff's laws of Voltage and Current.

The technical term for 'split' is 'divide' E.g. Voltage divider.

5V pin. Is a positive output. [...] One volt being much like any other volt, you can probably connect your own 5V regulated supply to this pin without causing damage but any more than 5V is likely to start frying components upstream.

Oops, I would never do that! Never connect 2 output power supplies together, only if you are sure what you are doing.

I know roughly what I am doing :wink:

Have a read of Ohm's law and Kirchoff's laws of Current and Voltage. The 5V pin is the output of the Arduino's onboard regulator. Kirchoff states that it is relatively safe to connect the 5V from a different regulator. Ohm's law states it is wise to fit a current limiting resistor, to prevent the Arduino drawing more current than it can tolerate.

But you are right. You should use the pins as the designer intended if there is any doubt.

IOREF. Is a positive input to the ADC.
That's a bit a source of confusion to me.

There are a couple reasons you might want to use the IOREF. The easiest for me to explain, is using an analog sensor with an output Voltage < 5V. For example, a thermistor circuit which measures temperature from 0C to 25C, with each degreee C equal to 250mV. The maximum output voltage the sensor can produce is 2.5V. Were you to connect just the sensor output to an analog pin, the Arduino would divide the Voltage on the analog pin, by the internal 5V supply and analogRead() would return values between 0 and 512. By connecting 2.5V to the IOREF, the Arduino divides by 2.5V and produces values between 0 and 1023, doubling the apparent resolution of the sensor.

Just wanted to inform you that my probem is solved! I got a new power supply, more precisely an LM2596 voltage regulator what I connected to a 12V/1.5A wall wart. I set it to 5V and powered the Yun through Vin. Worked perfectly! I tried to connect also power through the micro-USB, then I pulled either supply without crashing. So the problem was with the low quality of the power module.
Thank you very much, for all who have answered.

How can I flag this thread to be SOLVED?

Thanks,
Zsolt

There should be a Modify button in the upper right corner of your posts (only your posts), use this on the original post.