Electronic – arduino – Using Vin pin on Arduino with a shield

arduinopowervoltage

I just bought a wifi module shield and using it with Arduino. I power Arduino (with the wifi shield on it) via USB from the PC. I need to demonstrate it without using the PC as a power supply. And I cannot also use 2.1 power plug or 9V adapter jack since i don't have that component. I don't have time even to buy that.

So the only option for me is to use the Vin pin with a 9V battery. I am just afraid if i may damage the wifi shield or Arduino. I read some warnrnings about that.

Is the Vin pin used only with Arduino without a shield on it?

Thanks in advance,

Best Answer

When you are realy in such a hurry, you could attach the wires of the battery with some tape to the spots I marked in the picture. Maybe the bottom is easier to get the wires stick to.

Arduino

When I remember right (1) is +9V and (2) is GND. The integrated diode should prevent damage, if you connect it the wrong way.


After taking a look at the schematic I would mean, that connecting the battery to VIN is save. Just be carefully not to change polarity, because you skip the protection diode. This forum thread approves my thought.

In the comments you asked, whether you could use an additional external diode to increase safety. In my opionion this is not neccessary. It is just getting more complex. Get two colored wires (black, red) and connect them to the battery, so you can immediately see whats GND. When you connect the wires, just pay attention.