Valley company making medical device to treat chronic pain