Powering multiple devices on Arduino Mega

Hey ,couple quick and most likely easy questions here, I'm definitely new at this-

I have an arduino mega and I'm trying to power multiple components at once (a PIR, buzzer, RTC) and I'm wondering the best way to do that... Since these are all low power can I just put them all in parallel on the 5V pin on the arduino?

One thing I was trying to do that wasn't working was to set a digital pin ( 8 ) to output and setting that to high to power the PIR... Why doesn't that work? Shouldn't it be getting 5V and working fine? When I use the 5V pin itself it works.

Thanks!

disz3k:
Hey ,couple quick and most likely easy questions here, I'm definitely new at this-

I have an arduino mega and I'm trying to power multiple components at once (a PIR, buzzer, RTC) and I'm wondering the best way to do that... Since these are all low power can I just put them all in parallel on the 5V pin on the arduino?

What is the total power consumption of these?

One thing I was trying to do that wasn't working was to set a digital pin ( 8 ) to output and setting that to high to power the PIR... Why doesn't that work? Shouldn't it be getting 5V and working fine? When I use the 5V pin itself it works.

Output pins can only supply 40mA. The 5V pin can supply about 500mA

If they need 5V, you use the GND and the 5V of the Arduino and you are okay.

Most PIR sensors require very little current. Using an output pin to power it should work. Perhaps your PIR sensor needs more current ? can you give a link to that PIR sensor ?