when i read the sensor without using above pwm code it works fine
So, the obvious question is why you are using PWM when you want a 100% duty cycle. digitalWrite(E1, HIGH) achieves the same result without the timer.
when i read the sensor without using above pwm code it works fine
So, the obvious question is why you are using PWM when you want a 100% duty cycle. digitalWrite(E1, HIGH) achieves the same result without the timer.