How do I become a morning person? originally appeared on Quora - the knowledge sharing network where compelling questions are answered by people with unique insights.

Answer by Andy Ooi, engineer and writer, on Quora:

I will tell you the answer. But first, let's see how our bodies expect us to sleep.

Imagine a caveman from 5 million years ago. Obviously, he lived in a cave (he's not called a "caveman" for nothing) with his tribe.

Here he is.

(They didn't have cameras back then, so this is close enough.)

During the day, he would go out and hunt animals and gather fruits with the other cave dudes. When the sun went down, the dudes would come back to the cave. And they would start a fire and munch on the food.

The cave dudes and cave gals would then hang around the fire and tell cavemen jokes.

The dark night swept the land as the fire died down. All the cave dudes and cave gals suddenly felt a wave of grogginess permeating their body.

Soon, all of them were snoring like a choral symphony until the sun came up again.

What's going on here?

Why did all the cave dudes and cave gals feel sleepy at the same time?

No, it's not voodoo or magic spells. It's all biochemistry.

As the sun goes down, our bodies start to produce a type of hormone - melatonin - to prepare us for sleep.

In the past few million years, our human bodies began to learn this pattern: Sun goes down = darkness = time to produce melatonin.

As the melatonin gets released into our bodies, we start yawning. We get drowsy and our eyelids become heavy. That's how we fall asleep.

But then a guy named Thomas Edison invented the light bulb.

Then all hell broke loose. Human vampires started to roam the planet. We changed our circadian rhythms.

Because our body needs that darkness to produce sleep hormones.

If you are having problems sleeping well and waking up early, here are five mini habits to the rescue.

5 Mini Habits That Save Your Sleep and Wake You Up Early

Now, I am going to turn you into a sleep superhero. These are the five mini habits I use myself to wake up at 5 AM every day.

1) "Dark sessions" 10-30 minutes before sleep

For a change, don't play with your smartphone tonight before you sleep.

Turn off that phone, the TV, the computer, AND all lights 10-30 minutes before your regular sleep time. Sit on your couch.

Enjoy the darkness. You will feel very primal, like a caveman again.

I usually meditate during my dark sessions, and it helps with my sleep a lot.

2) Dark bedrooms

When you are on vacation, you usually get the best sleep. It's not because you are at the beach, or because you have no stress.

It's because hotels use blackout curtains. Once you shut the curtains, you turn the room into a cave. Just like the cave dudes from 5 million years ago, you sleep like a gladiator when it's dark.

So, make sure your bedroom is as dark as possible - get the blackout curtains. Also, make sure there are no artificial lights in the bedroom.

3) Ban technology from the bedroom

Time to be honest: You play with Facebook and Whatsapp from your bed, don't you?

Well, I did that too.

What happens a lot of the time is this: I'll surf Facebook "one last time." The next thing I know is this: it's 3 in the morning. I know all celebrity gossip on the planet, and I'm feeling like a vampire.

For a change, ban that phone and iPad from the bedroom today. Doing this will ensure you hit the pillow on time.

4) Move in the mornings

Exercising releases endorphins into your body because it makes your muscles more resistant to pain. Our cavemen ancestors needed endorphins to help them run away from all sorts of crazy monsters - sabertooth tigers, wooly mammoths, and others.

But endorphins also make us feel superhuman, because they stay in our bodies AFTER they are released. I used to feel more tired than a hibernating sloth after work. But after exercising in the morning every day, I can beam through the day full of energy and focus.

But why the mornings? Because you need to make magic happen, hustle that business, and get superhuman results during the daytime, not at night.

5) Bring positivity to bed

I used to crawl into bed thinking, "Oh my god, I only have 5 hours to sleep. I am exhausted!"

Once I woke up, I thought, "There you go. I am super tired!"

Have you noticed that you wake up with the same thoughts you carry to bed?

So, instead of bringing complaints and negativity, bring positive energy to the pillow. Stop thinking about the challenges of the next day. Reflect on how you can crush the next day like munching potato chips. Think about how you can be a super badass guy or gal.

If you do this today, I can guarantee you will wake up tomorrow on time, full of energy and jumping out of bed like ninjas jumping over bamboo trees.

Putting It All Together

You now know how to sleep better and transform into a morning person. To help you remember it better, here's a lovely infographic, just for you.

Seriously, it's that simple.

But you need to do it. Pick one habit at a time, and implement it today.

Then you will start to possess superhuman powers of waking up early.

[ This answer is adapted from my blog post: Are Your Sleeping Habits Killing You? 5 Mini Habits to Stop It ]

This question originally appeared on Quora - the knowledge sharing network where compelling questions are answered by people with unique insights. You can follow Quora on Twitter, Facebook, and Google+. More questions: