does it really matter why not call it a "0" if < 180 or a "1" if > than 180
what are you using for ir receiver , could it be noise or the "carrier wave" slipping through
how good is your power supply ,is everything bypass capped properly ?