The 23-year-old actor/rapper was driving through Hollywood late Friday when cops stopped his car in front of his home because he did not have a license plate.
Then when they opened up his car they smelled booze so they immediately gave him a filed sobriety test, which he flunked, according to TMZ.
A source close to the star revealed: "Orlando was as shocked as anyone that he failed the test. Although they had been out, he'd only had a few drinks.
"There was no way he would put his unborn child at risk."
Brown, who played Eddie Thomas on the Disney Channel's hit show was booked at the Hollywood police station, reports KCBS. He was released after posting $15,000 bail Saturday morning.
It is unclear how this will affect his film and TV comeback as he is due to star in movies The Maul, We The Party which features Snoop Dogg and TV Series The End