This document describes simple classroom demonstrations of nuclear magnetic resonance (NMR) and magnetic resonance imaging (MRI) principles. The demonstrations use common compasses to represent magnetic nuclei such as hydrogen-1 and carbon-13 placed in a static magnetic field generated by three aligned permanent magnets. An oscillating magnetic field from a stir plate or electromagnet pulse is used to excite the "nuclei". This causes the compass needles to precess, demonstrating the resonance condition. The demonstrations illustrate how NMR frequency depends on magnetic field strength and environmental factors. They provide an intuitive way for students to learn basic NMR and MRI concepts.