Hamlin attended Lamar High School. He competed in football, baseball and basketball. As a sophomore, he was a two-way player at wide receiver and safety, contributing to the team reaching the 2001 state championship game. As a senior, he recorded 4 interceptions, 20 receptions for 290 yards, 4 touchdowns, 148 punt return yards, 179 kickoff return yards and threw 3 passes for 2 touchdowns, including one to his brother in the state title game. Hamlin finished his high school career with 23 interceptions. He received twice All-State and Region Player of the Year honors. He was also a three-time All-Region selection. He contributed to the school winning Class A state titles in 2002 and 2003. He received All-region honors in both baseball and basketball, helping the school win the baseball state championship as a junior.
College career
Hamlin accepted a football scholarship from Clemson University. As a redshirt freshman, he appeared in 12 games with 7 starts at strong safety. He registered 55 tackles, 2 interceptions and 3 passes defensed. His first start came against North Carolina State University, making 8 tackles. As a sophomore, he started 10 games, collecting 64 tackles, 2 interceptions, 3 passes defended, one forced fumble and 2 fumble recoveries. He had a 74-yard interception return in the season opener against Florida Atlantic University. He missed 3 games after breaking a bone in his left foot against Boston College. He had 10 tackles against the University of South Carolina. He had 15 tackles in the 2006 Music City Bowl against the University of Kentucky. As a junior, he missed the first half of spring practice, recovering from surgery to repair a stress fracture that he suffered during mat drills in his right foot. He started all 13 games, registering 97 tackles, 4 interceptions, 3 tackles for loss, 6 passes defensed, one forced fumble and 2 fumble recoveries. He intercepted a two-point conversion attempt against North Carolina State University and returned it 100 yards for the first defensive touchdown in school history off an opponent's extra point attempt. He made 14 tackles in the 2007 Chick-fil-A Bowl against #21 ranked Auburn University, before leaving the game with an injury. As a senior, he started 13 games at the "Cat' position. He registered 110 tackles, 6 interceptions, 111 interception return yards, 16 passes defensed, one sack, 2 quarterback pressures, 3 tackles for loss and 2 forced fumbles. His 43 starts in 48 contests was a school record for defensive backs. He finished his college career with 326 tackles, 14 interceptions, 8 takeaways, 22 passes defensed, one sack, 4 forced fumbles and 4 fumble recoveries.
Hamlin was selected by the Dallas Cowboys in the fifth round of the 2009 NFL Draft. He suffered a broken right wrist in the third preseason game while playing on special teams. He was declared inactive for the first 9 games of the season, until being activated on November 22. He appeared in 6 games, making one special teams tackle in the regular season and 3 in the playoffs. In 2010, he appeared in the first 2 games before being waived on October 12, after the team decided to give more playing time to rookies Akwasi Owusu-Ansah and Danny McCray.