Question: how to use obwohl and trotzdem?
Answer: Taking your example the first is fine and obwohl can be replaced by trotzdem; though obwohl is more often used and considered high-level language. In this case obwohl and trotzdem are conjunctions. The usage of trotzdem in this case is considered colloquial language (umgangssprachlich).