Design for a low cost brain-computer interface for environmental and home control