Pro tip: Don't consume caffeine within about 1 hour of waking up. Waiting a bit gives your body time to clean up the sleep chemicals and get started on the being awake chemicals before you start adding to the mix.
There are a lot of articles about this out there (here's one), but they all say more or less the same thing, as far as I've been able to tell.