We don't look at the electron as a particle rotating the nucleus instead we say its a standing wave surrounding the nucleus as first described in the Bohr model of the atom.
and here's the square well problem that usually starts the discussion of Quantum Mechanics, its simpler than the Bohr atom but illustrates the same principles: