My question involves criminal law for the state of: California

I am an international student (nonresident). I have been charged with drunk in public and disturbing the peace. Both are misdemeanor charges.
First time I have ever been arrested. I was held in a drunk tank after my arrest and released on bail.

I have consulted with a lawyer, but I can not afford to hire him.

I am planning to go to court on my own. If the prosecutor proceeds with the charges, I will plead "not guilty" and ask for a public defender to represent me.

Does my course of action seem reasonable? Anything I should be aware of?

Thanks.