Yeah, I have a few mostly software related. In my case, many came about as I was working on some project and ran into a difficulty. My solution was unique and novel enough to become a patent.
One example was when I needed to execute an external command in C code with some environment parameter being set. However the C api offered to run it with no environment or the parent environment but not an augmented environment. My solution was to run one command to get the parent environment, add my environment parameter to the list and then run the real command with the augmented environment.
It didn't seem like much at the time but my company liked it enough to patent it.