This subject has come up NUMEROUS times over the years.
I have a "homemade" setup (much like "Maldonia" mentions) using a 115v oil-less compressor permanently installed (under a setee) in my boat and powered by my genset when at anchor.
I've been using it w/o problems now for the past (almost) 9 years. Yes, I've been a certified scuba diver for more than 25 years and agree w/ all posters who suggest you should be certified.
But, for the "you're gonna die if you do this" crowd, I would only repeat "MoonSailors" words ....
" But the air supply is not the problem. It is the diver. "
Oh, and would you all please stop arguing about what kind of wood to use in the coffin...
go green, save a tree, just be cremated. And for a memorial service, have a "head-boat", w/ a very well stocked bar, chartered to take what few friends you may still have, out to throw your "chunkies" (and that damned hooker rig) overboard. If they can remain sober long enough to remember to do so.