Reading PWM data from a sensor - Raspberry Pi Forums
hello all,
i'm new on raspberry, , make simple air quality sensor.
it, bought dust sensor has output pwm (see more information : http://www.evola.fr/product_info.php/ca ... 42ns-p-460)
unfortunately, can't read value of sensor, using pwm gpio pin (n°18). seems pin ouput, , can input pwm signals.
there way reading pwm value on rpi gpio ?
i'm new on raspberry, , make simple air quality sensor.
it, bought dust sensor has output pwm (see more information : http://www.evola.fr/product_info.php/ca ... 42ns-p-460)
unfortunately, can't read value of sensor, using pwm gpio pin (n°18). seems pin ouput, , can input pwm signals.
there way reading pwm value on rpi gpio ?
hi,
, welcome board. can use gpio line configured input measure pulse width - either low state, or high state.
obviosly you'll need make sure signal conditioning correct, ie 0v 3v3.
need write software, in chosen language it. it'd easy enough python using wiringpi2.
texy
, welcome board. can use gpio line configured input measure pulse width - either low state, or high state.
obviosly you'll need make sure signal conditioning correct, ie 0v 3v3.
need write software, in chosen language it. it'd easy enough python using wiringpi2.
texy
raspberrypi
Comments
Post a Comment