Your story almost matches mine. I didn't have the people skills to become a manager though.
Because no one will hire older hardware engineers, we've been forced into semi-retirement against our ultimate wishes. I like you spend a lot of time on open source hardware and firmware projects and post them on github. It's the only way to remain sane.