External power supply

How do i give my Arduino an external power supply for 24 hrs .

any suggestions on how to do it?

Get a plugpack (wallwart). Plug it into the mains and the Arduino. Turn on and return 24hrs later and turn off.
Simple!

is there no other way to do it???

What's wrong with this way?

PS You're not very good at explaining what you have and what your problem is, are you?

What exactly is the difficulty?

If you need to turn a light on for 1hr, what do you do? You supply power to the light by turning it on, and after an hour turning it off.

The Arduino needs power. That can be supplied by USB, a plugpack, batteries, etc.

When the 24hrs is up you can power down, or go hi-tech and put a timer between the mains socket and the plugpack or PSU.

i have to start a code once every 24 hrs, i am not sure i can use my existing batteries to supply power for 24 hrs, and i was asking if there is a better way to do it than using plugbacks...

maybe i just need to use a timer......

If you were to give us more details, more help might be available.

BrainStormer0906:
i have to start a code once every 24 hrs, i am not sure i can use my existing batteries to supply power for 24 hrs, and i was asking if there is a better way to do it than using plugbacks...

maybe i just need to use a timer......

Use a car battery jump starter pack. That should keep the arduino powered for 24 hours.

Why do you think a plug pack isn't usable?

And if you learn about putting the Arduino to sleep it barely takes power.

BrainStormer0906:
How do i give my Arduino an external power supply for 24 hrs .

i have to start a code once every 24 hrs

These are not the same. What is it that you are trying to do? Run for 24 hours and then be done?

Or run continuously for some extended duration, kicking off a routine once every 24 hours?

What is it that you are doing in the routine? More specifically, is there any equipment involved in this periodic task? If so, what are the power requirements of that equipment?
Is there any current draw other than the arduino in the 24 hour wait period?

If this is related to your other thread, then this is what I would suggest.

First, look up Nick Gammon's article on low power consumption and putting the Arduino into sleep mode.
Second, use a DS3231 based RTC. Set the alarm to go off once every 24 hours. Connect the alarm pin to one of the Arduino's interrupt pins to wake it from sleep.

To power it you could use 4 x AA rechargeable batteries. These have a nominal voltage of 1.2 volts, so use a boost converter to lift it to 5 volts.

Maybe a 'power-bank' with USB connection could power the arduino for 24 hours too.