My circuit is suppose to count up till 4 and reset at 5. After which,it starts counting down. However,my counting down keep changing from 4,3,3,4... It doesn't count down to 2 or 1. I need some help in this. Thank you.
You're using two OR gates (74LS32D) which actually don't ensure that all the pins have the values you set in the switch. In fact, they give "true" even when you're at a different number than 5. Use AND gates instead of OR, the circuit should work fine then.