The function table for the selected bits is as follows:
Function Select Decimal Select Bit 1 Select Bit 0
Output 1 0 LOW LOW
Output 2 1 LOW HIGH
Output 3 2 HIGH LOW
My questions are as follows:
By what means can I read the PWM output from this sensor?
Is this something that can be accomplished using the Arduino?
How do I set the Select Bit to their corresponding settings in order to read the output I desire?
The sensor is manufactured in China, and measures temperature, and outputs 2 and 3 are gas measurements.
The datasheet is essentially what I described in the original post. It provides the pinout, along with the two tables that I have described.
The intention with my post is to really try and understand generally how to deal with a sensor that requires me to set a low or high bit in order to get the data from the proper output.
The datasheet is essentially what I described in the original post.
Sorry, that's not a datasheet. That might be all you have but that's not a datasheet.
If you bought it, you could at least provide a link to the source. Otherwise, you're asking for more than what is humanly possible - since we don't even know what this mystery sensor looks like or what gases it is supposed to measure.
By what means can I read the PWM output from this sensor?
Not sure, you could probably use an Arduino pin to read the frequency/duty cycle coming out of the sensor. What is the PWM output range? You should consult the datasheet for this information.
Is this something that can be accomplished using the Arduino?
Probably but cannot say for sure until you define what the output data stream is. You'll find this information on the datasheet.
How do I set the Select Bit to their corresponding settings in order to read the output I desire?
You set the Select Bit pins to Ground or VCC. The device may be active high or low logic so that will determine which output is selected. Consult the datasheet to know for sure. Oh, wait, you have that. But what sensor is what channel? Time for some experimental testing.
Now do you understand why you shouldn't buy the cheapest device you can find from China?