Digital Encoder Applications for the BASIC Stamp