Need help for the different of Te and Tu

Hi,
I was studing my spanish yesterday and came across the word tú which I know means you and I just learn that the word te means the same thing. My question is can I use one word over the other or is there some kind of rule I need to use these two words?

They are not the same.

tú = you

tu = your

te = indirect object pronoun Indirect Object Pronouns Spanish | SpanishDictionary.com

OR

direct object pronoun Direct Object Pronouns Spanish | SpanishDictionary.com

Tu is a subject pronoun or a possessive adjective and te is a direct/indirect object.
this is the diference: if you say
tu estas cansado - tu (you) is the subject pronoun. Who is tired? “you”

tu perro es bonito - tu (your) is the possessive adjective. Who’s dog? … yours

@Roz - Just one thing I wanted to point out is that the best place to post your questions about vocabulary is in the “Ask Your Tutor” forum and the easiest way to do this is when you create or edit a LingQ, clicking on the Tutor tab in the dashboard and asking your question from the word or phrase you are talking about. By doing this you will be able to see any previous questions asked about the term you asking about and others after you will see your question and answer.