i have 150Hz frequency pwm signal. pwm signal duty cycle change according to digital sensor. but frequency is same. what can i use arduino this pwm signal input and 5 LED on different duty cycle.(as a fuel level indicator) duty cycle as below.. till 81%Duty cycle three green led on.(green) till 60% duty cycle 2 led on(green) till 40% duty cycle 1 led on(green) till 30% duty cycle 1 led on(yellow) till 21% duty cycle 2 led on (red) from 20% duty cycle 1 led on(red)
This page shows you some ways to read a PWM signal. Your frequency is low enough to use any of the shown methods.