I find the difference in the duration of the events or circumstances they are refering to.
I think recently denotes short duration , while lately refers to something that could be happening for long time. Also, recently can refer to something happened in a specific moment.
I've been living in the Germany lately.
I've met Fred recently.
I've finished the book recently.
Lately, I've been reading about Confucius.