Whalley played a bit-part role in Wigan's promotion last season and the 31-year-old is hoping for similar success at the County Ground.
He said:"There were a few clubs interested but I know Swindon like to play football and it felt right for me."
Meanwhile 21-year-old left-winger Nicolau joins after turning down a new deal at Southend.