Adam Raymond Thomas Scott pleaded guilty to driving under the influence of alcohol.
The prosecutor said police were called to an accident on the Kwinana Freeway, Baldivis where a car had crashed into a barrier.
The only person in the car, Scott was taken by ambulance to Rockingham Hospital.
Police breath-tested him at the hospital.
Scott’s lawyer said after losing his job of five years in the mining industry last year, his client suffered depression.
He said his client was deeply remorseful and glad no-one else was hurt in the accident.
Scott was fined $1600 and lost his licence for 30 months.