How the wheel works
Here's what each part of the wheel shows.
The outer ring holds all twelve notes in the order of the circle of fifths: each step clockwise is a fifth higher (C, G, D, A, …).
The green band on the disc has one segment for each string, from string 6 (the low E string) to string 1 (the high E string). After string 3 it jumps back to string 2, next to string 6; the next section shows why. Each segment lines up with a note on the outer ring.
The cutout window in the disc shows the fret the band is set to. Here it's fret 0, the open strings.
Black notes are the flats (and sharps), like the black keys on a piano.
Why it works: the guitar is tuned in fourths
From the low E string up, each string is a fourth higher than the one before: E, A, D, G. A fourth up is the circle of fifths backwards, one step counter-clockwise. That's why the strings can sit side by side on one band.
Strings 6, 5, 4, and 3 (E, A, D, G) each sit one step counter-clockwise from the last.
The B string is the exception: it's only a third above G, so string 2 sits one step on the other side of string 6. From B, the high E string is a fourth up again and lands back on E, so strings 1 and 6 share a segment.
The notes on any fret
Turn the wheel until the window shows the fret you want; in the picture, that's fret 5, written V. Next to each segment, the outer ring shows the note its string plays at that fret. Each click of the wheel moves five frets, because five frets is a fourth: one step around the circle. Fret 12 is the open strings an octave higher, so fret 15 has the same notes as fret 3.
Turn the wheel all the way around and the window passes every fret once, five frets per click: 0, 5, 10, 3, 8, 1, 6, 11, 4, 9, 2, 7, right back to the start. The frets loop around in a circle, just like the notes. That's why we call it the Circle of Frets.
One click counter-clockwise from the open position: fret 5. From string 6 to string 1, the notes are A, D, G, C, E, A.
Where to play a note on a string
It works the other way around, too. Each segment stands for one string, so you can line a string up with a note: turn the wheel until that string's segment sits next to the note you're looking for, and the window shows the fret where that string plays it.
Where's E on string 5, the A string? Turn until segment 5 lines up with E …
… and the window shows fret 7.