Hello all. I've got a newbie question about how much I can connect to the 5V supply pin on my Arduino. I do hope this is the right subforum for this, please direct me if it isn't. And please excuse the simplicity of this question. I'm very new to electronics and mildly terrified of killing the ATMega on my Arduino.
In the Arduino tutorials, to read the the voltage from a potentionmeter as a value, I connect the 5V pin to one side of the pot, the other side to ground, and the middle pin to an analogue pin on the arduino. Then I can do an analogueRead on the analogue pin and get a value for the pot.
If I want to use one of my common anode 7 segment displays, I connect the 5V pin to the common anode, then each of the segments cathodes to a different digital pin on the arduino. Then if I set any of those pins to low, that segment lights up.
Ok, all well and good.
Here's the question: Say I want to have the pot and the 7 segment hooked up at the same time - let's say for instance I want to have the 7 segment display, display a number from 0-9 representing the position of the pot, is it ok to just connect the 5V pin on the Arduino to the power rail on a breadboard, and then just connect both the pot and the 7 segment's anode to this? I'm guessing it will probably work, but will they affect each other, in terms of current draw, voltage drop etc.? Will I find my display getting brigher as I turn the pot or something funky like that? Is there any danger to the controller in doing this?
I guess I could also just connect either the pot or the 7 segment display's anode to another of the digital pins on the Arduino instead of the 5V pin, and set this to output HIGH, and then that pin would source the current for whatever was hooked up to it, but would there be any point doing this? Would it be better or would the overall effect be the same?
Again sorry for the extreme simplicity of this question, I'm having trouble finding resources to answer very basic question like this, so if anyone knows of any please direct me. I have looked through the tutorials but I couldn't find any examples for this specific information, where 2 things are connected to the 5V pin.