There's a lot of invention in things that we don't think of as inventions.
To invent, you need a good imagination and a pile of junk.
I never did anything worth doing by accident, nor did any of my inventions come indirectly through accident, except the phonograph. No, when I have fully decided that a result is worth getting, I go about it, and make trial after trial, until it comes.