How to Make a Smart Clock

I’ve always been dreaming of making a desktop clock which without complex functions, just smaller and can display time. Here is what I think: Features: Small and convenient; Inertial conduction, sensing the placement of clock; Charging Function. My clock has the function of charging, using micro USB (any mobile phone charger can be used) for charging. Don’t worry about running out of power (unless you are too lazy to charge it…). I will show you the whole making procedures and source codes in the following.”