Working on something in your personal time that's similar to what you're working on for your employer -- unless your employment contract is entirely unreasonable -- isn't and shouldn't be a violation unless you are using company resources (including but not limited to trade secrets learned in the context of your employment and not legally available through other sources).