Picman, I have attached a very old program written for a Parallax basic stamp-I to decode a servo pulse stream and output a 5 bit binary byte. It also upon power-up reads the servo null position and subtracts it from the output. It also has a preset deadband for the output. Look it over and see how I solved the same problem.
HTH,
Dave Purola,N8NTA




Bookmarks