There has been a lot of talk of tannin coming from the grain. There is science to it, but it is much more complicated then it first appears and there has been a lot of unnecessary fear of getting too much tannin from the mash.
Rule number 1: Do not exceed 170F in your mash to avoid extracting tannin, unless you want to make a delicious, smooth and delightful Oktoberfest. Then boil the majority of the grain to get more malt character.
Rule number 2: Do not crush your grain too fine to avoid extracting tannin, unless you are Budweiser or a German brewery that wants to get +95% efficiency from the mash, then create a flour like consistency for the mash. You may need to hydraulically compress the mash to maximize extraction.
Both rules are commonly broken on a regular basis without any excessive tannin. All beer contains tannin, it is the main source of chill haze, but too much can lead to astringency and excessive chill haze. So how is it that tannins are not extracted in the mash under these conditions?
Tannins are acidic, so if the mash is between 5.0 and 5.6pH the tannin are kept where they belong, in the husk. If the pH rises to too high, tannin becomes soluble because the mash is becoming more alkaline, allowing the tannin to react to the higher pH and dissolve into the wort. The vast majority of tannin in beer come from the hops, a single ounce of a bad hop can release a lot of tannin. That's why, IMHO, some hops like Chinook, should never be used to bitter the beer. They are astringent and it may be due to excessive tannin.