In order to be motivated, you need to focused on why you started what you are doing. Set goals for yourself and have strict deadlines to meet and make no excuses that will hinder from meeting your targets.
Don't overwork yourself, take breaks because if you are tired you will not reach your targets.